Please help me

Hello
I did several steps.
The menu opens
But the touch key does not answer
The running time of the last stages
The following messages are displayed
unlink: cannot unlink '/usr/bin/node': No such file or directory
unlink: cannot unlink '/usr/sbin/node': No such file or directory
unlink: cannot unlink '/sbin/node': No such file or directory
unlink: cannot unlink '/usr/local/bin/node': No such file or directory
unlink: cannot unlink '/usr/bin/npm': No such file or directory
unlink: cannot unlink '/usr/sbin/npm': No such file or directory
unlink: cannot unlink '/sbin/npm': No such file or directory
unlink: cannot unlink '/usr/local/bin/npm': No such file or directory
Please list the new steps again

My problem solved with this method

ok, had some time on my hand on a linux machine. the following script shourd work:sudo wget https://github.com/SteBuTOS/TouchScreen-For-NanoDLP/archive/v0.3.tar.gz --no-check-certificate -O - | sudo tar -C /home/pi/nextion -xzsudo cp /home/pi/nextion/TouchScreen-For-NanoDLP-0.3/. /home/pi/nextion/. -rvsudo rm -r /home/pi/nextion/TouchScreen-For-NanoDLP-0.3sudo npm i ipsudo npm i drivelistsudo npm i child_processsudo shutdown -r now

Pi3B install nodejs try again
wget https://nodejs.org/dist/v10.0.0/node-v10.0.0-linux-armv7l.tar.xz
xz -d node-v10.0.0-linux-armv7l.tar.xz
tar -xavf node-v10.0.0-linux-armv7l.tar
sudo ln -s /usr/local/node/bin/node /usr/bin/node
sudo ln -s /usr/local/node/bin/npm /usr/bin/npm
Check if it is installed
6. node --version
7. npm --version
run
sudo npm i ip sudo npm i drivelist
sudo npm i child_process
sudo shutdown -r now
Disable Bluetooth
1.sudo systemctl disable hciuart
2.sudo reboot
I am using NEXCION 7"
Some features are currently not working.
My solution is to modify the content of the program.

Hi there, i get the same messages using a Pi2B any idea how i get nodejs up and running on that model?

ok, had some time on my hand on a linux machine. the following script shourd work:
sudo wget https://github.com/SteBuTOS/TouchScreen-For-NanoDLP/archive/v0.3.tar.gz --no-check-certificate -O - | sudo tar -C /home/pi/nextion -xz
sudo cp /home/pi/nextion/TouchScreen-For-NanoDLP-0.3/. /home/pi/nextion/. -rv
sudo rm -r /home/pi/nextion/TouchScreen-For-NanoDLP-0.3
sudo npm i ip
sudo npm i drivelist
sudo npm i child_process
sudo shutdown -r now

Thank you for your answer. I tried using your comands and got a lot of errors. I´ve looked these up and installed node.js and npm following this link:
https://www.instructables.com/id/Install-Nodejs-and-Npm-on-Raspberry-Pi/
if i check the versions of both, i get a correct respond. But if i try to follow your suggestions i get the following errors:
pi@raspberrypi:~ $ sudo npm i drivelist
k for /home/pi

<EMAIL_ADDRESS>install /home/pi/node_modules/drivelist
prebuild-install || node-gyp rebuild

prebuild-install WARN install EACCES: permission denied, access '/root/.npm'
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/6.4.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/node_modules/drivelist/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/node_modules/drivelist/.node-gyp'
gyp ERR! stack     at Error (native)
gyp ERR! System Linux 4.14.79-v7+
gyp ERR! command "/opt/nodejs/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/drivelist
gyp ERR! node -v v6.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-12-01T09_29_06_549Z-debug.log

I´m sorry i just looked into my answer and realised i didn´t post the answer that i get on your fist command. The answer is the following:
pi@raspberrypi:~ $ sudo npm i ip
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'                      home/pi/node_m
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'                         kage.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.

<EMAIL_ADDRESS>updated 1 package and audited 5388 packages in 65.581s
found 0 vulnerabilities


toml::parse() fails if UTF-8 BOM is present.

Hi,
With Visual Studio 2015, the following  code :
{
    std::ifstream ifs(<utf-8 file with BOM marker>);
    toml::ParseResult pr = toml::parse(ifs);
    // ...
}

