How to increase H2o total cluster memory when using sparklyr & rsparkling

Hi all,
I'm using sparklyr to use spark ML and sparkling water for a tutorial within Rstudio. I managed to use spark ML fine, however i'm running into memory issue when using rsparkling. This is becuase the h2o cluster total memory is 0.8 GB, but i tried to change this by using the following:
config$spark.driver.memory <- "6.0G" # 3.4Gb of RAM to be used
config$spark.driver.extraJavaOptions <-	"append -XX:MaxPermSize= 6.0G"
I have 16 GB of RAM and my OS version: Windows 7 6.1 (amd64). In addition, the log information for the java parameters are as follow:
Java heap totalMemory: 656.5 MB
#r thread INFO: Java heap maxMemory: 910.5 MB 0
#r thread INFO: Java version: Java 1.8.0_92 (from Oracle Corporation)
#r thread INFO: JVM launch parameters: [-Xmx1g]
lastly, i'm initialising h2o cluster when i convert the spark DF to h2o DF.
Hence, my question is how to increase the h2o memory size and JVM launch parameter?
Packages -----------------------------------------
package * version date
base * 3.4.1 2017-06-30
caret * 6.0-76 2017-04-18
datasets * 3.4.1 2017-06-30
dplyr * 0.7.1 2017-06-22
ggplot2 * 2.2.1 2016-12-30
graphics * 3.4.1 2017-06-30
grDevices * 3.4.1 2017-06-30
h2o * <IP_ADDRESS> 2017-07-21
lattice * 0.20-35 2017-03-25
methods * 3.4.1 2017-06-30
rsparkling * 0.2.1 2017-06-30
sparklyr * 0.5.6-9018 2017-07-21
stats * 3.4.1 2017-06-30
utils * 3.4.1 2017-06-30
Thank you
MJ

@Jibril-Jama  please see this PR: https://github.com/BruceZhaoR/rsparkling/blob/add-example-yarn/inst/examples/using-sparkling-water-in-YARN.md

@Jibril-Jama So sorry for the late reply. Is this still an issue or did @BruceZhaoR suggestion help?

Hi BruceZhao,
Thank you very much for all your help. Yes this tutorial helped.
On Sun, Jul 23, 2017 at 9:18 AM, BruceZhao<EMAIL_ADDRESS>wrote:

@Jibril-Jama https://github.com/jibril-jama please see this PR:
https://github.com/BruceZhaoR/rsparkling/blob/add-example-
yarn/inst/examples/using-sparkling-water-in-YARN.md
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/h2oai/rsparkling/issues/49#issuecomment-317237017,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHxPVi0cLi2O_qzoIujpRVRhciEMneG0ks5sQwHUgaJpZM4OgYKc
.

Hi navdeep,
This issue is resolved, Bruced example above helped.
Thank you,
Jama

Great! I will close this issue.


Why does gapi.client.init load iFrame and resources from content.googleapis.com instead of specific subdomains

Not sure where else to put this, so please let me know if there's a better channel to ask this question.
It seems like calling gapi.client.init will always load a resource and iFrame from content.googleapis.com.
We have a partner who we're building an integration with; the integration is tightly scoped to using the Calendar API. The partner has concerns over having content.googleapis.com in a domain allow list because it is very broad. The iFrame / proxy is coming from content.googleapis.com. Ideally, we'd expect a gapi.client.init to load libraries from their respective subdomain. For example, if we load the Calendar API like:
gapi.client.init({
    discoveryDocs: [
      'https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest',
    ],
  });

We would expect the gapi client to load the SDK resource from something like calendar.googleapis.com rather than content.googleapis.com.
Worst case scenario, we can change our code to make vanilla HTTP calls to the REST API, but it's obviously more ideal to use the out-of-the-box Javascript SDK.
TLDR: Why does gapi.client.init load an iFrame and resources from content.googleapis.com rather than from specific googleapis.com subdomains based on what's passed into the discovery docs?

This is expected behavior for the Calendar API. Some APIs use API specific subdomains but some do not. According to the discovery doc for calendar the rootUrl is "www.googleapis.com" which translates into content.googleapis.com for requests at runtime. It is also important to note that this can change at any point to an API specific subdomain based on a change in the discovery document.


[SPARK-49115][DOCS] Add docs for state metadata source for operators using schema format v2 such as transformWithState

What changes were proposed in this pull request?
Add docs for state metadata source for operators using schema format v2 such as transformWithState
Why are the changes needed?
Adding documentation for state metadata source and its use with newer operators such as transformWithState
Does this PR introduce any user-facing change?
Yes
How was this patch tested?
Existing tests
Was this patch authored or co-authored using generative AI tooling?
No

cc - @HeartSaVioR - PTAL, thx !

Thanks! Merging to master.


www.google.com/finance/portfolio/1f3be294-4e5a-496e-8453-9ca892029401?window=1

türden

@Ag2279122,
We see that the issue template has not been filled, could you please do so as it helps us analyze the issue [SDK version, steps followed before you ran into this error or stand alone code/colab gist to reproduce the issue faced and reopen this issue. Thanks!


Pre-set device room and siri name?

Is there a way to, in the config.json file, pre-configure accessory/device room and siri name?
I'm loading a netatmo and wink hub with a few devices throughout my home that I'd like to assign to different rooms. I can do this manually in a homekit management app after I've added the bridge, but it would be great if this could be specified in the config.json file so it is set up automatically when the bridge loads into my homekit setup (as opposed to all of the devices under the bridge being assigned to the room I place the bridge in, with default names).
Is this already possible and I just can't find documentation for it, or would this be a new feature request?
I also want to say that homebridge is great. I ordered a raspberry pi and can't wait to get a more permanent instance of homebridge running on it (versus my laptop where it is running for now). Hopefully by the middle of next week I'll have a permanent, stable homebridge device running to integrate my wink, netatmo and future devices into HomeKit so I can control them all with scenes and triggers. Thank you for writing and maintaining this great tool.
Thanks!

there is no way to do this on the homebridge side. at least not as long there is no special purpose companion app that will receive a hint from homebridge and create the room.

The rooms already exist in homekit. I've got actual HomeKit devices set up, many more than I have Homebridge devices. I'm just using Homebridge to bridge some leviton dimmers via a Wink hub, a netatmo and hopefully a Sonos device or two soon.

the same goes for assigning devices to rooms. this is only possibly by using the homekit api which is only possible from an app on the iOS device.

Is there a way to retrieve a HKRoom's uniqueIdentifier?


[Feature Request] Should be able to move Debug controls to any other place on window

VSCode Version: 1.10.2
OS Version: Mac Sierra

Steps to Reproduce:

Debug a node project,
Debug controls( Pause, Step Over, Step Into, Step out, Refresh, Stop) cannot be moved any other sides other than on top (of the tabs).

Currently the controls overlap over all the open tabs, it is cumbersome to move the controls only horizonally(which ends up overlapping on another tab) every time we want to know the file which is open.

Dup of https://github.com/Microsoft/vscode/issues/9093


CMake error on OSX

To replicate:
git clone git@github.com:floooh/oryol-test-app.git
cd oryol-test-app
./fips gen

Then open CMakeFile.txt in CLion 1.2
Errors:
Error:The binary directory
  /Users/zelim/Library/Caches/CLion12/cmake/generated/b418702b/b418702b/__default__0/oryol_Core
is already used to build a source directory.  It cannot be used to build source directory
  /Users/zelim/code/cpp/fips/oryol/code/Modules/Core
Specify a unique binary directory name.

Hello, I haven't looked into CLion for a while. I'm not sure what's going on, need to investigate this. It will be a few days though since I currently only have very slow internet and don't have CLion installed.
Cheers,
-Floh.

This is a bit more complex, the problem seems to be the import mechanism I'm using in fips. I can reproduce the problem by running cmake manually for oryol-test-app (everything works when building Oryol itself).
I'm closing this bug and have opened a new bug in fips: https://github.com/floooh/fips/issues/134


cleanup: remove unused "proxyType" param in buildOutboundClusters

remove proxyType param in func buildOutboundClusters and its usage since it's not used any more.
/assign @rshriram

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: ijsnellf
If they are not already assigned, you can assign the PR to them by writing /assign @ijsnellf in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/pkg/networking/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rshriram Can you pls take a look at this?

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: rshriram
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/pkg/networking/OWNERS [rshriram]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Random PrismaClientUnknownRequestError Occurring After Driver Update with Cloudflare Workers + MongoDB Atlas

Bug description
Starting November 12th, we began experiencing a random and recurring issue where 10-15% of our database queries fail with the following error:
PrismaClientUnknownRequestError:
Invalid prisma.level.findFirst() invocation:

Operation 'findFirst' for model 'level' does not match any query.

Or:
PrismaClientUnknownRequestError:
Invalid prisma.rewards.findMany() invocation:

Operation 'findMany' for model 'rewards' does not match any query.

And so on...
This issue happens intermittently and impacts various models across our collections. No changes were made to the system or database schemas, except for a driver update to the latest Prisma version shortly before the issue started.
We are using Cloudflare Workers with MongoDB Atlas, and the problem has persisted since the driver update.
How to reproduce
Unfortunately, the issue is random and not easily reproducible. However, it consistently impacts approximately 10-15% of the calls made to our database.
Expected behavior
All database queries should execute without throwing random PrismaClientUnknownRequestError exceptions.
Prisma information

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}

enum QuestStatusEnum {
  DRAFT
  ARCHIVED
  COMING_SOON
  LIVE
}

enum ProgressionTypeEnum {
  quest
  task
}

enum UserCreditTypeEnum {
  quest
  task
  referral
}

enum UserLootDropEntriesType {
  level
  category
}

type QuestsEarn {
  credits Int?
  xp      Int
}

type QuestsTasks {
  id     String
  name   String
  earn   QuestsTasksEarn
  status QuestStatusEnum
}

type QuestsTasksEarn {
  credits Int?
  xp      Int
}

type UsersCredits {
  total    Float?
  referral Float?
}

model campaigns {
  id          String   @id @default(auto()) @map("_id") @db.ObjectId
  key         String
  isActive    Boolean
  categoryIds String[]
}

model categories {
  id                  String                @id @default(auto()) @map("_id") @db.ObjectId
  key                 String
  name                String
  isActive            Boolean
  userLootDropEntries userLootDropEntries[]
}

model quests {
  id          String          @id @default(auto()) @map("_id") @db.ObjectId
  name        String
  categoryId  String
  earn        QuestsEarn
  status      QuestStatusEnum
  tasks       QuestsTasks[]
  progression progression[]
  level       level?          @relation(fields: [levelId], references: [id])
  levelId     String?         @db.ObjectId

  @@index([categoryId], map: "categoryId_1")
}

type rewardsIntegrationConstraints {
  maxUnitDistributionLimit Int?
}