raised this assertion in the crt:
File: minkernel\crts\ucrt\src\appcrt\convert\isctype.cpp
Line: 36
Expression: c >= -1 && c <= 255
in this line,
while (current(&c) && (isalnum(c) || c == '_' || c == '-')) {

of the Lexer::nextKey() function, when the 3 char of the UTF-8 BOM is present in front of the stream.
The code works well when the BOM is not present.
This workaround resolved the problem for me:
{
    // ...
    std::filebuf* pbuf = ifs.rdbuf();
    unsigned char cUTF8_BOM[3];
    pbuf->sgetn((char *)cUTF8_BOM, sizeof(cUTF8_BOM));
    // UTF-8 BOM?
    const unsigned char g_UTF8_BOM[3] = { 0xEF, 0xBB, 0xBF };
    if ((g_UTF8_BOM[0] == cUTF8_BOM[0]) && (g_UTF8_BOM[1] == cUTF8_BOM[1]) && (g_UTF8_BOM[2] == cUTF8_BOM[2]))
        pbuf->pubseekpos(sizeof(g_UTF8_BOM), std::ios_base::cur);

    // ...
}

But I believe it could be easily fixed in your library.
Sincerely.

Actually I really hate UTF-8 BOM since it's nonsense, however https://github.com/toml-lang/toml/issues/437 says UTF-8 BOM must be allowed, so I'll fix it later.


Update login and register pages

What does this implement/fix? Explain your changes.
Adds redirecting and authentication checks.
Does this reference any currently open issues?
None.
Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. This is simply a reminder of what we are going to look for before merging your code.

[x] I have linted my code and I have run tests locally that pass
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation

Any other comments?
…

Dank bro


SNOW-704114 Implement DataFrame.summary() (#629)

Please answer these questions before submitting your pull requests. Thanks!

What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #SNOW-704114

Fill out the following pre-review checklist:

[x] I am adding a new automated test(s) to verify correctness of my new code
[ ] I am adding new logging messages
[ ] I am adding a new telemetry message
[ ] I am adding new credentials
[ ] I am adding a new dependency

Please describe how your code solves the related issue.
This changes matches pandas.describe() function to show percentiles which previously wasn't shown.

Hello @suenalaba , thank you for contributing! Could you please also update CHANGELOG.md to indicate this improvement to df.describe?

Hello @sfc-gh-stan , I've updated CHANGELOG.md to reflect this updated feature for df.describe().

Hello @suenalaba , #735 is fixed, could you please fix the integration test and doctest failures and re-request review?

Hi @suenalaba , I opened #750 to address the issue you are encountering. Feel free to pull the changes to unblock your development. On a separate note, I had a discussion with @sfc-gh-gfrere on SNOW-704114. We concluded it's better to implement DataFrame.summary() to display the percentiles instead of modifying the exsiting DataFrame.describe() to avoid unexpected behavior change. Similar to DataFrame.describe, DataFrame.summary should display the count, mean, stddev, min, max and approximate quartiles for the specified list of columns. Sorry for this abrupt change of requirements, would you like to address this new feature request? Please don't hesitate if you have any questions.

Hello @sfc-gh-stan, I've pulled the changes in #750 and it now allows me to run the integration tests, thanks for that!
I am unable to see the discussion on SNOW-704114 as I do not have access, but I can understand the rationale you mentioned on the unexpected behavior change.
I've created a new df.summary() function as per what I understand from your description and I've addressed the issue of failing integration tests that you mentioned about earlier as well.
I've added those in my latest commits, kindly let me know if there are any ways I can improve on it!

Hi @suenalaba , thank you for addressing the new requirements! I meant to link #629 . Your changes look good to me, let's make it more concise by (1) using lambda and (2)  extract and reuse the duplicate code between DataFrame.describe and DataFrame.summary.

Hey @sfc-gh-stan , thanks for your suggestion. I've cleaned it up a little and used lambda to make it more concise! Kindly let me know if this is good or if there any further changes needed.

Hi @suenalaba , I think some merge gates are failing because of the session parameter APPROX_PERCENTILE_EXACT_IF_POSSIBLE is set to True by default in some deployments, there is an ongoing parameter rollout. Could you please change the tests to accept both values here?

Hey, @sfc-gh-stan is there anywhere I can find more information on the APPROX_PERCENTILE_EXACT_IF_POSSIBLE parameter?

Hey, @sfc-gh-stan is there anywhere I can find more information on the APPROX_PERCENTILE_EXACT_IF_POSSIBLE parameter?

I'm not sure if there's any public documentation, but you could flip the parameter on and off with alter session set APPROX_PERCENTILE_EXACT_IF_POSSIBLE = true/false.

@sfc-gh-stan the parameter allows APPROX_PERC to use the full population if we do not fill memory. This was an optimization since we unnecessarily used the sparse representation on input sizes that were small.

@sfc-gh-stan where exactly do you guys set this parameter? Is it in any test configuration files?

@sfc-gh-stan where exactly do you guys set this parameter? Is it in any test configuration files?

These are snowflake parameters. It is set from the server side. For client, these are set at runtime by issuing SQL commands like alter account/user/session <parameter> = <val>. In Snowpark Python, this would be session.sql("...").
The merge gates test failures are caused by different Snowflake servers having different default values for this parameter due to an ongoing parameter rollout. The value of this parameter affects the results approx_percentile. For now, I'm suggesting we change the tests to accept both results (when the parameter is true/false).
Please let me know if you have any other questions 🙂

@sfc-gh-stan hi sophie, sorry for the late revert. Apparently my free trial expired and Im having some issues setting up my payment on Snowflake. Is it possible for you to help make the above changes to close this issue?


Fix inventory_source

Adds the possibility to use source_id inside resource_inventory_source.
This is particular important because it's the only way to enable dynamic inventory.
The corresponding issue is:
https://github.com/denouche/terraform-provider-awx/issues/17

Thanks for this PR @Chavo11 ! 🥇
@denouche @Tioborto as this is a very low risk PR would you be able to review and merge it?

You're welcome. To be clear there's also roondar PR that adds this feature + a pack more:
https://github.com/denouche/terraform-provider-awx/pull/21

You're welcome. To be clear there's also roondar PR that adds this feature + a pack more: #21

Yeah, I saw it. Great to see increasing activity on this repo 😍
I personally think merging this PR first would be a low hanging fruit, as it enables new fields on an existing resource, with no side effect. So it's pretty safe!

Thanks for this PR @Chavo11 ! 🥇
@denouche @Tioborto as this is a very low risk PR would you be able to review and merge it?

@denouche @Tioborto sorry for bothering you again, but could you merge this one?
It's pretty small and low risk and would be pretty helpful for those who keep multiple inventory sources in AWX.

Hello @Chavo11 , thank you for your contribution!
I just merged it.
Sorry for the delay.


Dataset: hgld: missing entry marker

From @xrotwang on July 19, 2016 10:28
Include: -, --, ...
Copied from original issue: glottobank/lexibank-data#11

This is implemented in the FormSpec now.


Fingerprint Auth FAILS After Putting App In Background After Logout

Steps to reproduce:

Logout of app, so user is back on login screen and fingerprint modal will show.
Navigate away by hitting home button or going to other app.
Go back to the app.
Modal for fingerprint will be showing.
Try to login with fingerprint.

Result:

Login will fail, although modal will saw fingerprint recognized.
Modal will close and user will see login screen (or whatever behavior is designed to be behind the modal)
Nothing happens and user will be confused as to why the fingerprint says it was recognized but nothing occurred.

Our Suspicion
After going into the background, whatever picks up the fingerprint authentication is no longer listening to the event and therefore not triggering the behavior that should occur afterwards.

I am not able to replicate this issue.  I have tested on a Nexus 6p running Android 8.0.0 and this has worked on previous version down to Android 6.0 and has worked on emulators as well.
This may either be device specific or an implementation error.
What device are you experiencing this issue on?  Have you tested on any other devices?
Can you provide a snippet of your implementation?  Are there any messages in the logcat that could indicate that the plugin has tried to return a response?

Perhaps you can revise your issue.  This modal does not deal with logging in and out of an application.  It merely handles the authentication result of fingerprint sensor.
In result 1 you mention that modal displayed fingerprint recognized, but your login fails.
If the fingerprint was recognized we need to check if the plugin has attempted to return a response.  If it has, and your success callback is not being called, maybe there is something going on with the context of your async callback.  What framework are you using for your app, Cordova, Ionic, Meteor, other?
Please help determine the conditions to replicate your issue or provide a link to a sample repo demonstrating the issue so more research can be performed.

I have tested It on Redmi 3S prime. As suggested in #96 now I am not opening new prompt onResume of app. But when I canning finger It is showing fingerPrint recognized but success callback has not been called.

@shivam-jtg I'm guessing the callback works correctly if the app does not go to the background, is that right?
Check the logcat and see if the plugin is returning a result.
Provide a snippet of your code calling the plugin and your callback methods.
Create a new Cordova app, add the plugin, and create a single button UI to launch the plugin.  If that reproduces the issue please create a Git repo and send me a link.

I have experienced similar symptoms and discovered that the problem arose in combination with an isAvailable call:
since the plugin always stores the callback-reference from the last call, if decrypt and isAvailable get called --before waiting that the other one has finished-- the first of the callback-references gets replaced by the later one, and then that (2nd) callback-reference is invoked twice (Cordova prints a warning message about the 2nd invocation).
So if you first call decrypt (or decrypt is still waiting for the user-interaction) and then call isAvailable, the decrypt-call will most probably try to send its result via the isAvailable-callback by using it a second time.
A solution to this: make sure, that all calls to the plugin have returned, before issuing a new one.
It might be worth considering, treating the isAvailable-call (that is its callback-reference) differently than the others -- since it is unlikely, encrypt and decrypt will be called concurrently, but isAvailable might be.
For instance, in my code is was part of a default-check that was triggered from some other code than the decrypt call.


Updating git llog alias.

Using git <IP_ADDRESS>, noticed a spam of llog aliases in my ~/.gitconfig. Added single quotes to have the alias take.

Nice, thanks.


Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/bowao/ioBroker.tino

[ ] [E154] common.dependencies must contain {"js-controller": ">=2.0.0"} or {"js-controller": ">=3.0.0"}

Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Thanks, that all bugs have been fixed.


add Traditional Chinese (zh_TW) translation.

Hi, I use django-userena in my new project, so I add Traditional Chinese (zh_TW) translation.

非常感謝您


Increase test coverage

Lines 13-14 in index.js file were uncovered by tests.
This PR increases test coverage from 97.72% to 100%.

Thanks!


Open app with authenticated link

What is the motivation for adding/enhancing this feature?

If a user arrives with an authenticated link and OMS instance in their URL, then they should be signed into the app directly without having to login again.

Closing as we have added support for SSO.


chore: make external_invoke_tx_to_json take ref

No need for ownership here, and as this is a test-util, keeping the
original value around is useful for assertions.

Stack:

#177
#176 ⬅

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

This change is

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 50.46%. Comparing base (06a6112) to head (0cb3a44).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #176      +/-   ##
==========================================
- Coverage   50.58%   50.46%   -0.12%
==========================================
  Files          22       22
  Lines         858      858
  Branches      858      858
==========================================
- Hits          434      433       -1
  Misses        398      398
- Partials       26       27       +1

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

✓ Commit merged in pull request #177


More arm 💪

Ubuntu uses armhf and arm64 architecture. At the moment we only build arm architecture which I think is golang parlance for ARMv5. armhf is ARMv7 with hardware floats, so GOARCH=arm GOARM=7 should work there. arm64 is ARMv9 with 64 bit instructions, as used on iDevices. Hopefully these packages work and are useful!
I'm excited to try them on Scaleway.
Here's latest master with these changes compiled for armhf and arm64:

buildkite-agent-linux-arm64.zip
buildkite-agent-linux-armhf.zip
buildkite-agent_2.2-beta.1-x_arm64.deb.zip
buildkite-agent_2.2-beta.1-x_armhf.deb.zip

Here's latest 2-1-stable with these changes compiled for armhf and arm64:

buildkite-agent-linux-arm64.zip
buildkite-agent-linux-armhf.zip
buildkite-agent_2.1.7-beta.1-x_arm64.deb.zip
buildkite-agent_2.1.7-beta.1-x_armhf.deb.zip

If we can get these tested then we should merge this and publish the binaries and packages properly.

This was tested by Dean Perry and seemed good. Okay for me to merge?

I'm not sure the installer script thing is accurate, but I guess we'll see! Difficult to test without access to unames.


[enhancement]: Deep Floyd support

Is there an existing issue for this?

[X] I have searched the existing issues

Contact Details
No response
What should this feature add?
Support for Deep Floyd IF v1.0.  This is supported in the most recent diffusers version, though from the Deep Floyd model card it doesn't appear to be as simple as "update diffusers and magic happens".
Alternatives
No response
Aditional Content
No response

This doesn't appear to be implemented.  When attempting to import the model, I get:
Could not determine type of repo DeepFloyd/IF-I-M-v1.0. Skipping install.


Resource is empty

I am using a monorepo setup with Drizzle, and have encountered a peculiar problem whereby Resource is empty in seemingly all contexts.
I have this folder structure:
root
├── infra
│   ├── graphql
│   ├── migrations
│   ├── api.ts
│   ├── graphql-api.ts
│   ├── postgres-database.ts
│   ├── storage.ts
│   └── vpc.ts
├── packages
│   ├── core
│   │   └── src
│   │       ├── job
│   │       ├── recipient
│   │       ├── source
│   │       ├── summary
│   │       └── user
│   ├── functions
│   │   └── src
│   └── scripts
│       └── src
│           └── build-schema.ts

My build-schema.ts file (to create GraphQL Schema) is in the scripts subfolder under packages and looks like this:
import { buildSchema } from 'type-graphql';
import { writeFileSync } from 'fs';
import { printSchema } from 'graphql';
import * as path from 'path';
import { UserResolver } from '@test-project/core/user/resolver';
import { SourceResolver } from '@test-project/core/source/resolver';
import { RecipientResolver } from '@test-project/core/recipient/resolver';
import { SummaryResolver } from '@test-project/core/summary/resolver';
import { JobResolver } from '@test-project/core/job/resolver';

async function generateSchema() {
  const schema = await buildSchema({
    resolvers: [
      UserResolver,
      SourceResolver,
      RecipientResolver,
      SummaryResolver,
      JobResolver,
    ],
  });

  // Save the schema to a file
  const printedSchema = printSchema(schema);
  const filePath = path.join(__dirname, '..', '..', '..', 'infra', 'graphql', 'schema.graphql');
  writeFileSync(filePath, printedSchema);
  console.log('🟢 GraphQL schema successfully generated!');
}

generateSchema().catch((err) => {
  console.error("🔴 Error generating schema:", err);
  process.exit(1);
});

It takes a Resolver class for each of my entities (I'm trying to stick to DDD 😉), and generates the GraphQL Schema – A short snippet from UserResolver:
@Resolver()
export class UserResolver {
  private userRepository = new UserRepository();

  @Query(() => User, { nullable: true })
  async getUserById(@Arg("id", () => Int) id: number): Promise<User | null> {
    const user = await this.userRepository.getUserById(id);
    return user;
  }
}

This in turn uses the UserRepository class, which is just an abstraction layer over Drizzle (in case I ever want to replace Drizzle).
The problem is that the UserRepository imports db from my Drizzle file, like so:
import { Resource } from "sst";
import { drizzle } from "drizzle-orm/aws-data-api/pg";
import { RDSDataClient } from "@aws-sdk/client-rds-data";

const client = new RDSDataClient({});

export const db = drizzle(client, {
  database: Resource.TestProjectDb.database,
  secretArn: Resource.TestProjectDb.secretArn,
  resourceArn: Resource.TestProjectDb.clusterArn,
});

But when I run (in the packages/scripts/ folder): npm run sst shell ts-node ./src/build-schema.ts (in parallel to NO_BUN=true npx sst dev in another terminal window) I get the following error:
> sst shell ts-node ./src/build-schema.ts

/Users/joneslloyd/Dropbox/Mac/Documents/personal/development/test-project/node_modules/ts-node/src/index.ts:859
    return new TSError(diagnosticText, diagnosticCodes, diagnostics);
           ^
TSError: ⨯ Unable to compile TypeScript:
../core/src/drizzle.ts:8:22 - error TS2339: Property 'TestProjectDb' does not exist on type 'Resource'.

8   database: Resource.TestProjectDb.database,
                       ~~~~~~~~~~~~~
../core/src/drizzle.ts:9:23 - error TS2339: Property 'TestProjectDb' does not exist on type 'Resource'.

9   secretArn: Resource.TestProjectDb.secretArn,
                        ~~~~~~~~~~~~~
../core/src/drizzle.ts:10:25 - error TS2339: Property 'TestProjectDb' does not exist on type 'Resource'.

10   resourceArn: Resource.TestProjectDb.clusterArn,

The only way around this issue (which feels like a horrible hack) is to do:
import { Resource } from "sst";
import { drizzle } from "drizzle-orm/aws-data-api/pg";
import { RDSDataClient } from "@aws-sdk/client-rds-data";

const client = new RDSDataClient({});

const dbConfig = JSON.parse(process?.env?.SST_RESOURCE_TestProject || '{}');

export const db = drizzle(client, {
  database: dbConfig.database,
  secretArn: dbConfig.secretArn,
  resourceArn: dbConfig.clusterArn,
});

Do you know why this is happening?
It also occurs when I try to reference Resource in my ./infra/graphql-api.ts file like so:
import { Resource } from "sst";
import { rds, secret } from "./postgres-database";

export const api = new sst.aws.AppSync("TestProjectApi", {
    schema: "./infra/graphql/schema.graphql",
});
console.log({Resource});
api.addDataSource({
    name: "LambdaDataSource",
    lambda: {
    link: [
        rds,
        secret,
    ],
    handler: "./packages/functions/src/api.handler",
    environment: {
        DATABASE_SECRET_ARN: Resource.TestProjectDb.secretArn,
        DATABASE_CLUSTER_ARN: Resource.TestProjectDb.clusterArn,
        DATABASE_NAME: Resource.TestProjectDb.database,
    }
},
});

(Resource is empty).
The file in which TestProjectDb is defined is ./infra/postgres-database.ts and looks like this:
import { vpc } from "./vpc";

export const rds = new sst.aws.Postgres("TestProjectDb", {
    vpc
});

export const secret = new sst.Secret("DBCredentialsSecret", "dbadmin");

And my sst.config.ts looks like this:
/// <reference path="./.sst/platform/config.d.ts" />

export default $config({
  app(input) {
    return {
      name: "test-project",
      removal: input?.stage === "production" ? "retain" : "remove",
      home: "aws",
      providers: {
        aws: {
          version: "6.41.0"
        }
      }
    };
  },
  async run() {
    await import("./infra/vpc");
    await import("./infra/storage");
    await import("./infra/postgres-database");
    const graphqlApiFile = await import("./infra/graphql-api");

    return {
      graphqlApi: graphqlApiFile.api.url
    };
  },
});

My sst-env.d.ts looks like:
/* This file is auto-generated by SST. Do not edit. */
/* tslint:disable */
/* eslint-disable */
import "sst"
export {}
declare module "sst" {
  export interface Resource {
    "DBCredentialsSecret": {
      "type": "sst.sst.Secret"
      "value": string
    }
    "TestProjectApi": {
      "type": "sst.aws.AppSync"
      "url": string
    }
    "TestProjectApiDataSourceLambdaDataSourceFunction": {
      "name": string
      "type": "sst.aws.Function"
    }
    "TestProjectBucket": {
      "name": string
      "type": "sst.aws.Bucket"
    }
    "TestProjectDb": {
      "clusterArn": string
      "database": string
      "host": string
      "password": string
      "port": number
      "secretArn": string
      "type": "sst.aws.Postgres"
      "username": string
    }
    "TestProjectVpc": {
      "type": "sst.aws.Vpc"
    }
  }
}

And when I run NO_BUN=true npx sst dev env (or just npx sst dev env) I get Unexpected error occurred. Please check the logs in .sst/log/sst.log, which itself contains nothing more than:
time=2024-09-16T22:28:51.565+02:00 level=ERROR msg="exited with error" err="exit status 1"

I am using sst version 3.1.11 as a dependency in both the main package.json and all others.
Any help here would be appreciated!

I had the same error ("does not exist on type Resource") and the problem was that my sst-env.d.ts was not included to tsconfig, so typescript could not map Resources types..
I Had something like that:
{
  "include": ["src"],
  "exclude": ["node_modules", ".sst"]
}

Try including sst.env.d.ts to tsconfig.json

Unfortunately including sst-env.d.ts file in tsconfig.json doesn't help (plus per the aws-monorepo example, the root tsconfig.json is normally empty).
Thanks for the suggestion though.

Per this thread, I've invited @thdxr to my repo to reproduce.

We are running sveltekit with sst. In case this is still an issue, by adding sst-env.d.ts to tsconfig->compilerOptions->types i resolved this issue.
{
  "extends": "./.svelte-kit/tsconfig.json",
  "compilerOptions": {
    "allowJs": true,
    "checkJs": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "resolveJsonModule": true,
    "skipLibCheck": true,
    "sourceMap": true,
    "strict": true,
    "moduleResolution": "bundler",
    **"types": ["./sst-env.d.ts"]**
  }
}


Add pytests for USA subsets and sum_AMEL

Codecov Report

:exclamation: No coverage uploaded for pull request base (dscim-v0.4.0@57ee5eb). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             dscim-v0.4.0      #67   +/-   ##
===============================================
  Coverage                ?   47.34%
===============================================
  Files                   ?       18
  Lines                   ?     1711
  Branches                ?        0
===============================================
  Hits                    ?      810
  Misses                  ?      901
  Partials                ?        0

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

https://github.com/ClimateImpactLab/dscim/blob/cda25bc6d26311c8e7f37816bd9ce16a664c9765/src/dscim/preprocessing/preprocessing.py#L163-L188 should either be generalized or removed. If generalized, we just need the one more test to finish tests for dscim/preprocesing/preprocessing.py.

See #71


python3 not detect in the Docker image

I try to compile nodeMcu for an esp32. I am on Windows 10.
When i try the following command:
docker run --rm -it -v c:/Users//nodemcu-firmware:/opt/nodemcu-firmware marcelstoer/nodemcu-build configure-esp32
Container starts but rapidly stop on the following error:
Entering 'components/qrcodegen/qrcodegen'
Entering 'components/u8g2/u8g2'
Entering 'components/ucg/ucg'
Entering 'sdk/esp32-esp-idf'
. /opt/nodemcu-firmware/sdk/esp32-esp-idf/export.sh && make "menuconfig"
Setting IDF_PATH to '/opt/nodemcu-firmware/sdk/esp32-esp-idf'
Detecting the Python interpreter
Checking "python" ...
Checking "python3" ...
/opt/nodemcu-firmware/sdk/esp32-esp-idf/tools/detect_python.sh: line 16: python3: command not found
Python 2.7.12
"python" has been detected
Adding ESP-IDF tools to PATH...
  File "/opt/nodemcu-firmware/sdk/esp32-esp-idf/tools/idf_tools.py", line 406
    info(f'Downloading {url}')
                            ^
SyntaxError: invalid syntax
Makefile:13: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 1

It seems there is no python3 in the container, and it detects python2 but i think that the line "info(f'Downloading {url}')" is clearly Python3's syntaxe.
Do you have any idea ? I ckeck in the container but i didn't find any trace of Python3...

+1 on this. I have the exact same problem. Tried on Debian/amd64 & macOS/arm64. Also, I tried to modify the Dockerfile to use python3 & pip3 but with no luck, it breaks at exactly the same line. Output is:
. /opt/nodemcu-firmware/sdk/esp32-esp-idf/export.sh && make "menuconfig" Setting IDF_PATH to '/opt/nodemcu-firmware/sdk/esp32-esp-idf' Detecting the Python interpreter Checking "python" ... Checking "python3" ... Python 3.5.2 "python3" has been detected Adding ESP-IDF tools to PATH...   File "/opt/nodemcu-firmware/sdk/esp32-esp-idf/tools/idf_tools.py", line 406     info(f'Downloading {url}')                             ^ SyntaxError: invalid syntax Makefile:13: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 1

Same here, please help!
Entering 'components/qrcodegen/qrcodegen'
Entering 'components/u8g2/u8g2'
Entering 'components/ucg/ucg'
Entering 'sdk/esp32-esp-idf'
. /opt/nodemcu-firmware/sdk/esp32-esp-idf/export.sh && make "menuconfig"
Setting IDF_PATH to '/opt/nodemcu-firmware/sdk/esp32-esp-idf'
Detecting the Python interpreter
Checking "python" ...
Checking "python3" ...
/opt/nodemcu-firmware/sdk/esp32-esp-idf/tools/detect_python.sh: line 16: python3: command not found
Python 2.7.12
"python" has been detected
Adding ESP-IDF tools to PATH...
File "/opt/nodemcu-firmware/sdk/esp32-esp-idf/tools/idf_tools.py", line 406
info(f'Downloading {url}')
^
SyntaxError: invalid syntax
Makefile:13: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 1

Problem is that SDK python tools were rewritten to python 3.x, but docker image has python 2.x. By the way, some SDK dependency is for gevent 1.5.0, which can't be compile with Python 3.11, and probably with Python 3.12 too.

Dear @marcelstoer,
I have the same issues as documented above in using your much appreciated Docker image for building the esp32 firmware in the latest dev-esp32 branch.
The SDK python tools use the recent Python f' strings which are supported only in Python 3.6 or higher.
Your docker image provides Python 2.7.12 and can not make sense of these, hence the invalid syntax errors.
I have attempted to upgrade the Python interpreter in my running container, but even after adding the apt repository ppa:deadsnakes/ppa I can only bump Python to 3.5 which does not solve the issue.
Your help in providing an updated Docker image would be much appreciated.
Best regards,
jmdasnoy

All of the grieve is caused by #101. Please continue any discussions over there.


Add new map component to browser pages

This PR adds a map component to the browser pages. When there is a "dcid: latLong/..." entry in the table, the lat/long is shown on a map in the cell. This should help make debugging locations easier :)
Extending this to all nodes with a "latitude" and "longitude" property will come in a future PR.
Examples:

Question for the group: Should I be placing the new map component somewhere else?
I've left this component under the browser folder for now, because it's currently only used on the browser pages. I know @chejennifer wrote up a doc for restructuring the website repo and eventually this component could be used in the event pages, so it might be worth extracting out?

Question for the group: Should I be placing the new map component somewhere else?
I've left this component under the browser folder for now, because it's currently only used on the browser pages. I know @chejennifer wrote up a doc for restructuring the website repo and eventually this component could be used in the event pages, so it might be worth extracting out?

I think ideally, we could:

reuse this map component instead of creating a new one: https://github.com/datacommonsorg/website/blob/master/static/js/place/map.tsx
move the component to the /components folder
add the ability to put a marker on the map just with logic. Maybe in the props either take in a place dcid or a latlong dcid & depending on what props the component receives, draw the map accordingly

wonder what everyone else thinks?

I think ideally, we could:

reuse this map component instead of creating a new one: https://github.com/datacommonsorg/website/blob/master/static/js/place/map.tsx
move the component to the shared components folder
add the ability to put a marker on the map just with logic. Maybe in the props either take in a place dcid or a latlong dcid & depending on what props the component receives, draw the map accordingly

wonder what everyone else thinks?

I like the idea of extracting out and reusing the map component from the place pages! Let me make those changes.

sharing sgtm - don't forget that we should also expect multiple of these on a page (so don't use div id, use div class)

hi @juliawu - is this ready for review? it's still in draft but looks like you've already made a new component

hi @juliawu - is this ready for review? it's still in draft but looks like you've already made a new component

Yes. Was having issues restarting the server yesterday, and wanted to hold off until I could properly test all the changes. Ready for review now!

if this is ready for review, please reply to comments


Consider renaming Microsoft.AspNetCore.Mvc.Internal.MiddlewareFilter

When attempting to add MiddlewareFilter (you really want to add MiddlewareFilterAttribute) as a global filter, this pops up in the intellisense.  Maybe we can come up with a better name. Particularly crummy since the former matches the attribute on an action.

Or maybe make it internal for realsies?

Yeah let's just make it actually internal.


Added "You wouldnt steal a car" and "spaghetti factory"

PR Checklist

[x] My submission does not contain NSFW or other content that could be considered offensive
[x] The header file is compatible with Marlin 2.x
[ ] I have included an ASCII art view in the code OR I have attached an image of the result
[x] I agree that my contribution can be shared under the MIT license (see LICENSE.md)
[x] I agree to abide by the code of conduct (see CODE_OF_CONDUCT.md) when contributing to this repository

I love these :D


Update setup.py

updated classifiers

@anukaal Thank you for submitting your first PR to trapheus! quickly wanted to check, did you verify this by setting up trapheus using python 3.8/3.9?

@anukaal Thank you for submitting your first PR to trapheus! quickly wanted to check, did you verify this by setting up trapheus using python 3.8/3.9?

Yes Ig it will work for python 3.8 and 3.9


Revert "use builtin package context rather than vendored one"

Reverts docker/libnetwork#1841
This breaks the integration with Moby:
---> Making bundle: binary (in bundles/17.06.0-dev/binary)
Building: bundles/17.06.0-dev/binary-daemon/dockerd-17.06.0-dev
# github.com/docker/docker/daemon/cluster
daemon/cluster/cluster.go:238: cannot use c (type *Cluster) as type cluster.Provider in argument to c.config.Backend.DaemonJoinsCluster:
        *Cluster does not implement cluster.Provider (wrong type for WaitForDetachment method)
                have WaitForDetachment("github.com/docker/docker/vendor/golang.org/x/net/context".Context, string, string, string, string) error
                want WaitForDetachment("context".Context, string, string, string, string) error
make: *** [binary] Error 1

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "revert-1841-use-buildtin-package-context" git@github.com:docker/libnetwork.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@allencloud unfortunately, the change https://github.com/docker/libnetwork/pull/1841 is impacting the vendoring into moby. We have to revert it now.
Can you pls try to open PRs across moby and libnetwork with this change to make sure this doesnt happen again ?

LGTM

It is all right. @mavenugo
Actually I put forward an issue https://github.com/moby/moby/issues/34090 to start discussion for this. While I think we need to take more things into consideration and be more careful.


Getting an initial Empire agent without PowerShell.

Empire Version
2.3
OS Information (Linux flavor, Python version)
Target machines: Windows 8.1 with patches up to 2014 November / Windows 2016 server
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
Getting an Empire agent onto the target machine after removing PowerShell.
Screenshot of error, embedded text output, or Pastebin link to the error
Any additional information
I would like to test if I can get an initial agent without the target having PowerShell.
I tryed with this: https://gist.github.com/xorrior/0a667b68ecbb899b2436378263e572c0
XML to MSBuild
Inserting the encoded string of a working .ps1 agent into the .xml file and running it against MSBuild.exe.
This was on 2016 server with working PowerShell

Also tryed https://github.com/Cn33liz/StarFighters. Which didn't seem to connect back.
Maybe someone can suggest a much better way to do this. That would be great.
I would like to avoid dropping .exe's onto disk if possible. Since I don't have an agent in the machine I don't think I can do this with just other .ps1 modules. Cause I cannot execute them.
Ofcouse this could be done using MSF as the initial attack vector. But I would like to avoid that at first. I will use it if there is no Empire-only solution.

Got an agent using the following variant of xml with MSBuild.exe using a download cradle.
https://github.com/3gstudent/msbuild-inline-task/blob/master/executes PowerShellCommands.xml
But this was on 2016 server with a working PowerShell.

Got it working with the .xml and MSbuild.exe and download cradle.
After uninstalling powershell and blocking the rights to it.


Hi Errors when running init lua file several clone fails ???

Failed (12)
○ Comment.nvim
Cloning into '/home/dale/.local/share/nvim/lazy/Comment.nvim'...
fatal: unable to access 'https://github.com/numToStr/Comment.nvim.git/': Could not resolve host: github.com
○ fidget.nvim   nvim-lspconfig
Cloning into '/home/dale/.local/share/nvim/lazy/fidget.nvim'...
remote: Enumerating objects: 369, done.
remote: Counting objects: 100% (82/82), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 369 (delta 61), reused 53 (delta 49), pack-reused 287
Receiving objects: 100% (369/369), 49.66 KiB | 360.00 KiB/s, done.
Resolving deltas: 100% (103/103), done.
fatal: unable to access 'https://github.com/j-hui/fidget.nvim.git/': Could not resolve host: github.com
fatal: could not fetch d0bef139047d1e7091c19ac8af4898992690f318 from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
○ friendly-snippets   nvim-cmp
Cloning into '/home/dale/.local/share/nvim/lazy/friendly-snippets'...
remote: Enumerating objects: 1515, done.
remote: Counting objects: 100% (233/233), done.
remote: Compressing objects: 100% (69/69), done.
remote: Total 1515 (delta 189), reused 174 (delta 164), pack-reused 1282
Receiving objects: 100% (1515/1515), 311.58 KiB | 1.19 MiB/s, done.
Resolving deltas: 100% (803/803), done.
fatal: unable to access 'https://github.com/rafamadriz/friendly-snippets.git/': Could not resolve host: github.com
fatal: could not fetch d53a50278cd21020c7f175fd2c16e08205e13663 from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
○ gitsigns.nvim
Cloning into '/home/dale/.local/share/nvim/lazy/gitsigns.nvim'...
remote: Enumerating objects: 4104, done.
remote: Counting objects: 100% (349/349), done.
remote: Compressing objects: 100% (157/157), done.
remote: Total 4104 (delta 191), reused 279 (delta 171), pack-reused 3755
Receiving objects: 100% (4104/4104), 498.73 KiB | 2.13 MiB/s, done.
Resolving deltas: 100% (2032/2032), done.
fatal: unable to access 'https://github.com/lewis6991/gitsigns.nvim.git/': Could not resolve host: github.com
fatal: could not fetch 7235de1c6da47d1730f26807553fee4e4e327c92 from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
○ indent-blankline.nvim
Cloning into '/home/dale/.local/share/nvim/lazy/indent-blankline.nvim'...
fatal: unable to access 'https://github.com/lukas-reineke/indent-blankline.nvim.git/': Could not resolve host: github.com
○ lualine.nvim
Cloning into '/home/dale/.local/share/nvim/lazy/lualine.nvim'...
fatal: unable to access 'https://github.com/nvim-lualine/lualine.nvim.git/': Could not resolve host: github.com
○ mason-lspconfig.nvim   nvim-lspconfig
Cloning into '/home/dale/.local/share/nvim/lazy/mason-lspconfig.nvim'...
remote: Enumerating objects: 828, done.
remote: Counting objects: 100% (77/77), done.
remote: Compressing objects: 100% (46/46), done.
remote: Total 828 (delta 35), reused 48 (delta 17), pack-reused 751
Receiving objects: 100% (828/828), 133.30 KiB | 1.36 MiB/s, done.
Resolving deltas: 100% (326/326), done.
fatal: unable to access 'https://github.com/williamboman/mason-lspconfig.nvim.git/': Could not resolve host: github.com
fatal: could not fetch 7e9f6a7ddf8ce44a97c41f23c91b5102aee94a41 from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
○ nvim-cmp
Cloning into '/home/dale/.local/share/nvim/lazy/nvim-cmp'...
remote: Enumerating objects: 3352, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (74/74), done.
remote: Total 3352 (delta 76), reused 110 (delta 48), pack-reused 3195
Receiving objects: 100% (3352/3352), 395.32 KiB | 2.03 MiB/s, done.
Resolving deltas: 100% (1718/1718), done.
fatal: unable to access 'https://github.com/hrsh7th/nvim-cmp.git/': Could not resolve host: github.com
fatal: could not fetch 1d0c8d5d8ea93bbe2f0136cf78dbc869cbd0973b from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
○ nvim-treesitter-textobjects   nvim-treesitter
Cloning into '/home/dale/.local/share/nvim/lazy/nvim-treesitter-textobjects'...
remote: Enumerating objects: 1857, done.
remote: Counting objects: 100% (51/51), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 1857 (delta 21), reused 40 (delta 16), pack-reused 1806
Receiving objects: 100% (1857/1857), 236.82 KiB | 1.03 MiB/s, done.
Resolving deltas: 100% (845/845), done.
fatal: unable to access 'https://github.com/nvim-treesitter/nvim-treesitter-textobjects.git/': Could not resolve host: github.com
fatal: could not fetch bb6a1423efc0537578e723900dadb14b36e554c6 from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
○ onedark.nvim
Cloning into '/home/dale/.local/share/nvim/lazy/onedark.nvim'...
remote: Enumerating objects: 650, done.
remote: Counting objects: 100% (124/124), done.
remote: Compressing objects: 100% (70/70), done.
remote: Total 650 (delta 58), reused 100 (delta 48), pack-reused 526
Receiving objects: 100% (650/650), 127.70 KiB | 1.05 MiB/s, done.
Resolving deltas: 100% (162/162), done.
fatal: unable to access 'https://github.com/navarasu/onedark.nvim.git/': Could not resolve host: github.com
fatal: could not fetch 08471c380de5157ce837219db75b4c0b7d4bbed3 from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
○ telescope-fzf-native.nvim
Cloning into '/home/dale/.local/share/nvim/lazy/telescope-fzf-native.nvim'...
remote: Enumerating objects: 299, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 299 (delta 47), reused 41 (delta 35), pack-reused 236
Receiving objects: 100% (299/299), 69.76 KiB | 952.00 KiB/s, done.
Resolving deltas: 100% (72/72), done.
fatal: unable to access 'https://github.com/nvim-telescope/telescope-fzf-native.nvim.git/': Could not resolve host: github.com
fatal: could not fetch 32799e7d5735e571ede09a775329ff4ff3ccad8c from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
○ which-key.nvim
Cloning into '/home/dale/.local/share/nvim/lazy/which-key.nvim'...
fatal: unable to access 'https://github.com/folke/which-key.nvim.git/': Could not resolve host: github.com
Installed (12)
○ LuaSnip   nvim-cmp
● cmp-nvim-lsp 0.89ms   init.lua
○ cmp_luasnip   nvim-cmp
● mason.nvim 2.4ms   nvim-lspconfig
● neodev.nvim 0.04ms   nvim-lspconfig
● nvim-lspconfig 11.29ms  start
● nvim-treesitter 4.53ms ✔  build
● plenary.nvim 0.16ms   telescope.nvim
● telescope.nvim 0.69ms  start
● vim-fugitive 1.01ms  start
● vim-rhubarb 0.18ms  start
● vim-sleuth 0.48ms  start
Loaded (1)
● lazy.nvim 17352.99ms   init.lua

Also i get
Error detected while processing /home/dale/.config/nvim/init.lua
No specs found for module custom.plugins?

Hi.

kickstart.nvim requires a working internet connection to be able to install its plugins.

if nslookup github.com doesn't return something reasonable you're out of luck and need to fix your network.

You can't just copy the init.lua file despite what the video you may have seen on youtube says. Please fully follow the instructions in https://github.com/nvim-lua/kickstart.nvim#readme

Closing this for now. Let us know if you're having trouble once you've followed these instructions.


Right Click funciton for Links to Dataset Information Pages Loads Empty Page

When I "right" click on a dataset shortname and attempt to open the corresponding link to the dataset information page as a "new tab", it loads an empty page. It seems as though the way the URL is constructed after the "right" click is initiated is not correct. Here is an example for one particular dataset: https://mudrod-uat.jpl.nasa.gov/#!/datasetView/UCLA_DEALIASED_SASS_L3/ocean wind/Phrase/

For added clarification, this issue was identified on the mudrod-uat.jpl.nasa.gov interface. This issue is not present when using public-facing mudrod.jpl.nasa.gov interface.

This was fixed as part of PR https://github.com/mudrod/mudrod/pull/206
The fix is currently deployed to UAT.

Fix is deployed to mudrod.jpl.nasa.gov. @jplpodaac Please verify and close the issue if it is working.


requestMultiple does nothing when requesting for FINE_LOCATION and BACKGROUND_LOCATION

Bug report
Summary
requestMultiple is introduced to request multiple permissions at a time and it is working as expected except for location permissions. when I request for FINE_LOCATION and BACKGROUND_LOCATION.
Environment info
react: 16.13.1 => 16.13.1
react-native: 0.63.2 => 0.63.2
react-native-permissions => 3.0.3
Steps to reproduce
Please run the below snippet
        requestMultiple([PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION,
               PERMISSIONS.ANDROID.ACCESS_BACKGROUND_LOCATION]).then(
               (statuses) => {

              },
       );

Describe what you expected to happen:
I am expecting below screen to be rendered when request for both permission. (I a not sure if it is even possible).

Reproducible sample code
             requestMultiple([PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION,
               PERMISSIONS.ANDROID.ACCESS_BACKGROUND_LOCATION]).then(
               (statuses) => {

                },
            );

In this comment some one mentioned that it' working. I tried exactly what is mentioned there but not working for me.
And some user commented here that requestMultiple not working for them too.
Please correct me If am doing any mistake in usage of requestMultiple . Thank you.

I tried the reproducible sample code and it worked on my device. Do you target at least API Level 29 ?

@zoontek
Please excuse for the lengthy comment. I am struggling a lot with these permissions since I am new to RN and don't have any expose to native code.
Surprisingly requestMultiple is working But not as I explained in the question. And I found a strange thing
If I target api level 29, following windows is opening

IF I choose any option other than deny, then following window is opening

If I target api level 30 user is taken to setting page as shown in below image

I found two things here,

when background location is requested, api 29 is displaying in app dialogue window, but api 30 is taking to settings page
The following window where location permission(either "Allow only while using app" or "Allow all the time") can be granted in a single window is never opened either in api 29 or api 30.

Now, I keep my requirement  in simple words. I am targeting api 30( as per android guidelines all new apps must target api 30)
My first priority is, I want following window to be  opened when I request for  FINE_LOCATION and BACKGROUND_LOCATION.

so that user can choose what they want in a single window.
My second priority is,  at least following window to be opened(Which is already opening in api 29 but not in api 30)

But I don't want user to be taken to settings page at all.
Please let me know if any one of above two scenarios is possible.

That's an android issue, not related to the lib which is just a 1:1 mapping over the API.

@zoontek in that case,  in your mobile also user is taken to settings page when request for BACKGROUND_LOCATION in android 11?

I didn't tried it because I have no legit use case for background location, but there is no specific code for this permission.

@zoontek
I checked with some other app with api 29 and api 30. same thing is happening as I explained. Seems like they have changed the in api 30. Hence, Closing this issue . And thank you so much for your cooperation.

@Yandamuri you will want to become very familiar with the Android changes pages, this is the background education: https://developer.android.com/about/versions/11/privacy/location
(they release a document set like this for every version, they're actually pretty good reads, and serve as reasonable introductions to native on Android. Apple releases nothing like this unfortunately)

@mikehardy Great Mikehardy. Thank you so much for that.


The "active" initialization option is ignored when rendering in mobile breakpoint

The json object passed to the responsiveTabs method, used to initialize and render the responsive tab control, contains an "active" option.  This option will open the active tab upon successful initialization in the desktop breakpoint of this control, but not for the mobile (tablet and phone) breakpoint;
@media only screen and (max-width: 768px) { ... }.
So, in short, active works for desktop but not for mobile.

Hi,
I know this is an old issue, but I'm in the case where I want to use the load function with the option startCollapsed set to 'accordion' and it's not working when in accordion mode.
Here's a demo


Cannot infer the return type of a generic function in a conditional type

🔎 Search Terms
Conditional type inference, generic return type, type-level lambda, higher-kinded types, mapped types
🕗 Version & Regression Information
Present in TS 3.5.1 to 5.5.0-beta.
⚪ Introduction
I need to write a piece of code that would transverse a deeply nested data structure and fetch required data. However, I would prefer to do it in a way that doesn't force me to couple it too strongly to the data structure's specific type. This would be easiest to achieve with a generic replacer. Trying to implement it, I came across a very unintuitive behavior: given a generic function and its type parameter, it is impossible to correctly infer its return type.
💻 Code
type Foo = (<T>(input: T) => T[]) extends ((a: string) => infer R) ? R : never;
// unknown[]

⏯ Playground Link
🙁 Actual behavior
Does not infer the type argument, replaces it with unknown.
🙂 Expected behavior
Should use the inferred type argument to correctly infer the return type: string[].
Additional information about the issue
It seems to me that adding inference here would be possible – after all if I actually call the function, the type argument does get infered, and so does the return type. The doors this would open are countless, as infering the return type of a generic function is essentially higher-kinded types in a trench coat.
Were this implemented, we could do things like these:
type GenericReturnType<F extends (arg: any) => any, P> = F extends (arg: P) => infer R ? R : never;

type Box<T> = { value: T };
type Mapped<T, F extends (arg: any) => any> = { [P in keyof T]: GenericReturnType<F, T[P]> };

type Boxified<T> = Mapped<T, <V>(v: V) => Box<V>>;

(Compare #27130)
Possibly Related Issues
#57351, #33594

It seems to me that adding inference here would be possible – after all if I actually call the function, the type argument does get infered, and so does the return type.

That sentence makes this a duplicate of https://github.com/microsoft/TypeScript/issues/40179.

higher-kinded types in a trench coat

That one got a chuckle out of me. 😄


ClientRequest always specifies port 80 by default even if schema is HTTPS

@dfirsht Please validate

@dfirsht Please validate again.

Great! Thanks.


VDB: detected possibly incorrect RDEPEND: dev-libs/boost:= <

Wasn't boost one of those packages that needed to be in RDEPEND even though it doesn't directly link to anything? Maybe boost should be excluded from the checks?
Note to self: this happened with media-gfx/librecad-2.2.0.

This is tricky. There's two issues:

It depends on which Boost modules are being used. They might be header only at the moment and the risk of DEPEND only is that it becomes stale and in a subsequent release of the software (not boost), someone doesn't notice they now use more. Bit like Qt in that Boost is often a bit of a way of life.
If we're using a header-only library, there's no need in terms of runtime stability to recompile, but there is a need to recompile to get bug fixes.

@soapgentoo

Either way, excluding from checks sound a bit dodgy -- it could also be genuinely not used. Regardless of how prefer this is handled, information that it's not using the shared libraries is still useful, and as usual the suggestions to remove deps should always go through maintainer judgement.


[Wav2Vec2] Wav2Vec2Conformer Fine-Tuned seems to give Gibberish on Librispeech example

🐛 Bug
Wav2Vec2's newly released fine-tuned conformer checkpoints (see here) don't produce reasonable results on an example of Librispeech.
I'm not sure if the model requires a different
To Reproduce

Download 960h fine-tuned checkpoint:
wget https://dl.fbaipublicfiles.com/fairseq/conformer/wav2vec2/librilight/LL_relpos_PT_960h_FT.pt

Download Librispeech Dict:
wget https://dl.fbaipublicfiles.com/fairseq/wav2vec/dict.ltr.txt

Load a sample of the Librispeech clean dataset for inference.
You can load a dummy sample via the Hugging Face Hub

pip install datasets
from datasets import load_dataset
libri_dummy = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")

# check out the dataset
print(libri_dummy)

Run a forward pass

import torch
import fairseq

input_sample = torch.tensor(libri_dummy[0]["audio"]["array"])[None, :]

# normalize
input_sample = torch.nn.functional.layer_norm(input_sample, input_sample.shape)

model, cfg, task = fairseq.checkpoint_utils.load_model_ensemble_and_task(['LL_relpos_PT_960h_FT.pt'], arg_overrides={"data": "/path/to/folder/of/dict"})
model = model[0]
model.eval()

logits = model(source=input_sample, padding_mask=None)["encoder_out"]

Decode the prediction

The output is a tensor of shape [seq_len, 1, vocab_size]. We are interested in the most likely token for each time step. So we can take the argmax:
predicted_ids = torch.argmax(logits[:, 0], dim=-1)

Now we'll create our own decoder based on the dict we downloaded previously to decode the result (it's just the decoder put into json format)

json_dict = {"<s>": 0, "<pad>": 1, "</s>": 2, "<unk>": 3, "|": 4, "E": 5, "T": 6, "A": 7, "O": 8, "N": 9, "I": 10, "H": 11, "S": 12, "R": 13, "D": 14, "L": 15, "U": 16, "M": 17, "W": 18, "C": 19, "F": 20, "G": 21, "Y": 22, "P": 23, "B": 24, "V": 25, "K": 26, "'": 27, "X": 28, "J": 29, "Q": 30, "Z": 31}

and create a decoder
import numpy as np
from itertools import groupby

class Decoder:
    def __init__(self, json_dict):
        self.dict = json_dict
        self.look_up = np.asarray(list(self.dict.keys()))

    def decode(self, ids):
        converted_tokens = self.look_up[ids]
        fused_tokens = [tok[0] for tok in groupby(converted_tokens)]
        output = ' '.join(''.join(''.join(fused_tokens).split("<s>")).split("|"))
        return output

Now we can decode the output and compare it to the correct output:
decoder = Decoder(json_dict=json_dict)
print("Prediction: ", decoder.decode(predicted_ids))

As we can see the prediction is wrong:
Prediction:  AY N N N VN V'V'V'IRSIMG KMNJB TPEPEMEDYR RGQTQ'OB 'HNJ<unk>TQURIEMJ' 'B'F' TM'VS'NEMDJH DSB'CNSTITE  RYKYRSITPSV'DYNY' M'SOEPUGSYDYH'BYTITIPKV UFMQ'W'YJRDH' MVY'SGM'GNE F'YZH'U IFB'N' ' A V YA IN

The correct transcription is:
print(libri_dummy[0]["text"]

'MISTER QUILTER IS THE APOSTLE OF THE MIDDLE CLASSES AND WE ARE GLAD TO WELCOME HIS GOSPEL'

Also from looking at the predicted ids of the model (the argmax logits):
tensor([ 7, 22,  4,  4,  9,  4,  4,  9,  9,  9,  4,  4,  9,  4,  4,  4, 25,  9,
         4,  4,  4,  4,  4, 25, 27, 25, 25, 25, 27, 25, 27, 10, 13,  0, 12, 10,
        17, 21, 21, 21,  0,  4, 26, 17, 17, 17,  9,  9,  9,  9, 29,  0, 24,  4,
         6, 23,  5, 23,  5, 17, 17,  5,  5,  5, 14, 22, 22, 13, 13,  4,  4, 13,
        21, 21, 21, 21, 30,  6, 30, 27,  8, 24,  0,  4, 27, 11,  9, 29, 29,  3,
         6, 30, 16, 13, 10, 10,  5, 17, 29, 29, 29, 27,  4,  4, 27, 24, 24, 27,
        20, 27, 27, 27,  4,  4,  6,  0, 17, 27, 25, 12, 12, 27,  9,  5, 17, 14,
        29, 11,  4, 14, 12, 12, 24, 27, 19, 19,  9, 12,  6, 10, 10, 10,  6,  6,
         5,  4,  4,  0,  4, 13, 22, 22, 22, 22, 26, 22, 13, 13, 12, 10,  0,  6,
        23, 12,  0, 25, 27, 14, 22,  9, 22, 27, 27,  4, 17, 27, 12,  8,  8,  5,
         5, 23, 16, 21, 12, 22, 14, 22, 11, 27, 24, 22,  6, 10,  6, 10, 10, 10,
        23, 26, 25, 25, 25,  0,  4, 16, 20, 17, 30, 27, 27, 18, 27, 22, 29, 13,
        14, 11, 11,  0, 27,  4,  4, 17, 17, 25, 22, 22, 27, 12, 21, 17, 27, 27,
        27, 21,  9,  5,  5,  5,  4,  0,  0, 20, 27, 22, 22, 31, 11, 11, 11, 27,
        16, 16,  4, 10,  0,  0,  0, 20, 24, 27, 27, 27, 27, 27, 27, 27, 27, 27,
        27,  9,  9,  9, 27,  4,  4,  4, 27,  4,  4,  4,  7,  4, 25,  4, 22,  7,
         4,  4, 10,  9])

It does seems like there is something wrong with the model and not just the dictionary. There is no overwhelmingly present id which could represent silence.
Expected behavior
The model should work correctly here.
Environment

fairseq Version (e.g., 1.0 or main): main
PyTorch Version (e.g., 1.0): '1.10.2+cu102
OS (e.g., Linux): Linux
How you installed fairseq (pip, source): pip (as shown in Readme)
Build command you used (if compiling from source):
Python version: 3.9.7.

Additional context

Gently pinging @sravyapopuri388 and @alexeib

Thanks for the ping @patrickvonplaten. I will look into this and get back to you.

Hey @sravyapopuri388, any updates on this by any chance? :-)

Hi, I tried decoding the model using the command in the wiki and the results are good. Could you please recheck your setup. Thanks!
$subset=dev_other
python examples/speech_recognition/infer.py /checkpoint/abaevski/data/speech/libri/10h/wav2vec/raw --task audio_finetuning \
--nbest 1 --path /path/to/model --gen-subset $subset --results-path /path/to/save/results/for/sclite --w2l-decoder kenlm \
--lm-model /path/to/kenlm.bin --lm-weight 2 --word-score -1 --sil-weight 0 --criterion ctc --labels ltr --max-tokens 4000000 \
--post-process letter

Hey @sravyapopuri388,
Sorry I don't have access to /checkpoint/abaevski/data/speech/libri/10h/wav2vec/raw or dev_other or kenlm.bin so it's not possible for me to run this command.
If possible, it would be great if you could post a command that shows how the model gives good results on a single audio file without a language model - this would be super helpful for the community to use these models.
Could you maybe check the above commands to see if CTC without a language model works correctly?

Do you know which dictionary was used for the model?

Hi @patrickvonplaten, updated the above command to not use language model and still works correctly. I used the dictionary open sourced in the wav2vec README here
To run with a single audio file, you can format it in the wav2vec  data format and run the above command.

Hi @patrickvonplaten, updated the above command to not use language model and still works correctly. I used the dictionary open sourced in the wav2vec README here
To run with a single audio file, you can format it in the wav2vec data format and run the above command.

Hey @sravyapopuri388, thanks for the pointers - I used the wrong dictionaries :sweat_smile: . Decoding now works as expected!

The very first command actually worked correctly @rahulshivajipawar
There is also a HF implementation now: https://github.com/huggingface/transformers/pull/16812

@patrickvonplaten Hello
Is their any pretraining and finetuning notebook for Wav2Vec-Conformer using transformers


Update README.md

Corrected some grammatical errors, replaced lower-case letters in wrong places with upper-case letters.
I appreciate your hard work in making this repository.

Thank you so much! @parikshit223933

Welcome sir. I appreciate the hard work you have put into this.(c++
implementation of decision tree algorithm)
On Fri, 6 Mar, 2020, 9:19 PM bowbowbow<EMAIL_ADDRESS>wrote:

Thank you so much! @parikshit223933 https://github.com/parikshit223933
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bowbowbow/DecisionTree/pull/5?email_source=notifications&email_token=ALKFLVRSPDIOJCZEARAE7CLRGELP3A5CNFSM4LDAG7BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOB2E5Y#issuecomment-595829367,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALKFLVUT2MNEZ3GSHUJ7W4DRGELP3ANCNFSM4LDAG7BA
.


Data Model Redesign for RiskScore Tiles

Designed like the following, the method will be extensible for new risk scores and will automatically parse observation and condition resources, and extra patient resource information (age, gender).

Will be converted to actual readable english at some point.


Feat/configurable channel capacity

fixes https://github.com/get10101/meta/issues/166
I tried to keep the changeset somewhat contained.
I will see to add some e2e tests in follow up that cover the edge cases.

Notes concerning the changes in the app:

we could extract the ChannelInfoService into a separate ChangeNotifier

This can enable more testing; at the moment the send and the create-invoice screen can hardly be tested because the ChannelInfoService is not injected, so we cannot use a mock there.

Se could add events for ChannelInfo updates from backend to frontend

In the current solution I think it can happen that the user triggers a new channel open, then switches to the trade screen but the initialization of the trade screen might not yet receive the ChannelInfo. Such a scenario could result in wrongly calculated  trade values. I don't think this scenario is likely to happen because the user usually waits until the balance is updated and then the ChannelInfo will be available.
Enables us to use the inbound/outbound liquidity instead of doing calculations with the balance; not sure if this is actually a favourable change because the UX might change slightly (the balance might then not be directly aligned with the capacity)

Converting to draft because when testing with the local setup I ran into some problems with:

the UI throwing an exception that ChannelInfo is not initialized
I am unable to open jit channel (not sure if that is related to the change, still investigating)

Converting to draft because when testing with the local setup I ran into some problems with:
* the UI throwing an exception that `ChannelInfo` is not initialized

I did not encounter this problem again after cleaning up a late initialization that was unnecessary in dart.

* I am unable to open jit channel (not sure if that is related to the change, still investigating)

It was unrelated to the changes, the channel was a zombie after funding. Seems this happens on my machine as well sometimes. I overcame it by opening another channel through the faucet interface and could confirm that it worked - @bonomat was my witness.
I have not retested after the last commits were added, but there no changes in the logic, only alignment and refactoring so reopening with the expectation that it still works. Will re-test tomorrow :)

bors r+


Wrong PHP Version Nr

Please update the "PHP_VERSION" to "{PHP_73_LATEST}" or it will not work.  See pull requests.

Thank you for reporting this.  The version has been updated.


Manage zsh and the plugins with home-manager

Resolves #199
Closes #203
Closes #190

Drop sheldon, it requires a bit complex installation conditions in macos for now
It does not make faster, but keep the speed
Includes some refactoring with other shells
Reduce zsh codes, and prefer nix configs
I learned lot, but I still don't know how to realize privates in https://github.com/kachick/dotfiles/issues/169 with home-manager

Much helped me! 😂


Add overview page about TerraModel to docs

This is a stab at an overview page for TerraModel which introduces some of the
conventions and lists some of the functionality.  If there are other things which
should go in, it would be useful to know.
Along the way, it struck me that it would be easiest to explain the different
coordinate systems, so I have made a page for that.
I don't know if SVG images can be included, but I have tried that.

Add an overview page for TerraModels which refers to the
autogenerated docstrings.

Add a page about the reference frames used within terratools
with an SVG figure.

JOSS: Fix typo in paper manuscript

Docs: Add TerraModel overview and reference frame page

Fix reference to MIT licence and copyright dates

Do we get previews of updated documentation on read the docs? If not, can we turn this on (apparently there is a 'build pull requests for this project' as an advanced setting on readthedocs)?
I see readthedocs is currently failing its build - since https://github.com/mantle-convection-constrained/terratools/commit/fb8487aa531e67933dc9179b2bfe600ccaef71fa - not sure what's going on.

It would be nice to have PR docs builds.  @bobmyhill are you able to help here?  You nicely set all the doc building up for us.

see readthedocs is currently failing its build - since fb8487a - not sure what's going on.

Hm, that's surprising.  Docs building should pass for CI as a whole to pass.

Docs build failure log here.
It looks a bit like an API change has bitten us upon an upgrade or something.
(Note: to see docs builds, go to the docs page on readthedocs, click on the 'v:latest' button at the bottom right, then 'Builds' in an option to click.)

Moved issue around docs build failure to #120.

Docs building on PR moved to #121

@andreww the build for this PR is at https://terratools--112.org.readthedocs.build/en/112/.


Error when running in parallel

Simple question I hope. Is there a way to pick up where something left off if stuff fails? For instance, I was running a subject in parallel with a lot of other people (that maxed out our 80 core system and I'm hoping that that's the issue) and I got an error of std::bad_alloc on this step:
mrcalc 1 dwi_meanbzero.mif -div dwi_mask.mif -mult - | mrhistmatch nonlinear - T1_biascorr_brain.mif dwi_pseudoT1.mif -mask_input dwi_mask.mif -mask_target T1_mask.mif

I kept all of the intermediate files (verbosity 3 + debug). Is there a way to pick this person up using the temp folders so that I don't need to run topup/eddy again?

In MRtrix3, yes; in the container environment, not easily.
(I suspect) Unlike other BIDS Apps, I've explicitly designed this one to be able to be used either in a container environment, or as a stand-alone MRtrix3 external project. The script interface changes a bit depending on the environment in which it is run. In particular, when running in a container I remove a lot of the standard MRtrix3 command-line options that are not so relevant, in order to make the interface as simple as possible and consistent with other BIDS Apps; conversely, when run outside of a container, the script interface is identical to other MRtrix3 commands.
It's not very well documented, but all MRtrix3 Python scripts have a command-line option "-continue" (see e.g. for dwipreproc), which is intended for precisely this kind of situation: essentially resuming the operation of a script from some point of failure. You provide the location of the script scratch directory, and the name of the last file that was successfully generated, and it simply skips all processing steps up to and including that point. It's clumsy, and I'd prefer something better, but it's been useful enough for me to have put the effort into supporting it.
This is however one of the command-line options that I explicitly remove when the script runs in a container environment, on the prediction that it would be more likely to cause confusion than it would be to actually be useful to anyone operating in the container environment. Maybe that prediction is off, but that was the logic at the time.
So if you can run the script as a standalone MRtrix3 executable (some advice here), you should be able to exploit the -continue option. In the container environment you could only do it if you modified the code to prevent deletion of the command-line option that you need (code here).

Alright... I keep playing with it.
As a follow up since at the moment I'll need to rerun the participants that are stalled out, is the script running recon-all twice? See lines 550 and 551.
Thanks for the greater support as always @Lestropie

is the script running recon-all twice? See lines 550 and 551.

run.command('recon-all -sd ' + app.tempDir + ' -subjid freesurfer -i T1_registered.nii')
run.command('recon-all -sd ' + app.tempDir + ' -subjid freesurfer -all' + reconall_multithread_options)

Nope, that's standard recon-all usage: the first generates a new subject and imports the T1 image, the second runs all reconstruction steps. Don't know why they chose to have a single command do both :man_shrugging:

Closing since a std::bad_alloc could occur for any of a number of reasons; but re-raise or open a new issue if a similar problem is  encountered in 0.5.0.


[Chore]: Consolidate README for cf-k8s-controllers and cf-k8s-api to top level

Background
The cf-k8s-api repo has been merged into cf-k8s-controllers. There are two separate README files that should be top level in a single document.
Action to take
Merge the two READMEs into a single top level README
Impact
This is a high visibility item for anyone visiting the repository.
Dev Notes
No response

Hey @Birdrock, it looks like the README files has already been merged. Are there more improvements that you have in mind or should we close this chore?

Closing this as stale. Please reopen if there is more stuff to be done here.


new: initial owners files for Falco

Signed-off-by: Lorenzo Fontana<EMAIL_ADDRESS>What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flaky-test

If contributing rules or changes to rules, please make sure to uncomment the appropriate kind

/kind rule/update
/kind rule/create

Any specific area of the project related to this PR?

/area engine
/area rules
/area deployment
/area integrations
/area examples

What this PR does / why we need it:
Initial owners file.
Will make it better on the go but for now it allows us to review PRs.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

[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 approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  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:

OWNERS

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

Forced merge since prow was ineffective without owners file.


The use of get_graph_feature_cross in vn_pointnet.py

Hi
Could you please explain the purpose of get_graph_feature_cross in l.76 of vn_pointnet.py?
It doesn't seem that this function has any equivalent in the original implementation of pointnet.
Thanks!

Hi,
Thanks for the question. This is discussed at the end of Section 4 in the paper. If you apply per-point transformations to the 13 coordinates directly, the resulting per-point C3 feature will have all its vector channels linearly dependent (analogous to applying a per-pixel 1x1 convolution to a gray-scale image). Thus we add an edge convolution at the input layer to tackle this issue. The additional "cross product" to the original get_graph_feature in DGCNN is to make the input 33 instead of 23, so that vectors in the output C*3 feature won't be restricted to a 2D plane.
Congyue


Hello! I have some ploblems

Can I run this program on pycharm for windows?

Closing this issue due to inactivity. Please, feel free to open it again for further necessities.


darknet[full]:x64-windows build failed with BUILD_FAILED

Can you please re-open this.
Originally posted by @datorfix in https://github.com/microsoft/vcpkg/issues/13806#issuecomment-700500320

Reopened.


resources.Concat does not concat Javascript correctly

Concatting two (or more) Javascript files can produce invalid output if one of the files ends with a comment line, eg., a sourcemap line:
File A
var foo ='bar';
//# sourceMappingURL=file-a.js.map

File B
(function () {
console.log('Hello');
})();

Result of resources.Concat
var foo ='bar';
//# sourceMappingURL=file-a.js.map(function () {
console.log('Hello');
})();

… which changes the semantics (and, in this case, produces a syntax error).

Pretty sure this was fixed in 35abce27cabee43cc751db55a75b927f26275833 ?

That’s good to hear. I used the latest release available (v0.55.6/extended via homebrew) and 35abce2 isn’t part of that, yet.

@bep When do you plan to release a version that includes this fix? Is there anything I can do to help?


Failed to login using proxy

Pixiv is blocked by my ISP so I am using socks5 proxy to access it.
Was working fine all the time but in the latest releases something was broken.  v20221029 still working, after that - login failed due to 403 access forbidden.

pixivutil.log

Try https://github.com/Nandaka/PixivUtil2/issues/1239


simple ticks generating from linear scale does not include domain

I have a linear scale with domain:
const linearScale = d3.scaleLinear().domain([-500000000,<PHONE_NUMBER>]);
The ticks generator does not include the domain for a number of ticks between 8 and 17 inclusive:
linearScale.ticks(8) produces  [-400000000, -200000000, 0, 200000000, 400000000, 600000000, 800000000,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>]
and linearScale.ticks(7) produces the correct  [-500000000, 0, 500000000,<PHONE_NUMBER>,<PHONE_NUMBER>,<PHONE_NUMBER>].
This is somewhat unfortunate because now I have to loop over a range of desired number of ticks, till I can find an output where the domain is included.
d3-scale version 3.2.3
d3-array version 2.12.0
d3 version 6.6.0