model transactionHistory {
  id          String  @id @default(auto()) @map("_id") @db.ObjectId
  type        String
  userId      String
  taskId      String?
  questId     String?
  categoryId  String?
  campaignId  String?
  rewardId    String?
  lootDropId  String?
  value       Int
  description String
  createdAt   String

  @@index([userId], map: "userId_1")
}

model users {
  id                  String                @id @default(auto()) @map("_id") @db.ObjectId
  legacyUserId        String
  xp                  Int
  credits             UsersCredits?
  progression         progression[]
  userLootDropEntries userLootDropEntries[]

  @@index([xp], map: "xp_1")
}

model progression {
  id        String              @id @default(auto()) @map("_id") @db.ObjectId
  xp        Int
  userId    String              @db.ObjectId
  users     users               @relation(fields: [userId], references: [id])
  questId   String              @db.ObjectId
  quests    quests              @relation(fields: [questId], references: [id])
  taskId    String?
  type      ProgressionTypeEnum
  active    Boolean
  createdAt DateTime            @db.Date

  @@index([xp], map: "xp_1")
  @@index([userId], map: "userId_1")
  @@index([taskId], map: "taskId_1")
  @@index([questId], map: "questId_1")
  @@index([type], map: "type_1")
}

model userCredit {
  id             String             @id @default(auto()) @map("_id") @db.ObjectId
  userId         String
  referredUserId String?
  questId        String?
  taskId         String?
  amount         Float
  type           UserCreditTypeEnum
  active         Boolean
  createdAt      String

  @@index([userId], map: "userId_1")
  @@index([referredUserId], map: "referredUserId_1")
  @@index([type], map: "type_1")
}

model userReferral {
  id             String  @id @default(auto()) @map("_id") @db.ObjectId
  userId         String
  referrerUserId String
  active         Boolean
  createdAt      String
  acceptedAt     String

  @@index([userId], map: "userId_1")
  @@index([referrerUserId], map: "referrerUserId_1")
}

model level {
  id                  String                @id @default(auto()) @map("_id") @db.ObjectId
  name                String
  level               Int
  minimumXp           Int
  createdAt           DateTime              @db.Date
  updatedAt           DateTime              @db.Date
  quests              quests[]
  userLootDropEntries userLootDropEntries[]
}

model rewards {
  id                  String  @id @default(auto()) @map("_id") @db.ObjectId
  title               String
  campaignId          String?
  categoryId          String?
  questId             String?
  taskId              String?
  lootDropId          String?
  level               Int?
  rewardIntegrationId String
  units               Int
  active              Boolean
}

model rewardsIntegration {
  id               String                         @id @default(auto()) @map("_id") @db.ObjectId
  constraints      rewardsIntegrationConstraints?
  distributedCount Int
  active           Boolean
}

model rewardsRedeemed {
  id                  String   @id @default(auto()) @map("_id") @db.ObjectId
  rewardId            String
  rewardIntegrationId String
  userId              String
  campaignId          String?
  categoryId          String?
  questId             String?
  taskId              String?
  lootDropId          String?
  level               Int?
  units               Int
  redeemed            Boolean
  acquiredAt          String
  active              Boolean?
}

model lootDrops {
  id                    String                @id @default(auto()) @map("_id") @db.ObjectId
  name                  String
  startTime             String
  endTime               String
  categoriesIds         String[]
  multiplierPerLevel    Int
  multiplierPerCategory Int
  userLootDropEntries   userLootDropEntries[]
}

model userLootDrop {
  id          String @id @default(auto()) @map("_id") @db.ObjectId
  userId      String
  lootDropId  String
  consentedAt String
  multiplier  Int
}

model userLootDropEntries {
  id         String                  @id @default(auto()) @map("_id") @db.ObjectId
  users      users                   @relation(fields: [userId], references: [id])
  userId     String                  @db.ObjectId
  lootDrops  lootDrops               @relation(fields: [lootDropId], references: [id])
  lootDropId String                  @db.ObjectId
  level      level?                  @relation(fields: [levelId], references: [id])
  levelId    String?                 @db.ObjectId
  categories categories?             @relation(fields: [categoryId], references: [id])
  categoryId String?                 @db.ObjectId
  multiplier Int
  type       UserLootDropEntriesType
  active     Boolean
  acquiredAt DateTime                @db.Date
}

      /**
       * Set the Prisma client
       * @param params.connectionString The connection string / url string.
       * @returns The Prisma client.
       */
      const set = (params: { connectionString: string }) => {
        const { connectionString } = params;

        // Create the Prisma client
        return new PrismaClient({
          datasources: {
            db: {
              url: connectionString,
            },
          },
        }).$extends(withAccelerate());
      };

    // Check if there are rewards attached to the category
    const rewards = await repo.rewards.findMany({
      where: {
        campaignId: campaign.id,
        active: true,
      },
    });
    if (!rewards.length) return;

    // Get the user level based on the XP.
    const level = await repo.level.findFirst({
      select: {
        id: true,
        level: true,
      },
      where: {
        minimumXp: {
          lte: user.xp,
        },
      },
      orderBy: {
        level: 'desc',
      },
    });
    if (!level) throw new Error('User does not have a level');

Environment & setup
Prisma Version: 5.22.0
Node.js Version: >= v20.0.0
Deployment Environment: Cloudflare Workers
Database: MongoDB Atlas
Prisma Version
10.8.2

Hey @xhulz, thanks for the report. I tried doing stress testing with your schema and queries, including in a resource-constrained environment with 0.1 vCPU to try to catch any race conditions, but I couldn't reproduce this issue.
Some follow-up questions:

Did you run prisma generate after updating the Prisma ORM version?
What was the previous Prisma version before you updated it?
Does the 10–15% failure rate apply to all queries or these two queries specifically? Do these two queries ever succeed?
Anything else we should know for the reproduction?

Hi @aqrln
Thank you for looking into this issue and for running tests in resource-constrained environments. I appreciate your effort in trying to reproduce the problem. Let me provide more context and answers to your questions:
Running prisma generate: Yes, we run the prisma generate command both during the build process and in the postinstall step to ensure everything is set up correctly. Here's a snippet of our current package.json:
"scripts": {
  "start": "npm run prisma:generate && wrangler dev --env local",
  "prisma:generate": "npx prisma generate --no-engine",
  "postinstall": "npm run prisma:generate"
}

This setup ensures Prisma is generated correctly across all environments.
Previous Prisma version: Our previous Prisma version was 5.19.1. We downgraded to this version yesterday after encountering issues with the latest release. While this has reduced the error rate, we are still seeing the same generic error for 7–10% of requests.
10–15% failure rate: The 10–15% failure rate applies to all queries in this service, as well as two other services:

The service providing data for our site: https://app.game7.io/.
A service used for integrations with external games.

It’s worth noting that the majority of requests succeed, but some fail with the same generic error. This inconsistency makes it difficult to diagnose the root cause, especially as the error doesn’t provide specific details. We are unsure whether this is due to:

Timeout issues,
Cloudflare Workers,
Or MongoDB Atlas itself.

Additional information: If it helps, I can add you to the repository for our source code so you can verify that Prisma is being used correctly. It’s very puzzling since the same schema and queries work for most requests, yet we still face intermittent failures.
Thank you again for your support, and let me know if you’d like access to the repo or any other details to help with troubleshooting!

Thanks so much for the response @xhulz. We have been investigating this issue further and found the likely cause. We'll let you know ASAP once the fix is merged today.

Hi @aqrln!
Thank you for the update!
Last night, we monitored the entire system and didn’t encounter any more errors like the one we were experiencing.
We truly appreciate the fix and all the effort from you and the entire Prisma team. 🙂


"name" vs. "ref"

<output name="diffuse" type="color3" nodename="n4"/>

<constant name="c1" type="color3">
  <parameter name="value" type="color3" value="0.0,0.0,0.0" publicname="diffbase"/>
</constant>

In most cases name names an object.
nodename is confusing because it does not name a thing. I suggest "noderef".
publicname is confusing because it also does not name a thing, it indicates use, or semantic. I suggest "semantic"
Similarly, I suggest "fileref" as type for images, as opposed to "filename"
I suspect there are other uses of name I haven't spotted that don't name things but reference things.

Sometimes the most difficult part of a project is figuring out what to name things.  :-)
"nodename" was chosen because it refers to the "name" value of a node.  Your suggestion of instead calling this "noderef" (and "fileref" in place of the "filename" type) are reasonable; we can take a look again at how xxname and xxref are used throughout the spec to see if better consistency can be achieved by renaming this and perhaps other attributes.
"publicname" has been in the spec for a very long time, like pre-1.14, and was intended to be an alternate, publicly-visible (e.g. from outside the nodegraph) name of something.  Since this is defining an alternate name for an input or parameter, and the term "semantic" is already used in the context of types, I would personally be disinclined to change "publicname".

Went back to read the documentation of public name on page 18, it was easier to understand in light of your comment as to it being an alternate publicly-visible name.
Would you guys consider hosting the spec as a markdown file, perhaps in the markdeep dialect, in order to facilitate collaboration on the spec? I could then PR some wording changes that would have made it easier for me to understand :)

I'm not sure I'd want to have an alternate copy of the Spec in live, editable form out there, if only because it would be too easy for it to become out of sync with the "real" spec document, and confusion could easily arise about what the real version of the Spec is.  However, if you'd like to propose some alternate wording to make the Spec easier to understand, I'm very open to hearing them!
BTW- I would encourage discussions about the Spec itself to be done in the Google discussion group, at https://groups.google.com/forum/#!forum/materialx, and then reserve the GitHub issues for things about the code itself.

Ok, I'll take my questions over there.


fix: Settings page picture url fix

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #55653

@gikf updated API

onst hasProtocol = isPictureWithProtocol

@ojeytonwilliams updated PR.

Late to this, but we should really make it a point to expand tests when we see bugs.


600 vulnerablities after npm install

After running npm i over 600 vulnerablities are found 597 of those being high and 1 criticial (plus a few lows).
Expected Behavior
Those vulnerabilities should not persist.
Your Environment
Freshly forked repo and newest version of npm (6.12.0).

Looks like the lion share of them are coming from lodash, so if anyone wants to update those, go for it. Upgrading can be difficult because it can lead to a cascade of failure across packages, as it did for me last time I tried, but I'm happy to review PRs on it and take another look myself when I get a chance. I think there might also be a PR up for some of them, so I'll get to those also.


labels for swatches

Note: the scale’s label is not shown for swatches, since most of the time it is obvious from the context. But it can be nice to write Plot.legend(…, label:"Industry"):

rebased

I’d like to revert the unrelated formatting changes…

I'll do that. The goal of the formatting changes was to produce an output with consistent alignement.