You need to use scale.nice if you want the ticks to start and stop at the domain’s extent.


Refine features

This PR refines the static features with the following changes:

Remove CAT_Physio_Area: this represents the area not covered by a physiographic province.

Remove RUN7100: this attributes seems to be computed for a coarser model resolution (figure)

Drop attributes with no spatial variation in value (e.g., all = 0)

Fills in CAT Basin Areas that are 0 with PRMS areas (5 total segments)

Fills in recharge NAs from the average of immediately neighboring reaches.

Fills in an extreme outlier water table depth from the average of immediately neighboring reaches

Calculates stream density (stream length / area) for 5 NA segments from the NHD data in each PRMS catchment

Computes TOT variables from CAT variables for 4 attributes: consecutive wet days, average annual temperature, average minimum temperature, and stream density. For now, I saving these as separate attributes with fromCAT added to the variable name. I think it's safe to overwrite the original values with these values computed from CAT. Example: minimum temperature as reported

minimum temperature computed from CAT

Updated visualizations are provided for these refined attributes in target p3_nhdv2_attr_refined_png.
Remaining to do:

[x] after review, remove original TOT columns that were re-computed from CAT variables

Nice to have:

[ ] Related to #126: Correctly compute TOT variables from CAT variables for PRMS segments with _1 and _2. Currently, only _2 is computed correctly. I'm thinking this is a "nice to have" because TOT values for _2 vs. _1 should be similar. I would appreciate suggestions for how to handle this. I'll add a comment where this special handling is needed.
[x] Could add analysis of correlation for CAT and TOT separately, then all together to see if there are any near perfect relations. Are any TOT and CAT variables the same for any attributes?