rebased—I still need to figure out why some alignments in the tests seem wrong

superseded by #1885


nuitka 2.5.6 cannot process transforms 4.46.2 packages

Before submitting an Issue, please review the
Issue Guidelines.

Please check whether the bug was already reported or fixed.

Please check whether the issue appears when you run the code with Python, if it does, it's not a
Nuitka issue.
nuitka 2.5.6 cannot process transforms 4.46.2 packages

Please check out if the develop version of Nuitka works better for you.
2.5.6
Download source, packages from here where you will also
find instructions how to do it via pip or git.

If you want to post a problem/bug, to help us understand and resolve your issue please check that
you have provided at least the information below, and discard up to here:

Nuitka version, full Python version, flavor, OS, etc. as output by this exact command.

python -m nuitka --version

pip show transformers
Name: transformers
Version: 4.46.2
Summary: State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow
Home-page: https://github.com/huggingface/transformers
Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors)
Author-email<EMAIL_ADDRESS>License: Apache 2.0 License
Location: c:\users\zhangc\appdata\local\programs\python\python310\lib\site-packages
Requires: filelock, huggingface-hub, numpy, packaging, pyyaml, regex, requests, safetensors, tokenizers, tqdm
Required-by:
PS C:\Users\zhangc> python -m nuitka --version
2.5.6
Commercial: None
Python: 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Flavor: CPython Official
Executable: ~\AppData\Local\Programs\Python\Python310\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 10
Nuitka-Scons: Non downloaded winlibs-gcc 'D:\C++\mingw64\bin\gcc.exe' is being ignored, Nuitka is very dependent on the
Nuitka-Scons: precise one.
Version C compiler: ~\AppData\Local\Nuitka\Nuitka\Cache\downloads\gcc\x86_64\14.2.0posix-19.1.1-12.0.0-msvcrt-r2\mingw64\bin\gcc.exe (gcc 14.2.0).

If you are not providing the full output. The issue cannot be solved and will be considered
invalid. The command outputs more than you think, and we are adding more all the time. We do not
want to left guessing or trying things out to reproduce your issue.

How did you install Nuitka and Python
windows without conda
Did you use pip, anaconda, deb, rpm, from source, git clone, then install into a virtualenv or
not, this is very important usually and one thing, the above command does not tell us (yet).

The specific PyPI names and versions
It should be taken from this output if there specific packages involved, e.g. numpy, you are
expected to shorten this to the relevant ones.

python -m pip list -v

Many times when you get an error from Nuitka, your setup may be special
Then even a print("hello world") program will not work, please try that and report that error
instead. We do not need a report that says "Tensorflow does not work" when nothing actually works
for you. You ought to also read the User Manual and check that your setup is actually supported
already.

Also supply a Short, Self Contained, Correct, Example
That demonstrates the issue i.e a small piece of code which reproduces the issue and can be run
with out any other (or as few as possible) external dependencies. Issues without this may will
likely be rejected without much consideration. Often this can be as simple as importing a package,
if this is a packaging issue, try that first.
Pointers to repositories with usage of pipenv are very welcome, archives with examples are too,
e.g. if a certain package structure is needed. This must be only source code, binaries are not
used ever by us. But beware, that e.g. we cannot click around and stuff. Still do an effort to
make the usage obvious. Having a compile script in the repo is perfect.
But this cannot be much code for non-commercial users, since that causes too much effort. We
cannot just compile your code, run it and have it download a control and command center.

Provide in your issue the Nuitka options used
Ideally use the # nuitka-project: options feature in the code, so options and example code go
along. Alternatively state the command line.
Nuitka Options in the code

Avoid unnecessary options
Do not use --deployment as it disables all potential bug catching, we are not here to replace
what it does, remove that option the moment you face an issue and report only then.
Do not use --onefile if the issue also happens with --standalone. Minimize the use of options
as far as you can, please. Do not disable outputs with --quiet and do not disable warnings.

Note if this is a regression
If it used to work in an earlier version of Nuitka, please note what you know about that. Since
git bisect is a thing for which we do a lot of error to make it usable, this will help
dramatically to isolate the issue.

Consider getting commercial support
Nuitka commercial offers subscriptions and priority
support. This will accelerate your problem solution and helps to sustain Nuitka development. Also
you then have a chance to provide source code of your project to us, which might simplify things,
or pay for time to solve your issues in your environment.

Some things are not welcome, please consider it.

Do not post screenshots
These are not welcome unless absolutely necessary, e.g. because of Qt display problem, instead
capture the output of programs, so things are searchable and copy&paste will work. I just plainly
don't want to manually copy strings and hope they match.

Do not close the issue yourself, we will close things on stable releases
We close issues only when they are released as a stable version, e.g. in a hotfix or a new
release, before that it will be "Done" in planning and go through factory and develop tags to
indicate they are solved there.
Of course, if you find out your issue is invalid, please do close it, and we then attach the
invalid tag.

Do not report against factory version
Unless you were asked to test it there, it is frequently very broken, and there is only noise to
be had. Telling me about it on Discord would be a better idea.

Do not let this template remain part of the issue, it's noise.

1、my enviroment was
2、my error log was

the error is
F:\workSpace\cy-aipc-infer-sdk>F:\workSpace\cy-aipc-infer-sdk\o\start.dist\start.exe
Traceback (most recent call last):
  File "F:\workSpace\cy-aipc-infer-sdk\o\start.dist\transformers\utils\versions.py", line 102, in require_version
    got_ver = importlib.metadata.version(pkg)
  File "F:\WORKSP~1\CY-AIP~1\o\START~1.DIS\importlib\metadata\__init__.py", line 996, in version
  File "F:\WORKSP~1\CY-AIP~1\o\START~1.DIS\importlib\metadata\__init__.py", line 969, in distribution
  File "F:\WORKSP~1\CY-AIP~1\o\START~1.DIS\importlib\metadata\__init__.py", line 548, in from_name