Closes #96

I looked into computing TOT from CAT variables for segments with _1 and _2. I started by looking at the areas and was surprised that the TOT area is so much larger for _2 compared to _1 segments.
> p2_nhdv2_attr_refined$TOT_BASIN_AREA[p2_nhdv2_attr_refined$PRMS_segid == '3_1']
[1] 198.3
> p2_nhdv2_attr_refined$TOT_BASIN_AREA[p2_nhdv2_attr_refined$PRMS_segid == '3_2']
[1] 434.89
> p2_nhdv2_attr_refined$TOT_BASIN_AREA[p2_nhdv2_attr_refined$PRMS_segid == '8_1']
[1] 88.1
> p2_nhdv2_attr_refined$TOT_BASIN_AREA[p2_nhdv2_attr_refined$PRMS_segid == '8_2']
[1] 213.31
> p2_nhdv2_attr_refined$TOT_BASIN_AREA[p2_nhdv2_attr_refined$PRMS_segid == '51_1']
[1] 728.2
> p2_nhdv2_attr_refined$TOT_BASIN_AREA[p2_nhdv2_attr_refined$PRMS_segid == '51_2']
[1] 11760.08

And catchment areas are all small. I'd expect the TOT area for the _2 to be the TOT area for _1 + CAT area for _2 + a small error. Should we correct these TOT areas by computed them from the CAT areas?
> p2_nhdv2_attr_refined$CAT_BASIN_AREA_sum[p2_nhdv2_attr_refined$PRMS_segid == '3_2']
[1] 23.28
> p2_nhdv2_attr_refined$CAT_BASIN_AREA_sum[p2_nhdv2_attr_refined$PRMS_segid == '8_2']
[1] 2.92
> p2_nhdv2_attr_refined$CAT_BASIN_AREA_sum[p2_nhdv2_attr_refined$PRMS_segid == '51_2']
[1] 0.58

started by looking at the areas and was surprised that the TOT area is so much larger for _2 compared to _1 segments.

Does _2 include _1

Thanks @msleckman  and @lekoenig! I think I've addressed all of your comments. I'm going to wait to merge this until after #126 is addressed because it may require adding some special case handling in the functions I wrote in this PR (looping over columns when computing TOT from CAT variables, refining from neighbors)


LockScreen class missing in library

Hi
It seems the Windows.System.UserProfile projection is missing two classes - LockScreen and UserInformation. Is this intentional or accidental? And if intentional, is there any plan to include this in the future?

Could you be more specific? Which language projection are you referring to? It appears to be present in the C++ projection.

Sorry should have been more specific. Referring to the Python projection
Thank you
Siddharth Kumar Singh

From: Ryan Shepherd<EMAIL_ADDRESS>Sent: Tuesday, June 30, 2020 11:11:19 PM
To: microsoft/xlang<EMAIL_ADDRESS>Cc: Siddharth Kumar Singh<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [microsoft/xlang] LockScreen class missing in library (#658)
Could you be more specific? Which language projection are you referring to? It appears to be present in the C++ projection.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/xlang/issues/658#issuecomment-651942763, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFU3P7MP2KAAS7T2X734ALRZIPT7ANCNFSM4OD676MQ.

Please see this repo for Python support: https://github.com/pywinrt/pywinrt


Proposal: a sane, simple, Goish way to handle uncaught panics

Proposal: a sane, simple, Goish way to handle uncaught panics
I'd like to discuss a mechanism for catching/handling/logging panics before they cause the entire Go program to exit, similar to Java's setDefaultUncaughtExceptionHandler, but Goish.
The problem
You've carefully wrapped your calls to that third-party library with a defer/recover, but then that code executes go func() { x := 0; fmt.Println(3/x) }(), and your entire process exits before you can notice, log a stack trace, recover, etc.
Basic mechanism:
Add runtime.SetUncaughtPanicDeferred(func()), which accepts and sets a (global) no-arg function.
When a panic occurs, all deferred functions are popped and executed. If all deferred functions run without recovering, _and the entire process is about to exit, and the global handler function is not nil, execute it as it it were a normal deferred function.
As a normal deferred function, the handler may call recover, may exit without error, or may re-panic.
What this is not:

Atexit: "not lgtm. Atexit is a way to make your program wedge instead of exiting. It's too easy to misuse, even limited to package testing." -- rsc

OnPanic: "This cannot go into the runtime. It is a disastrous idea." -- Rob Pike

Trying to run code while crashing, or running code in a weird, unusual way. The pseudo-deferred is run in precisely the same manner that an actual deferred function would have run, had there been one.

a way to try to catch things that normal defer/recover pairs would not catch

Alternative solutions/proposals:

panicwrap: fork, and have the parent parse stderr of the child to watch for panics

https://groups.google.com/forum/#!topic/golang-nuts/xahrOSZYpf4 - have panic/recover work on goroutine subtrees

writing a wrapper function, and using it every time you would have used the go keyword:
func Go(f func()) {
    go func() {
        defer func() {
            if p := recover(); p != nil {
                logging.Errorf("Uncaught panic from Goroutine: %v", p)
                panic(p)
            }
        }()
        f()
    }()
}

Implementation concerns

gccgo has its own implementation of panic and recover, so this would require changes there too.
currently, deferred functions are followed by a small piece of code that handles what happens if they return - a similar piece of code would need to be generated for the pseudo-deferred function

Questions
The biggest question: is this useful/necessary?  I chatted with a couple of Go team members, and they didn't immediately hate the idea…
In my particular case, I'm working with a deployment system that reliably logs to persistent storage (via Kafka) when using explicit calls to logging functions, but loses panics dumped to stderr -- a bad "12-factor" violation that we plan to fix when we can.
But, it does seem like it comes up often (I quoted only some of the past discussions), and has spawned some … interesting … workarounds.

If the registered global deferred func recovers, where should the program
go after executing the func?
Also, some runtime throws are not recoverable, so even if we have this
mechanism, some panics will still bring down the whole process without
running the registered funcs (e.g.b when out of memory, it's unsafe to run
arbitrary code).
I think the correct solution is to use process level monitors.
BTW, I believe this has been proposed before and rejected, probably more
than once.

If a third party library panics in an unexpected place, its internal data structures might be inconsistent. Continuing is worse than crashing.
For your needs, I wonder whether something much more specific would suffice--some way to set what fd uncaught panics/throws log to. Although I'd be surprised if there weren't existing tools to help 12 factor apps send stdout/stderr to more appropriate places.

Not lgtm I'm afraid. I'm a firm advocate of crash only software.
On Wed, 13 Jul 2016, 08:41 Josh Bleecher Snyder<EMAIL_ADDRESS>wrote:

If a third party library panics in an unexpected place, its internal data
structures might be inconsistent. Continuing is worse than crashing.
For your needs, I wonder whether something much more specific would
suffice--some way to set what fd uncaught panics/throws log to. Although
I'd be surprised if there weren't existing tools to help 12 factor apps
send stdout/stderr to more appropriate places.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/16340#issuecomment-232376520, or mute
the thread
https://github.com/notifications/unsubscribe/AAAcA-IdnfZNCiZXoGeZBQ_dHoUt6GM-ks5qVPj7gaJpZM4JLBzn
.

This proposal was trying to allay crash-only concerns by doing no more than
a defer/recover could have done had you added one. However, the concern of
leaving third party libraries in an inconsistent state of you're foolish
enough to recover and do anything other than log and re-panic is a killer.
:-(
Perhaps the idea of being able to catch the final stack trace output would
still work...
On Thu, Jul 14, 2016, 4:23 PM Dave Cheney<EMAIL_ADDRESS>wrote:

Not lgtm I'm afraid. I'm a firm advocate of crash only software.
On Wed, 13 Jul 2016, 08:41 Josh Bleecher Snyder<EMAIL_ADDRESS>wrote:

If a third party library panics in an unexpected place, its internal data
structures might be inconsistent. Continuing is worse than crashing.
For your needs, I wonder whether something much more specific would
suffice--some way to set what fd uncaught panics/throws log to. Although
I'd be surprised if there weren't existing tools to help 12 factor apps
send stdout/stderr to more appropriate places.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/16340#issuecomment-232376520, or
mute
the thread
<
https://github.com/notifications/unsubscribe/AAAcA-IdnfZNCiZXoGeZBQ_dHoUt6GM-ks5qVPj7gaJpZM4JLBzn
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/16340#issuecomment-232781054, or mute
the thread
https://github.com/notifications/unsubscribe/AACDWWIOahF2u47V0pbnGEtJ0Pb34clgks5qVpregaJpZM4JLBzn
.

Even catching the final panic might not work reliably because the panic
could be due to out-of-memory and the runtime could be in a really bad
state.
Why not just use a process monitor?

@minux I agree the answer in my particular case is to fix the deploy environment. However, this has come up enough times that I thought my solution would be generally useful.
But I think the third-party library concern kills this. I'm going to close this proposal, so it doesn't clutter things up.


[OTBN] Write MULQACC routine for 384 bit multiplications

We do have an example for 128x128 multiplications, do the same for a 384 bit multiplication.

estimate 1

384x384 and 256x256 snippets are available in this PR: https://github.com/lowRISC/opentitan/pull/3268


Latest npm version does not include recorder's pause function

See title
Could you please release the last commits to master so i can get them with npm

Just use
npm insall https://github.com/futurice/react-native-audio-toolkit
in the meantime


Fix revision parameter to vllm get_tokenizer

This makes the code compatible with recent versions of vllm since this PR merged April 25: https://github.com/vllm-project/vllm/pull/4107  (currently the tokenizer_revision setting will just be ignored)

 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.

Thankyou!


Improve support for custom dev environments

Issue #348

@victor-prodan just checking in :) I assume you're busy on #340 - just wanted to make sure you weren't waiting on anything from me.
@Kuqd Did you get a chance to have a look - wanted to make sure I didn't miss anything.

I will have look, sorry guys !

@Kuqd: what do you mean by "splitting the makefile into multiple purpose makefile include" more exactly?  I don't know... :disappointed:

I hope I havent forgot any point....

i think that was my fault, I was futzing with the cluster.

@victor-prodan I might having multiple makefile one for build, one minikube, one for setup, etc... , using includes. But let's see that later, we should do another PR it's easier.

You possibly hit #357 ?  @markmandel do you know why
 	reply, err := e2eframework.PingGameServer("ANNOTATION", fmt.Sprintf("%s:%d", readyGs.Status.Address,
 		readyGs.Status.Ports[0].Port))
``
would be out of index

Yep, it's a race condition. Review and merge #357 and it will go away 👍


docs: added best practices

Description
Added some best practices and utilities documentation
Verification Steps

Checklist (Definition of Done)

[ ] All acceptance criteria specified in JIRA have been completed
[ ] Unit and integration tests added that prove the fix is effective or the feature works (tested against emulated and non-emulated OCM environment)
[ ] Documentation added for the feature
[ ] CI and all relevant tests are passing
[ ] Code Review completed
[ ] Verified independently by reviewer
[ ] Required metrics/dashboards/alerts have been added (or PR created).
[ ] Required Standard Operating Procedure (SOP) is added.
[ ] JIRA has created for changes required on the client side

Thanks for adding this. Do we want to add:

something about error handling
polling utilities in the integration test
service abstractions via an interface
table driven unit testing
?

Thanks for adding this. Do we want to add:

something about error handling
polling utilities in the integration test
service abstractions via an interface
table driven unit testing
logging
?

Very good points. Will do.

Looks good, thanks for the clarity @ziccardi

lgtm


Continuous loading for Jupyter: Variables in VS Code Explorer tab

Applies To

[ ] Notebooks (.ipynb files)
[ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
Jupyter: Variables in VS Code Explorer tab would continuously try to load variables when opening a folder, non-.ipynb or non-.py file. It would finally stop loading when I create a blank .ipynb or .py file and close it without saving changes.
VS Code Version
1.68.0 (Universal)
Jupyter Extension Version
v2022.5.1001601848
Jupyter logs
No response
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local

can repro, thanks for the bug

We may need an activation event for the pane.

Verification steps:

Install jupyter extension (prerelease)
Open a blank folder
Open the output tab
Click on the 'jupyter' header

This should cause the jupyter extension to load and the tab should change to say 'no variables'