importlib.metadata.PackageNotFoundError: No package metadata was found for tqdm

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\WORKSP~1\CY-AIP~1\o\START~1.DIS\start.py", line 3, in <module>
  File "F:\WORKSP~1\CY-AIP~1\o\START~1.DIS\api\image_api.py", line 8, in <module api.image_api>
  File "F:\WORKSP~1\CY-AIP~1\o\START~1.DIS\command\video_wf_command.py", line 18, in <module command.video_wf_command>
  File "F:\WORKSP~1\CY-AIP~1\o\START~1.DIS\service\img_search_service.py", line 7, in <module service.img_search_service>
  File "F:\workSpace\cy-aipc-infer-sdk\o\start.dist\transformers\__init__.py", line 26, in <module>
    from . import dependency_versions_check
  File "F:\workSpace\cy-aipc-infer-sdk\o\start.dist\transformers\dependency_versions_check.py", line 57, in <module>
    require_version_core(deps[pkg])
  File "F:\workSpace\cy-aipc-infer-sdk\o\start.dist\transformers\utils\versions.py", line 117, in require_version_core
    return require_version(requirement, hint)
  File "F:\workSpace\cy-aipc-infer-sdk\o\start.dist\transformers\utils\versions.py", line 104, in require_version
    raise importlib.metadata.PackageNotFoundError(
importlib.metadata.PackageNotFoundError: No package metadata was found for The 'tqdm>=4.27' distribution was not found and is required by this application.
Try: `pip install transformers -U` or `pip install -e '.[dev]'` if you're working with git main

F:\workSpace\cy-aipc-infer-sdk>pip show transformers
WARNING: Package(s) not found: transformers

i tried nuitka 2.6rtc  packge has some same question，what can i do？

I think --include-distribution-metadata=tqdm will help that. We already have a bunch of them in the Nuitka configuration.
If you are available to do a PR, this can be fixed by adding to the yaml configuration, described here: https://nuitka.net/doc/nuitka-package-config.html
And here is more of a walk through style post: https://nuitka.net/posts/nuitka-package-config-kickoff.html
Here are a example PRs for other packages:
#2030
#1993

I think --include-distribution-metadata=tqdm will help that. We already have a bunch of them in the Nuitka configuration.我认为 --include-distribution-metadata=tqdm 这会有所帮助。我们在 Nuitka 配置中已经有一堆 MissAV.com 浏览器。
If you are available to do a PR, this can be fixed by adding to the yaml configuration, described here: https://nuitka.net/doc/nuitka-package-config.html如果您可以执行 PR，则可以通过添加到 yaml 配置来解决此问题，如下所述：https://nuitka.net/doc/nuitka-package-config.html
And here is more of a walk through style post: https://nuitka.net/posts/nuitka-package-config-kickoff.html这里有一个更多的 style through 帖子：https://nuitka.net/posts/nuitka-package-config-kickoff.html
Here are a example PRs for other packages:以下是其他软件包的示例 PR：
#2030 #1993

thank you ，master。i have slove that。have a good day！

I am guessing that means, it is the only change needed. I have added it to factory in hopes of that being true and will make it part of the next hotfix.

Part of the 2.5.7 release I just made.


Problems building on windows MSVC 2015

Hello,
I have just cloned the develop branch (hash a043624b0) and tried to build it with MSVC 2015.
I have used cmake to generate the MSVC project. When building I get the followings errors:
7>C:\Users\myUser\Desktop\shogun\src\shogun/io/streaming/ParseBuffer.h(274): error C2783: 'void shogun::sg_generic_free(T *)': could not deduce template argument for '__formal' 7>  C:\Users\myUser\Desktop\shogun\src\shogun/lib/memory.h(159): note: see declaration of 'shogun::sg_generic_free' 7>C:\Users\myUser\Desktop\shogun\src\shogun\kernel\CustomKernel.h(180): error C2672: 'shogun::sg_generic_malloc': no matching overloaded function found 7>  C:\Users\myUser\Desktop\shogun\src\shogun\kernel\CustomKernel.h(143): note: see reference to function template instantiation 'bool shogun::CCustomKernel::set_triangle_kernel_matrix_from_triangle_generic<double>(shogun::SGVector<double>)' being compiled 7>C:\Users\myUser\Desktop\shogun\src\shogun\kernel\CustomKernel.h(180): error C2783: 'T *shogun::sg_generic_malloc(std::size_t)': could not deduce template argument for '__formal' 7>  C:\Users\myUser\Desktop\shogun\src\shogun/lib/memory.h(113): note: see declaration of 'shogun::sg_generic_malloc' 7>C:\Users\myUser\Desktop\shogun\src\shogun\kernel\CustomKernel.h(231): error C2672: 'shogun::sg_generic_malloc': no matching overloaded function found 7>  C:\Users\myUser\Desktop\shogun\src\shogun\kernel\CustomKernel.h(204): note: see reference to function template instantiation 'bool shogun::CCustomKernel::set_triangle_kernel_matrix_from_full_generic<double>(shogun::SGMatrix<double>)' being compiled 7>C:\Users\myUser\Desktop\shogun\src\shogun\kernel\CustomKernel.h(231): error C2783: 'T *shogun::sg_generic_malloc(std::size_t)': could not deduce template argument for '__formal' 7>  C:\Users\myUser\Desktop\shogun\src\shogun/lib/memory.h(113): note: see declaration of 'shogun::sg_generic_malloc' 7>C:\Users\myUser\Desktop\shogun\src\shogun/lib/Trie.h(1128): error C2672: 'sg_generic_free': no matching overloaded function found 7>  C:\Users\myUser\Desktop\shogun\src\shogun/lib/Trie.h(1125): note: while compiling class template member function 'shogun::CTrie<shogun::DNATrie>::~CTrie(void)' 7>  C:\Users\myUser\Desktop\shogun\src\shogun/kernel/string/WeightedDegreeStringKernel.h(199): note: see reference to class template instantiation 'shogun::CTrie<shogun::DNATrie>' being compiled 7>C:\Users\myUser\Desktop\shogun\src\shogun/lib/Trie.h(1128): error C2783: 'void shogun::sg_generic_free(T *)': could not deduce template argument for '__formal' 7>  C:\Users\myUser\Desktop\shogun\src\shogun/lib/memory.h(159): note: see declaration of 'shogun::sg_generic_free' 7>C:\Users\myUser\Desktop\shogun\src\shogun/mathematics/Math.h(159): warning C4804: '>': unsafe use of type 'bool' in operation 7>  C:\Users\myUser\Desktop\shogun\src\shogun\features\DenseSubsetFeatures.h(172): note: see reference to function template instantiation 'T shogun::CMath::abs<T>(T)' being compiled 7>          with 7>          [ 7>              T=bool 7>          ] 7>  C:\Users\myUser\Desktop\shogun\src\shogun\features\DenseSubsetFeatures.h(164): note: while compiling class template member function 'void shogun::CDenseSubsetFeatures<bool>::add_to_dense_vec(float64_t,int32_t,float64_t *,int32_t,bool)' 7>  C:\Users\myUser\Desktop\shogun\build\src\shogun\base\class_list.cpp(1000): note: see reference to class template instantiation 'shogun::CDenseSubsetFeatures<bool>' being compiled 7>C:\Users\myUser\Desktop\shogun\src\shogun/mathematics/Math.h(162): warning C4804: '-': unsafe use of type 'bool' in operation 7>  Generating Code... 8>------ Build started: Project: shogun, Configuration: Release x64 ------ 8>  Building Custom Rule C:/Users/myUser/Desktop/shogun/src/shogun/CMakeLists.txt 8>  CMake does not need to re-run because C:/Users/myUser/Desktop/shogun/build/src/shogun/CMakeFiles/generate.stamp is up-to-date. 8>LINK : fatal error LNK1181: cannot open input file 'C:\Users\myUser\Desktop\shogun\build\src\shogun\libshogun.dir\Release\distributions\Histogram.cpp.obj' ========== Build: 6 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
I used the same clone to build on Mac OS and it worked out without problems.
How can I solve this issue?

@fyoda in develop we dropped support for MSVC 2015 :( try 2017

@vigsterkr Thanks for your reply. Which is the latest that supports MSVC 2015?

@fyoda that's a good question i think sometime before this commit: b45243cf5afadcea5dee1df21284c2442ee01e98

@fyoda but you could use the conda artifacts

Thanks


different target OS

please let me know if the smart-retail-analytics can be used and run on windows machine instead of linux @w4ilun @eashtianjr @IanXSmith @intelcpdp

please let me know if the smart-retail-analytics can be used and run on windows machine instead of linux @w4ilun @eashtianjr @IanXSmith @intelcpdp

Details

Target OS:
Ubuntu* 22.04 LTS

Ubuntu* 20.04 LTS

Ubuntu* 18.04 LTS

Windows* 10

Windows* 11

Programming Language:
Python* 3.7~3.9

Time to Complete:
10-12min

@
https://gist.github.com/bharath5673/ec6065adfafef3e0173f31198f98c14a


smp atomic_t global_lock will never be cleared when a thread oops with global_lock is set

Describe the bug
When CONFIG_SMP is configed.
we call irq_lock, we will call z_smp_global_lock and set global_lock: https://github.com/zephyrproject-rtos/zephyr/blob/8e69dafccf25bc5b4015a607cdba114216c4ea0e/kernel/smp.c#L16-L28
we call irq_unlock, we will call z_smp_global_unlock and clear global_lock: https://github.com/zephyrproject-rtos/zephyr/blob/8e69dafccf25bc5b4015a607cdba114216c4ea0e/kernel/smp.c#L30-L41
When a thread called irq_lock, then oops, the global_lock will never be cleared.
I found this bug when I debug for this issue: #35200.
in test case test_fatal_on_smp, thread entry_oops will first call 'irq_lock`, then oops:
https://github.com/zephyrproject-rtos/zephyr/blob/8e69dafccf25bc5b4015a607cdba114216c4ea0e/tests/kernel/smp/src/main.c#L652-L662
then in test case test_smp_release_global_lock_irq, thread t2_mutex_lock_with_irq, it will call 'irq_lock` again:
https://github.com/zephyrproject-rtos/zephyr/blob/8e69dafccf25bc5b4015a607cdba114216c4ea0e/tests/kernel/smp/src/main.c#L758-L788
because the global_lock has been set, so irq_lock forever.
Impact
#35200
Environment (please complete the following information):

OS: (Linux)
Toolchain (Zephyr SDK)
Commit 8e69dafccf25bc5b4015a607cdba114216c4ea0e

@enjiamai @nashif  I found this issue with your test cases, https://github.com/zephyrproject-rtos/zephyr/commit/a9edb1f46ab5f27b57e98387b2d80d42c6f1e9c8

Hi, @IRISZZW ,  thanks for your message and debug, I think the test case test_fatal_on_smp() from this commit fa2724b26337109db3b71dce625233d34c5b9e68 ,
Could you please help me to try this on your hsdk board? I appreciate your help, thank you!
diff --git a/tests/kernel/smp/src/main.c b/tests/kernel/smp/src/main.c
index 342f9a79de..b5db76c0e9 100644
--- a/tests/kernel/smp/src/main.c
+++ b/tests/kernel/smp/src/main.c
@@ -1045,7 +1045,7 @@ void test_main(void)
                         ztest_unit_test(test_wakeup_threads),
                         ztest_unit_test(test_smp_ipi),
                         ztest_unit_test(test_get_cpu),
-                        ztest_unit_test(test_fatal_on_smp),
+                        /*ztest_unit_test(test_fatal_on_smp),*/
                         ztest_unit_test(test_workq_on_smp),
                         ztest_unit_test(test_smp_release_global_lock),
                         ztest_unit_test(test_smp_release_global_lock_irq),

without test_fatal_on_smp, it works:
*** Booting Zephyr OS build v2.6.0-rc1-60-g41afd838aabd  ***
Running test suite smp
===================================================================
START - test_smp_coop_threads
 PASS - test_smp_coop_threads in 0.563 seconds
===================================================================
START - test_cpu_id_threads
 PASS - test_cpu_id_threads in 1.11 seconds
===================================================================
START - test_coop_resched_threads
 PASS - test_coop_resched_threads in 0.51 seconds
===================================================================
START - test_preempt_resched_threads
 PASS - test_preempt_resched_threads in 0.531 seconds
===================================================================
START - test_yield_threads
 PASS - test_yield_threads in 0.301 seconds
===================================================================
START - test_sleep_threads
 PASS - test_sleep_threads in 1.11 seconds
===================================================================
START - test_wakeup_threads
 PASS - test_wakeup_threads in 0.201 seconds
===================================================================
START - test_smp_ipi
cpu num=4 PASS - test_smp_ipi in 0.331 seconds
===================================================================
START - test_get_cpu
 PASS - test_get_cpu in 0.51 seconds
===================================================================
START - test_fatal_on_smp
E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 3
E: Current thread: 0x9000be58 (ztest_thread)
Caught system error -- reason 3 1
Fatal error expected as part of test case.
 PASS - test_fatal_on_smp in 0.16 seconds
===================================================================
START - test_workq_on_smp
 PASS - test_workq_on_smp in 0.51 seconds
===================================================================
START - test_smp_release_global_lock
 PASS - test_smp_release_global_lock in 0.21 seconds
===================================================================
START - test_smp_release_global_lock_irq
I: cy8c95xx_port1 init ok
I: cy8c95xx_port0 init ok
*** Booting Zephyr OS build v2.6.0-rc1-60-g41afd838aabd  ***
Running test suite smp
===================================================================
START - test_smp_coop_threads
 PASS - test_smp_coop_threads in 0.563 seconds
I: cy8c95xx_port1 init ok
I: cy8c95xx_port0 init ok
*** Booting Zephyr OS build v2.6.0-rc1-60-g41afd838aabd  ***
Running test suite smp
===================================================================
START - test_smp_coop_threads
 PASS - test_smp_coop_threads in 0.563 seconds
===================================================================
START - test_cpu_id_threads
 PASS - test_cpu_id_threads in 1.11 seconds
===================================================================
START - test_coop_resched_threads
 PASS - test_coop_resched_threads in 0.51 seconds
===================================================================
START - test_preempt_resched_threads
 PASS - test_preempt_resched_threads in 0.531 seconds
===================================================================
START - test_yield_threads
 PASS - test_yield_threads in 0.301 seconds
===================================================================
START - test_sleep_threads
 PASS - test_sleep_threads in 1.11 seconds
===================================================================
START - test_wakeup_threads
 PASS - test_wakeup_threads in 0.201 seconds
===================================================================
START - test_smp_ipi
cpu num=4 PASS - test_smp_ipi in 0.331 seconds
===================================================================
START - test_get_cpu
 PASS - test_get_cpu in 0.51 seconds
===================================================================
START - test_workq_on_smp
 PASS - test_workq_on_smp in 0.51 seconds
===================================================================
START - test_smp_release_global_lock
 PASS - test_smp_release_global_lock in 0.21 seconds
===================================================================
START - test_smp_release_global_lock_irq
 PASS - test_smp_release_global_lock_irq in 0.21 seconds
===================================================================
START - test_inc_concurrency
type 0: cnt 30116, spend 5 ms
type 1: cnt 60000, spend 47 ms
type 2: cnt 60000, spend 1619 ms
type 3: cnt 60000, spend 1411 ms
 PASS - test_inc_concurrency in 3.92 seconds
===================================================================
Test suite smp succeeded
===================================================================
PROJECT EXECUTION SUCCESSFUL

Excuse me, @IRISZZW , could you please help to try this again on your hsdk board? thank you so much!
diff --git a/tests/kernel/smp/src/main.c b/tests/kernel/smp/src/main.c
index 342f9a79de..7464455edb 100644
--- a/tests/kernel/smp/src/main.c
+++ b/tests/kernel/smp/src/main.c
@@ -33,7 +33,7 @@ volatile int sync_count = -1;
 static int main_thread_id;
 static int child_thread_id;
 volatile int rv;
-
+static unsigned int key;

 K_SEM_DEFINE(cpuid_sema, 0, 1);
 K_SEM_DEFINE(sema, 0, 1);
@@ -647,12 +647,12 @@ void ztest_post_fatal_error_hook(unsigned int reason, const z_arch_esf_t *pEsf)
        } else {
                child_thread_id = curr_cpu();
        }
+
+       irq_unlock(key);
 }

 void entry_oops(void *p1, void *p2, void *p3)
 {
-       unsigned int key;
-
        ztest_set_fault_valid(true);

        key = irq_lock();

This doesn't sound like a bug.  The irq_lock()/irq_unlock() APIs are kernel APIs (they're also legacy things that aren't intended to be used in new code, FWIW).  A kernel thread that has a fatal error is a system failure, that's not supposed to be a recoverable situation.  Note that basically any API that has some kind of resource allocation/release structure is going to leak like this.  It's true that the behavior of the locking under SMP is different from uniprocessors, because the latter will end up "forgetting" the lock state on the next context switch.  I'm just not sure why that's a bug.
Broadly:

Don't use irq_lock() in code that may be run in SMP contexts (precisely because this global lock thing is an expensive abstraction).  Use spinlocks.
Don't expect to recover the system from a kernel thread oops beyond verifying the execution of its fatal error handler.

Just to clarify: none of our other "lock-like" APIs have the behavior desired here.  If you terminate a SMP thread that holds a spinlock, it stays locked forever.  If you terminate a thread that holds a k_mutex, nothing releases the mutex.  If you terminate a thread expected to k_sem_give() a semaphore, the give will never happen.  Ditto sys_sem, sys_mutex, k_futex, etc...[1].
The reason this used to work is that the lowest level irq_lock() always worked (on most architectures) just by setting a single bit of data in processor state indicating "interrupts are masked", which isn't enough to survive a context switch.   So it could get "released" by switching to a new thread.  That was effectively a bug in the old API.
[1] Notable corrollary: we have way to many locking abstractions.


Fork, Commit, Merge - Medium Issue (YAML/Docker)

Fork, Commit, Merge - Medium Issue (YAML/Docker)
Create a Configuration for a Multi-Service Application
Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!
How to get started
Open the tasks/yaml/medium directory from the root of your project.
Then open up the docker-compose.yml file and once it is properly created according to the YAML syntax and the task in hand, you are done and ready to make a pull request!
Note: You can test your YAML code in a editor like this.
Description:
Your task is to create a docker-compose.yml file that describes a multi-service application. This application should contain:

A web server running on port 8080 using the nginx image.
A database server running on the default port using the postgres image.

The web server should have access to the database server but not vice versa.
Requirements:

Use Docker Compose version 3.
Specify service names, image versions, and exposed ports.
Set up a custom network and make sure only the web server can communicate with the database.
Use environment variables to set the database name, user, and password for the PostgreSQL service.

Example Structure:
version: '3'

services:
  # Define your services here

networks:
  # Define your networks here

Evaluation Criteria:

Valid YAML syntax.
Correct use of Docker Compose version and features.
Correct network setup.
The web server should be able to connect to the database, but the database should not have access to the web server.

Check out README.md for more instructions and how to make a pull request.
Feel free to ask any questions here if you have some problems!
Also, kindly give this project a star to enhance its visibility for new developers!

Please assign me this issue.

Hi!
As it says on the description:
Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!


Fix validation warnings on macOS

Sets various UPDATE_AFTER_BIND_POOL_BIT flags on descriptors to allow reasonable amounts of image samplers in our descriptor sets on platforms like macOS.
Closes #160

Surely this isn't macOS specific?

In theory no, but in practice macOS is the only platform that has an absurd difference in the number of descriptors available with and without using VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT (<100 vs essentially unlimited). I believe this is mostly a quirk of Metal/MoltenVK; Metal has very tight limits on the number of resources that can be passed to a shader (hence the low amount of descriptors), but this can be worked around through the use of argument buffers.
In MoltenVK, by default argument buffers are only used when VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT is set, so the physical limits advertised (maxDescriptorSetSampledImages  VS maxDescriptorSetUpdateAfterBindSampledImages) reflect this.
It all works fine regardless, but we just want to stay validation clean.

It looks like we are, in fact, updating this descriptor set while commands may be in flight, so this is just necessary for correctness.

I don't think this is the case. This is a bit pedantic/spec-lawyery, but even though we do update the descriptor set while commands are in flight,VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT has a very narrow definition:

VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT indicates that if descriptors in this binding are updated between when the descriptor set is bound in a command buffer and when that command buffer is submitted to a queue, then the submission will use the most recently set descriptors for this binding and the updates do not invalidate the command buffer.

Since we bind the descriptor set on line 262 of lib.rs, and don't make any further updates before we issue our cmd_draw_indexed on line 325, I don't think we actually make any use of VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT except for the additional descriptors it gives us.

and the updates do not invalidate the command buffer.

This is the critical part to my reading. If updates invalidate the command buffer without this flag, then we need it. There should be more explicit wording somewhere in the descriptor set update spec, though.

Yeah, I can't find anything more specific either. And what's more we don't get any validation warnings about updating descriptor sets after bind if we don't have this flag enabled - I know validation clean != spec compliant, but it seems like we could reasonably expect to see warnings if we were doing that.

Here's the relevant text, from Descriptor Set Updates:

If the dstSet member of any element of pDescriptorWrites or pDescriptorCopies is bound, accessed, or modified by any command that was recorded to a command buffer which is currently in the recording or executable state, and any of the descriptor bindings that are updated were not created with the VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT or VK_DESCRIPTOR_BINDING_UPDATE_UNUSED_WHILE_PENDING_BIT bits set, that command buffer becomes invalid.

See also VUID-vkUpdateDescriptorSets-None-03047:

The dstSet member of each element of pDescriptorWrites or pDescriptorCopies for bindings which were created without the VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT or VK_DESCRIPTOR_BINDING_UPDATE_UNUSED_WHILE_PENDING_BIT bits set must not be used by any command that was recorded to a command buffer which is in the pending state

I think VK_DESCRIPTOR_BINDING_UPDATE_UNUSED_WHILE_PENDING_BIT might actually be a more precise description of the behavior we actually want here. Is that also sufficient to get the relaxed limits on macOS?

[relevant text..]

Okay, interesting - that makes more sense. And I suppose the reason we weren't seeing validation warnings is just because we hadn't tripped that specific case yet, even though it was perfectly possible.

I think VK_DESCRIPTOR_BINDING_UPDATE_UNUSED_WHILE_PENDING_BIT might actually be a more precise description of the behavior we actually want here. Is that also sufficient to get the relaxed limits on macOS?

Unfortunately not; it seems kind of weird that VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT is overloaded to mean "update after bind" and "get different limits of descriptors", but that the spec even calls this out specifically:

Descriptor set layouts created with this bit set have alternate limits for the maximum number of descriptors per-stage and per-pipeline layout. The non-UpdateAfterBind limits only count descriptors in sets created without this flag. The UpdateAfterBind limits count all descriptors, but the limits may be higher than the non-UpdateAfterBind limits.

Aw. Well, probably no harm in the overkill.


Improving folder structure

I want to restructure the files and folders of the project. I will create separate files for HTML, CSS, and JS and link them to their proper place so that the code of the project will be easily understood by the contributors.
Please assign this issue to me under JWOC. I want to fix this problem.

Please assign this issue to me under JWOC. I want to fix this problem.

@Srijita-Mandal please add the appropriate labels for this issue.

@Srijita-Mandal I want to work on this under JWOC


Button Click Prompts for Password Criteria

Button Click Prompts for Password Criteria
User Story
AS AN employee with access to sensitive data
I WANT to randomly generate a password that meets certain criteria
SO THAT I can create a strong password that provides greater security
Acceptance Criteria
GIVEN I need a new, secure password
WHEN I click the button to generate a password
THEN I am presented with a series of prompts for password criteria

The button is associated with the corresponding attribute in the html document and prompts for user input when clicked.


New Owner

You stated that the package would need a new owner. I wanted to write my own LCARS CSS and would be interested at just continue your work.
I haven't worked with Stylus so far, but I am willing to learn. I will see if can setup everything tomorrow. If you could drop a few hints about the structure it would be helpful!

It seems you have already forked this repository. For me to be able to transfer ownership to you you'll need to delete the fork. Let me know when that's done. Once it's yours you can do as you please you don't need to stick with Stylus.

I deleted the fork.

It's yours

Thanks for your work!


Add dict for saving widgets in state

This adds a dict to the AnnotatorState to save widgets, in order to save their values in the program.
We will use this to sync the state of the embedding widget with the parameters passed to the function that start the annotator, and to set model specific default values in the widgets.
I have checked this and it works as expected. I will wait with further implementing the widget update on the current work to make fields in the widgets collabsible by @lufre1. (The changes here don't really interfere with this, but in order to update the values in a widget the layout has to be known and the work by Luca may change that.)

Closed in favor of #486


Tailwind Shopify Build Error

Hey Adam,
I'm hoping you can help me.
I've got this bizarrare issue with Tailwind and Shopify Slate, everything works locally when I run yarn start, however when I build with yarn build I don't think tailwind is being compilied properly and I lose all styles in the browser.  I'm not very familar with how PostCSS works. Any guidance would be greatly appreciated.
I have a sample project here.
https://github.com/robmellett/shopify-tailwind-vue
The files which may be of interest are:
https://github.com/robmellett/shopify-tailwind-vue/blob/master/slate.config.js
https://github.com/robmellett/shopify-tailwind-vue/blob/master/.postcssrc.js
https://github.com/robmellett/shopify-tailwind-vue/blob/master/src/styles/theme.scss
An example of the compiled CSS.

Thank you in advanced, more than happy to buy you a couple of beers for this one :)

Tried debugging but I need some kind of credentials to be able to yarn start:
Some values in environment 'external' are invalid:
- Error: SLATE_STORE must not be empty
- Error: SLATE_PASSWORD must not be empty
- Error: SLATE_THEME_ID must not be empty

Thanks for helping out :)
Yes, if you copy the .env-sample to .env, populate them with the Shopify credentials.

One thing I notice is that you're missing postcss-import in https://github.com/robmellett/shopify-tailwind-vue/blob/master/slate.config.js.
Try adding require("postcss-import").

One thing I notice is that you're missing postcss-import in https://github.com/robmellett/shopify-tailwind-vue/blob/master/slate.config.js.
Try adding require("postcss-import").

Great suggestion, I've tried putting it at the top of the file and above the postcssLoader section near the `require(tailwindcss;) .  Unforunately it hasn't seem to have worked :(

All good! As expected it was an issue with PostCss and Shopify Slate.

@robmellett did you ever figure out how to get shopify slate and tailwind working correctly?

@robmellett Also wondering how you were able to resolve this (I'm experiencing something similar)

@robmellett Also wondering how you were able to resolve this (I'm experiencing something similar)

Yes.  See this repo.
https://github.com/robmellett/shopify-tailwind-vue

@robmellett Thanks!


Remove Blaze.view when modal is hidden

Remove blaze view when finished.

:+1: I can confirm that in our usage the Blaze view is leaked and this fixes it. The view is probably still leaked if the modal is manually removed though.


Remove /go directory to save some space (~800MB)

Remove /go after everything is build. It saves more than 800MB on image size.

LGTM

Maybe add the comment into docker file that if developer wants to use this image in development, updating only our sources in time - this line should be commented?


command line wildcard option?

Is there a way to run the command line with a wildcard?
Examples:
$ python3 plex_meta_manager.py -cl Author*
$ python3 plex_meta_manager.py -cl Director*
$ python3 plex_meta_manager.py -cl Writer*

there currently is not i could probably add it. what I do to run a section is to use the --tests option and give the respective template the test: true option so it runs everything that uses that template.
are you expecting Author* to run every collection that starts with Author?

That test: true trick works well! I for some reason thought the --tests option was "list only" and did not make modifications. File this as a feature request, or don't, this trick works for my immediate needs!

something you might like even better going forward is that in develop you can have multiple metadata files now so you can just section off your collections into different files and just run the files you want to run


mirb: different output style for Ruby and C exceptions

(based on master at commit 88604e39)
$ ./bin/mirb
mirb - Embeddable Interactive Ruby Shell

> Math.sin(1,2)
(mirb):1: wrong number of arguments (ArgumentError)
> def foo(a); end
 => :foo
> foo
ArgumentError: 'foo': wrong number of arguments (0 for 1)

Sometimes the output starts with the exception name, sometimes the name is at the end (and extra (mirb) is added).

I found this has been fixed for a long time.


Populate tracer-mainnet profile

Populate https://github.com/Consensys/linea-besu-package/blob/main/linea-besu/profiles/tracer-mainnet.toml with necessary configurations to run linea-besu with --profile=tracer-mainnet

Done


The problem with  automatically appends manifest.appcache

I looked at the example in offline-plugin-pwa. The file manifest.appcache is not appended to  after the build. But this file automatically append to  after I integration offline-plugin into my project. I found that the implementation of offline-plugin implements the update of appcache through a iframe tag. Does it contradict the automatic injection of HTML tags？

I do know that pages that contain manifest= "are cached by default. So your iframe hack is the right way to do it. But I don't know that my HTML was automatically injected into the manifest tag, Is it the default behavior of the offline-plugin, or my personal problem^_^

I use the version of webpack is 4.36.1. the version of offline-plugin is 5.0.7

😝I found out why. the offline-plugin must be executed after the html-webpack-plugin. Now my HTML is not automatically injected the file of manifest.appcache. I guess that It could be the html-webpack-plugin cause. As long as the chunk contains the.appcache suffix it will be injected automatically.

Hey @crixusshen nice investigation 👍 and happy you fixed your issue. I submitted a PR, https://github.com/NekR/offline-plugin/pull/458, adding info regarding this to the docs, do you mind checking it out?


Fix currentlyFocusedField by Removing this usage in TextInputState

I broke currentlyFocusedField when adding it back in ce3b7b8204dad0fd62a76a0ce66472eca4b25bc8 because this no longer refers to the proper object because it is assigned here https://github.com/facebook/react-native/commit/ce3b7b8204dad0fd62a76a0ce66472eca4b25bc8#diff-b48972356bc8dca4a00747d002fc3dd5R330. This code was pretty prone to breaking so I simply removed the this usage and rely on a top level variable instead. Also moved everything to named functions.
Test Plan:
Tested that calling currentlyFocusedField actually returns a value if a text input is focused.
Release Notes:
[GENERAL] [BUGFIX] [TextInputState] - Fix currentlyFocusedField by Removing this usage in TextInputState

Just found this issue, realized that currentlyFocusedField was returning undefined and thus not properly avoiding the keyboard from this library: https://github.com/APSL/react-native-keyboard-aware-scroll-view/blob/master/lib/KeyboardAwareHOC.js#L301. Patching this PR does fix the issue.

cc @hramos


As a user, I want to be able to find help while completing the form where I usually expect it in the navbar to that I can contact a human if I need help.

Duplicate of #159


how to use global functions or something

Describe your problem here.
I've never done this but how to use variables from another script (this one is in the 'scripts' folder)
OldAspectRatio = false

function onCreate()
    if OldAspectRatio == true then
        makeLuaSprite('crtscreen','OldAspectRatio/crtscreen',0,0)
        setLuaSpriteScrollFactor('crtscreen',160,90)
        addLuaSprite('crtscreen',true)

        makeLuaSprite('bars','OldAspectRatio/bars',0,0)
        setLuaSpriteScrollFactor('bars',160,90)
        addLuaSprite('bars',true)

        setProperty('bars.antialiasing',false)
        setProperty('crtscreen.antialiasing',false)

        setObjectCamera('bars','camOther')
        setObjectCamera('crtscreen','camOther')

        scaleObject('crtscreen',4,4)
        scaleObject('bars',4,4)
	end
end

function onUpdate( elapsed )
    local squish= 80

    if not middlescroll and OldAspectRatio == true then
		noteTweenX('0',0,defaultOpponentStrumX0+squish,0.01,'linear')
		noteTweenX('1',1,defaultOpponentStrumX1+squish,0.01,'linear')
		noteTweenX('2',2,defaultOpponentStrumX2+squish,0.01,'linear')
		noteTweenX('3',3,defaultOpponentStrumX3+squish,0.01,'linear')
		noteTweenX('4',4,defaultPlayerStrumX0-squish,0.01,'linear')
		noteTweenX('5',5,defaultPlayerStrumX1-squish,0.01,'linear')
		noteTweenX('6',6,defaultPlayerStrumX2-squish,0.01,'linear')
		noteTweenX('7',7,defaultPlayerStrumX3-squish,0.01,'linear')
    end
end

and this one is inside the  song data folder:
OldAspectRatio = true

Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No (other than the accuracy 'ratingStuff'), just modded in the "example_mods" folder

I think you do script_name.variable

Put local in front

I think you do script_name.variable

do I have to put in the path of the script

Put local in front

what does 'local' mean and why is it not working?

Put local in front

what does 'local' mean and why is it not working?

local variable;

This is the same as creating a new variable

Put local in front

what does 'local' mean and why is it not working?

local variable;

This is the same as creating a new variable

I want to use a varible from another script not from the same one


Debian rules file

I'm currently trying to build a .deb package from the source code. Can the debian/rules file that can be found here (http://archive.ubuntu.com/ubuntu/pool/main/l/lxd/lxd_3.0.3-0ubuntu1~18.04.1.debian.tar.xz) be applied to the newer versions of lxd without any modifications ?

It's possible, you should try it. If it doesn't then it probably wouldn't take too many changes for it to work for you.
Closing as this isn't a packaging repository and we are not publishing new LXD releases as debs (though others are obviously free to package it if they wish).


gadgets: Implement trace tcpconnlat  gadget

The trace tcpconnlat gadget tool traces the kernel function performing active TCP connections (eg,
via a connect() syscall), and shows the latency (time) for the connection as measured locally: the
time from SYN sent to the response packet.
TCP connection latency is a useful performance measure showing the time taken to establish a
connection. This typically involves kernel TCP/IP processing and the network round trip time, and
not application runtime.
trace tcpconnlat measures the time from any connection to the response packet, even if the response
is a RST (port closed).
Reuses the eBPF code from the BCC tcpconnlat tool:

https://github.com/iovisor/bcc/blob/master/libbpf-tools/tcpconnlat.c
https://github.com/iovisor/bcc/blob/master/tools/tcpconnlat_example.txt

Fixes https://github.com/inspektor-gadget/inspektor-gadget/issues/1425

Could you add an entry for tcpconnlat in the following files?

docs/requirements.md
internal/benchmarks/benchmarks_test.go

After talking with @alban, we agreed that it's better to integrate this functionality into the tcpconnect gadget as they are very similar. I opened a new PR for that https://github.com/inspektor-gadget/inspektor-gadget/pull/1574


Manage both id_token and access_token during httpRequest

Is your feature request related to a problem? Please describe.
Yes. We want to switch to this library to use httpRequest() to manage tokens for us. It appears to work ok in most scenarios and we think we've got it working the way it is currently intended to:

httpRequest() automatically manages access_token and includes it for bearer authorization to get through our WSO2 APIM layer.
We use HttpRequestConfig object to pass the id_token to the backend system in the X-JWT-Assertion header.

I believe the problem arises because after the config with the id_token is passed in, the first service call can possible fail with 401/403 issues and the library goes through a refresh loop and re-attempts. The re-attempt will update the access_token in the managed part of the call, but won't touch the id_token passed in through config, resulting in them being misaligned.
We are still exploring all of our options, but currently looks like httpRequest() is not suitable for our needs because it can only manage one token, so we will have to continue manage tokens with custom code outside the library... undermining why we wanted to use the library over our older custom login code.
Describe the solution you would prefer
If the config for httpRequest() exposed a parameter like idTokenHeader we could provide X-JWT-Assertion and the second attempted call could update both together.
Additional context
I think we're aligned with advice from https://github.com/asgardeo/asgardeo-auth-react-sdk/issues/79 ... but I could be wrong. I pinged a different team on the idea of using the id_token to get through APIM, instead of the access_token... but I don't have control that system.
Beyond that, switching approach now would need every other client that passes through APIM to change their token handling.

The re-attempt will update the access_token in the managed part of the call, but won't touch the id_token passed in through config, resulting in them being misaligned.

I assume that the reason for not touching the ID token is that ID token remains mostly static (because ID token contains user info which doesn't change frequently) and therefore rarely needs to be updated.


Some features does not working

Hi @vlio20
First, thank you for this awesome package.
Some features i want to use do not work. Used and does not work features below.
Configuration:

Name
Type
Default
Description

closeOnSelect
Boolean
true
If set to true will close the date-picker after choosing a date from the calender, otherwise, won't

Attributes:

Name
Type
Default
Description

minDate
Moment or String
undefined
This is a validation rule, if the selected date will be before minDate the containing form will be invalid. Note: if provided as string format configuration should be provided in the config object

I also could not work events.
For example:

Name
Type
Description

dayClick
EventEmitter<Moment[]>
Emits the currently selected days every time the selection changes

Use Case:
<dp-day-picker
    [(ngModel)]="install"
     name="install"
     #install="ngModel"
     [required]="true"
     [class.dp-material]="true"
     [config]="datePickerConfig"
     [minDate]="'2017-05-16'"
     (dayClick)="catchEvent($event)">
</dp-day-picker>

Main config:
public datePickerConfig: Object = {
    format: "DD/MM/YYYY",
    closeOnSelect: true,
    weekdayNames: {
      "su": "Pz",
      "mo": "Pzt",
      "tu": "Sal",
      "we": "Çar",
      "th": "Per",
      "fr": "Cum",
      "sa": "Cmt"
    }
  };

Thanks.

Hi again,
Please ignore the issue about attribute. Smoothly works.

@atayahmet, thanks for opening a bug. Will take care of it soon.

@atayahmet, issue was solved and available in 0.5.0 version (there was also small api change dayContextmenu -> dayContextMenu) .


Vendoring dependencies

@astaxie what is the proposed way for adding external packages to bat. What do you think about using something like godep?

yea, godep is awesome

But why do bat need to import third package? if want to import third package, I think interface is the best solution.

IMHO, using main package for third party libraries pollutes and complicates main namespace. I think they should be in their own sub-package like httplib.
At this point a tool like godep standardizes that process and makes vendoring easier by rewriting the dependencies' namespaces.
BTW, I asked this mainly because I wanted to add a dependency (ansicolor) to make response formatting code and user interface uniform (i.e windows independent).

That make sense. it looks ansicolor is cool.


feature/BOT-2223-fbwebhook-provide-option-to-sen

Requires latest develop branch of botium-core as well!


"unexpected end of JSON input"

Hi,
When starting empire with docker-compose up, the empire_server_1 exits with the last stdout message being, unexpected end of JSON input.

git clone
docker-compose up
Wait for containers to start
notice empire_server_1 dies with error

if you're on master, you'l see something like this right now:
$ docker-compose up
Starting empire_postgres_1
Starting empire_server_1
Attaching to empire_postgres_1, empire_server_1
postgres_1 | LOG:  database system was interrupted; last known up at 2016-05-03 20:44:30 UTC
postgres_1 | LOG:  database system was not properly shut down; automatic recovery in progress
postgres_1 | LOG:  invalid record length at 0/1888AE0
postgres_1 | LOG:  redo is not required
postgres_1 | LOG:  MultiXact member wraparound protections are now enabled
postgres_1 | LOG:  database system is ready to accept connections
postgres_1 | LOG:  autovacuum launcher started
server_1   | Up to date
server_1   | 2016/05/03 21:10:53 error validating CloudFormation template: CustomResourcesTopic is required
empire_server_1 exited with code 1

This is because the docker-compose file is setup to test the new cloudformation scheduler.
Within, docker-compose.yml change:
EMPIRE_SCHEDULER: cloudformation

to
EMPIRE_SCHEDULER: ecs

does that help?

Hey @uptownhr. This happens because Empire tries to connect to postgres before the postgres container fully initializes the database and starts running. You can simply run docker-compose up again and it'll connect. Let me know if that helps.

Gonna close this for now. @uptownhr feel free to re-open if that doesn't fix the issue for you.


fix: Fixed example where VPC CNI permissions should apply to the aws-node account

Description
The AWS documentation uses a service account name aws-node instead of aws-vpc-cni, the Helm chart name.
Motivation and Context
Don't want someone to be misled by current documentation.
Breaking Changes
None
How Has This Been Tested?

[x] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[ ] I have tested and validated these changes using one or more of the provided examples/* projects

I've successfully used aws-node in my projects and was forced to double-check the AWS documentation after seeing the example here.

This PR is included in version 4.20.1 :tada:


Now there are some issues in MTEB huggingface leaderboard.

The issue is as shown in the figure above.

Fixed it thanks for raising!


Add setting to switch between Spring specific and regular Java flow

Description
In Settings -> Tools -> UnitTestBot:

Add setting switch between Spring specific and regular Java flow (in Spring projects)

Expected behavior
If Spring support setting is turned ON - and the project has Spring dependencies - Spring-specific test generation should be applied. Action dialog should be changed to Spring-specific.
Parameterized tests should not be displayed.
In all other cases - regular Java test generation should be applied.
Action dialog UI should be regular, without Spring-specific logic and controls.
Environment
IntelliJ IDEA Ultimate / Community
Projects with and without Spring dependencies
Potential alternatives
Currently there are two plugin JAR-files generated: with and without Spring support.
It is not the best solution for several reasons:

User should install/reinstall plugin - if they first used it in a Java project - and then want to use it in Spring project. Or vice a versa.
Several artefacts support.

Context
See https://github.com/UnitTestBot/UTBotJava/actions/runs/5735792610

Both IU and IC plugins can be installed on IntelliJ IDEA Ultimate and Community.
Plugin size with and without Spring differs not critically: 34 MB maximum (168 vs 134)

Actually, I do not really see an outcome of the following feature. Giving an option to generate standard tests for Spring projects may be useful if we consider our Spring specific implementation to be bad and our standard implementation to generate something meaningful at once. I'm not sure that Spring specific version is so bad and standard version is so good...
However, it may be a good feature to allow selecting generation type for the current class selected in editor, as user may see that it does not have any Spring specific or contains something we have difficulties to deal with. When we generate tests not for one class, but for whole packages, it seems useless to me.

Agreed.
And there is one more reason for a user to select regular flow in a Spring project. That can be generated tests format preferences. User may select to generate regular unit tests without @InjectMocks and @Mock.


Fix padding variable overrides

Changes
This PR removes uicore-bordered-padding and uicore-unbordered-padding variable overrides in inputs/variables.scss. The overriden values were used only by ValidationTextBox which is an alpha component and it is not used by anyone (and it should be removed in favor of iTwinUI Input component).
Testing
No changes, tested via standalone test-app and storybook.

 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.


Enable Solr Operator metrics when using the helm chart.

Resolves #307
This does not use the protected metrics-endpoint described in the kubebuilder docs. This is also just using the default operator metrics. We can add additional metrics in future PRs.
The metrics have been enabled since #321 was implemented, but not when using the helm chart. This fixes that.

Tested manually and was able to query the operator metrics through kubectl port-forward.


Automated cherry pick of #8026: fix: 避免腾讯云同步虚拟机ip异常

Cherry pick of #8026 on release/3.4.
#8026: fix: 避免腾讯云同步虚拟机ip异常

/lgtm
/approve


User attribute olean inconsistency causes segfaults

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Checked that your issue isn't already filed.

Specifically, check out the wishlist, open RFCs,
or feature requests.

Reduced the issue to a self-contained, reproducible test case.

Description
This is a tricky one to reproduce. Roughly speaking, the lean --server and lean --make versions generate different olean data for the param data of a user_attribute, leading to an inconsistency when it is read by user_attribute.get_param. Here's a minimal example. It requires two files - A.olean is corrupted, and B reads the corrupted file causing a segfault. I have also managed to get lean --make to segfault, but the instructions below are only for triggering a lean --server segfault and I'm less certain how to trigger it the other way around.
A.lean:
@[user_attribute] meta def my_attr : user_attribute unit name :=
{ name := `mine, descr := "test", parser := lean.parser.ident }
attribute [mine hello] nat

B.lean:
import .A
run_cmd my_attr.get_param `nat >>= tactic.trace

Steps to reproduce:

Save A.lean and B.lean in a new folder.
Execute lean --make from there.
Open B.lean in VSCode (take care not to open A.lean first, and make sure lean is set to "check visible files")
Segfault occurs. If A.lean is opened first, or if lean --make was not run, VSCode is okay, because it doesn't use the A.olean file.

PS: This bug is occurring currently in mathlib, and it's not fun to be constantly clearing the bad olean files.

Well, this is embarassing. It looks like we never actually serialize or deserialize user attribute data.
@leodemoura I left the following comment in the original implementation, which currently calls into a no-op: https://github.com/leanprover/lean/blob/4f66673fc20d4c663f0d3397efe73226d541c22b/src/library/attribute_manager.cpp#L146. I'm pretty sure we do need access to the environment in the deserializer to implement this. The cleanest way I can think of right now is to attach it as a deserializer extension.

The cleanest way I can think of right now is to attach it as a deserializer extension.

I see now that extensions are stateless. Hm.

On second thought, this was indeed trivial to fix. Sorry for the delay.


Screenshot  Extension

Is your feature request related to a problem? Please describe.
This feature request addresses a user-facing problem related to the absence of a built-in screenshot feature in the current extension.
Describe the solution you'd like
I would like to implement a screenshot feature in the Chrome extension, allowing users to easily capture and save screenshots of webpages they are browsing.
Describe alternatives you've considered
One alternative could be to instruct users to use their operating system's built-in screenshot functionality. However, integrating a screenshot feature directly into the extension would offer a more streamlined and convenient experience for users.
Additional context
Adding a screenshot feature to the Chrome extension aims to enhance its usability and provide users with a comprehensive set of tools for capturing and saving content from their browseR
What problem is this feature trying to solve?
This feature addresses the absence of a built-in screenshot capability in the Chrome extension, providing users with a convenient way to capture and save screenshots directly from their browser.
How do we know when the feature is complete?
The feature will be considered complete when users can successfully take screenshots of webpages using the Chrome extension and save them to their device. I will make a PR when it is done

Assign it to me under gssoc'24


Provide a Spark Streaming compatible DSL

As spark is extremely popular today, I think it will beneficial to support some kind of integration between Spark and Gearpump. One direction is to provide a Spark Streaming compatible DSL that can be used to replace Spark Streaming with Gearpump. So that, we can use Gearpump as a low-latency replacement for Spark Streaming but keep the interoperability between Gearpump and Spark batch.
Just a rough idea. No detailed study made yet.
In this model, Gearpump and Spark cluster are running in parallel. User's Spark Streaming application submitted to Gearpump will be translated to Gearpump DSL and running on Gearpump.
The command "gear --spark spark_streaming_app.jar" will perform the client side rewrite for this jar to replace Spark Streaming DSL with corresponding Gearpump DSL. So, basically user is transparent. But Gearpump DSL shall be highly compatible with Spark Streaming DSL to simplify the   rewrite.

It looks like we are aligning GP DSL to work with both akka-streams and apache beam. Since spark also runs under apache beam I think our DSL efforts are focused on these 2 frameworks. @whjiang please reopen if you think we should have specific focus on the spark DSL.


Allow to easily integrate in an existing Elixir app

It would be great if most of this can be moved to a mix dependency where it can be easily integrated inside of another app. This repo can just use that dependency.
I also saw that the table names are not namespaced. Actually namespacing these would also help to have this coexist.

oh man this would be really cool... i think we probably won't have time to do this for a while since there's a bunch of other things on our current roadmap, but i hadn't though about this until now...
just to make sure i understand correctly, what you'd like to see is a papercups dependency that you can install, and then invoke methods like Papercups.Messages.list(...) and stuff like that?

Yeah basically have the whole app inside of an existing app. This is possible with Elixir as it's quite composable. (Basically you just need to add some lines to routes? And maybe some global config?).
If we look at adopting papercups I'll probably try to make a PR to enable this.

@jfrolich I think including the js is the least difficult part of such a transformation, but to include the js widget, you could do what phoenix does: include the js in the hex package, and reference it from the app's package.json like so:
  "dependencies": {
    "phoenix": "file:../deps/phoenix",
    "papercups_phx_widget": "file:../deps/papercups"
}

And then later in js files import things like so:
import {Socket} from "phoenix"
import Widget from "papercups_phx_widget"

Maybe something that would get one most of the way is a hex package that always includes the latest widget js bundle and enables existing phx apps to include the dependency, provide some config for their current papercups.io account, and then that would enable an existing phx app to have all traffic from the widget go through its own server first, proxying everything to the papercups.io server. This enables webapps to reduce the number of third party http calls from their page.


d3-color version issue

d3-color
hey guys i just ran npm audit and there is a dep issue on d3-color and it is high
any chance someone can confirm if they are getting the same issue?

any news? or specific version fixed version?

I believe this may be related to
https://github.com/d3/d3-color/issues/97
which was fixed in
https://github.com/d3/d3-color/pull/100


undefined field in request body cannot be deserialized

Describe the bug
When an endpoint covered by rond gets called with a JSON object having a field set to undefined, an error is returned as following:
{"error":"RBAC input creation failed","message":"Internal server error, please try again later","statusCode":500}

And logs the following:
{"foundBindingsLength":3,"foundRolesLength":2,"level":10,"msg":"found bindings and roles"}
{"error":{"message":"failed request body deserialization: invalid character 'u' looking for beginning of value"},"level":50,"msg":"failed rego query input creation"}

Replication info

Rönd version: main
Running mode: sidecar

Hi @mattia-fumo undefined value makes the JSON invalid so the error is correct


PageLayout

Hi Barry,
First of all Thanks for creating this repository which has given me a great opportunity to publish my Blog !!
My question is when I try to edit the about markdown,I think there is a limit as to how many words can come on a single line .
Now by default very few words  can come in  a single line and I want more.
Can you please tell me the way forward?
Regards
Akshay

Hi, you can resolve this easily by editing style.scss file in root of your blog (it changed your page layout globally) or make some special styles and layout only for aboud.md file.

Make new file in _layout folder named for instance about.html and copy the content of some other .html file in

Edit style.scss file by adding new class named for instance about

Rename class in your new about.md file to about

In ABOUT.md file change first line to layout: about

I think that this should help.


Shim formdata-node for nodeless

(discovered from vercel/ai / openai dep)

Seems we don't need it anymore with openai 4.0.1. Let's revise if needed to include


Sheetmusic - Noteheads doesn't render correctly (font-issue?)

Hi guys,
Here's a bug that has been annoying me for quite some time now, and I'm not really sure what the problem is.
My guess is that it's a font-issue, but I though you'd had them fixed? Anyway, the document is mine and I don't claim it anything but copyleft.
http://min.us/m4l4KtQyV
btw: Is there some specific tool you use to inspect the pdf-files? So that I could try to look into such issues myself?

I just tried it and it seems to work fine to me. I'd suggest you try with the newest build available at
https://addons.mozilla.org/en-US/firefox/addon/pdfjs/
or
http://mozilla.github.com/pdf.js/extensions/firefox/pdf.js.xpi (probably newer, more experimental too)
And if it still doesn't work, specify which browser (name and version) and operating system (name, version, platform) you use, so the devs can narrow down the possible issues.

saebekassebil: i've seen a few sheet music problems like this -- do you know which music notation program was used to create this?

Hmmm... i don't see any issue on my computer as well. Could you provide the description of the defect and/or screenshot, as well as the info about OS and browser as well?

Windows 7, Firefox 9.0.1 Release, I'm on the latest commit on my mozilla branch, and it doesn't work there either.
@wfwalker I've created this with Sibelius,
@notmasteryet http://minus.com/mZVuEAXW2

Unable to replicate on my Windows 7, Firefox 9.0.1 / pdf.js 0.2.118.
@saebekassebil it's possible, please post the information from the about:support page (filter the sensitive info, so at least Graphics section)

Ahh, thanks! Upgrading my driver was fantastic, wasn't aware that a new version had been released.
It works well on Firefox 10.0 now, except some missing symbols! All rests with a lower value than a crotchet and minim noteheads are not rendered!
Image of issue:
http://min.us/mY1zeNnFK
Another thing is, that noteheads aren't rendered in Chrome, nor in Nightly

Could you check again if #1110 fixes that?

It doesn't, sorry.

The issue fixed by #1244

Indeed fixed, thanks!


Make terminals stats section in perfviewEditor

Part of #185393

I made the changes, it required a bunch of shuffling around of "terminal backends" to move them into platform so they could be used in the timer service. In the big https://github.com/microsoft/vscode/pull/185754/commits/ed54d72d8c3e068055e57416d42c9cf5fc0921c3 commit the main point of interest is the change in timerService.ts


Routing  pattern: syntax  & parameters (Complete)

Help us make content visible

Tell us what search terms you used and how you searched docs.
UseEndpoints, MapAreaControllerRoute, MapControllerRoute, IRouter, endpoint patterns, pattern syntax, UseEndpoints patterns, RoutePattern... combinations of all of these, etc. the site search is not great. I have better luck using Google to search the site or using the left navigation pane and visually searching for topics.
Tell us what docs you found that didn't address your concern.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/routing
https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/routing
https://docs.microsoft.com/en-us/aspnet/core/razor-pages/razor-pages-conventions

Describe the new topic

Explain why this topic is needed.
I've been using asp.net for years and only recently needed to adjust routing. I do remember adjusting it in asp.net and not having an issue but in AspNetCore 3 UseEndpoints I just do not have a clear concept of what's going on behind the scenes. 2 weeks in, I've read every article on the net including stack overflow and blog articles most multiple times. I do not get a clear concept of routing. I think the reason is that there is no full documentation on the parameters and syntax of patterns in MapControllerRoute which is the default endpoint extension used in AspNetCore 3 MVC applications. With that, I expect a reader could quickly visualize a pattern in their use case.

The information in section "Route constraint reference" on the fundamentals page is a good example of parameters and examples I would expect. An example of something rough is in the section
"Route template reference"
{Page=Home}     |     /                 |     Matches and sets Page to Home.
{Page=Home}     |     /Contact     |     Matches and sets Page to Contact.
There is no explanation as to what Page accepts as parameters, what Page is, nor how a request of /Contact would be mapped to this route of /Home. The reader is left to assume that Home is a default based on other verbiage in the topic. Some of the ambiguity comes from me having no interest in learning razor "pages" maybe. I use MVC with razor views and dislike code behind so I think this threw me off. Also is template the same as a pattern syntactically?
In short:
Having a UseEndpoints.extensionmethod > pattern: complete syntax and parameters list will allow someone to quickly troubleshoot their routing syntax which would be faster than reading the current docs.

Suggest a location in the Table of Contents.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/Routing Pattern Syntax & Parameters

Write an abstract. In one short paragraph, describe what this topic will cover.
MVC Endpoint routing patterns require specific syntax and parameters. This topic will in detail describe the syntax and list all accepted parameter values which are fundamental in creating routes with endpoints.

Create an outline for the new topic. We'll help review the outline and approve it before anyone writes a topic.
Pattern parameters list
Keywords
Accepted Values
Pattern string syntax
custom parameters
default values
segments
route constraints

its hard to outline these as I do not fully understand the topic.

cc @rynowak

@rynowak can you look into this and see what we can add to cover the gap? Thanks!

Hi. Thanks for contacting us.
We're closing this issue as there was not much community interest in this ask for quite a while now.
You can learn more about our triage process and how we handle issues by reading our Triage Process writeup.


Canonical path fix

These Pull Requests contain the following content:
1.fix zip slip in issue #62
2.revert getCanonicalPath back to getPath in commit #44 (19 occurrences in total)
3.fix exceptions in adding files caused by not normalized file path. Including:
(1) fix getRelativeFileName in FileUtils.java by changing input file and rootFolderPath into canonical path. Throw new ZipException when catch IOException thrown by getCanonicalPath()
(2) adding new testcase testUnzipFileZipSlipWithNotNormalizedTarget in MiscZipFileIT.java for this
I also checked all the occurrences of getPath() and getAbsolutePath(). I think they are working correctly and would not cause exceptions right now. Maybe changing all of them to getCanonicalPath() is a good idea, but I'm not sure about this.

The changes in AddFolderToZipTask.java and FileUtils.java are necessary. But I'm sorry that I made some mistake in the unit test testAddFolderWithNotNormalizedPath.
It should be like this:
@Test
  public void testAddFolderAndFileWithCanonicalPath() throws IOException {
    ZipFile zipFile = new ZipFile(generatedZipFile);
    ZipParameters parameters = new ZipParameters();

    String folderToAddPath = TestUtils.getTestFileFromResources("").getPath() + InternalZipConstants.FILE_SEPARATOR + ".." + InternalZipConstants.FILE_SEPARATOR + TestUtils.getTestFileFromResources("").getName();
    File folderToAdd = new File(folderToAddPath);
    zipFile.addFolder(folderToAdd, parameters);
    zipFile.addFile(TestUtils.getTestFileFromResources("file_PDF_1MB.pdf"), parameters);
    ZipFileVerifier.verifyZipFileByExtractingAllFiles(generatedZipFile, outputFolder, 13);
  }

This test will throw an exception in getRelativeFileName in FileUtils.java


Could you provide a pre-trained model on InterHand Dataset?

(from email)

unfortunately, it can not be release as InterHand is not public yet.

InterHand2.6M is public. Could you provide a pre-trained model on InterHand2.6M Dataset?


Pretrained model

Could you share a pretrained model checkpoint that can be directly used for generation/evaluation?

Can Anyone help with the pretrained checkpoint of show,attend and tell??

https://www.dropbox.com/s/nq7o5ynvs4etdsi/models.zip?dl=0


Improved tree shaking?

I previously found that importing from * as arrow meant that esbuild couldn't treeshake at all. https://github.com/geoarrow/geoarrow-js/pull/20
So maybe this lib should use path imports? It does have to import every type necessarily because it doesn't know what data type the C struct will be.

It should be possible to try this and see how much the output rollup sizes change