Generators should take a custom path

Ref #994, #479, and https://github.com/infinitered/ignite-ir-next/pull/27.
Pretty straightforward, we want to be able to do this:
$ ignite generate component MyComponent --path=App/Custom/Path

We'll need to pass through the option to the underlying generator and hopefully they respect the custom path.

As I see it, the custom path argument may be a bit overkill. Like in Rails' generators, if you just put a slash in the name, it will be considered a subpath:
ignite generate component Custom/Path/MyComponent
That would put the MyComponent into App/Custom/Path
I you put a slash in the name now though, it's just ignored which would result in this:
App/CustomPathMyComponent

I like how you think @baldursson. Want to take a crack at it?

Sure @jamonholmgren! I will try to make time for it

@baldursson Hey, it's been a while! Is this something you'd like to try sometime? I could see it being quite useful.

This is more of a Bowser thing, so closing now.

has this feature been implemented?


add tutorial in c/c++ section

This will help beginners on learning c++ programming language.
Description

added Introduction to C++ in C/C++ section.
Motivation and Context

How Has This Been Tested?

Types of changes

[x] Content Update (change which fixes an issue or updates an already existing submission)
[x] New Article (change which adds functionality)
[x] Documentation change

Checklist:

[x] My code follows the code style of this project.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have made checks to ensure URLs and other resources are valid

I want to contribute in your code

How is this a project?

I want to contribute in your code


Recognise timed-text codecs in DASH manifests (stpp and wvtt)

  Boilerplate (own code, improvement)
### In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under [Unlicense](http://unlicense.org/). Check one of the following options:
- I am the original author of this code and I am willing to release it under [Unlicense](http://unlicense.org/)
What is the purpose of your pull request?

Improvement

This is the ‘more long-term’ solution I alluded to before. It makes the handling of subtitle vs non-subtitle streams in DASH manifests more uniform, and adds support for WebVTT-in-MP4 encapsulation (wvtt codec).

Test case: https://www.byutv.org/player/af9e59e1-dcbb-403c-9e3d-7d5b95c352de/studio-c-the-disappearance-of-jason-gray (serves WebVTT-in-MP4 over DASH, was emitting warnings without this PR)


Multisig token trasnfer with ledger

Hello.  I had a problem during signing tx with ledger.
The core codes are like:
        let tx = params.tx

        let txOrigin = cloneDeep(tx)
        txOrigin.auth = intoInitialSighashAuth(txOrigin.auth)
        let id = txOrigin.txid()

       // create ledger connection inside
        await this.withTransport(async tp => {
            let stx = new Stacks(tp)

           // verify first signature and get new sigHash
            let { nextSigHash, pubKey } = nextVerification(id, AuthType.Standard, params.fee, params.nonce, PubKeyEncoding.Compressed, tx.auth.spendingCondition.fields[0].contents)
          // public key as expected
            console.log('pk1', publicKeyToString(pubKey))

            let signature1 = tx.auth.spendingCondition.fields[0].contents.data
            let content = Buffer.concat([
                Buffer.from(tx.serialize()),
                Buffer.from(nextSigHash, 'hex'),
                Buffer.from(Uint8Array.from([PubKeyEncoding.Compressed])),
                Buffer.from(signature1, 'hex')
            ])

            let resp = await stx.sign(params.path, content)

            if (resp.returnCode !== LedgerError.NoErrors) {
                throw new Error(resp.errorMessage)
            }

            let signature = createMessageSignature(Buffer.from(resp.signatureVRS).toString('hex'))
            tx.auth.spendingCondition.fields.push(createTransactionAuthField(PubKeyEncoding.Compressed, signature))

            let { pubKey: pk2 } = nextVerification(nextSigHash, AuthType.Standard, params.fee, params.nonce, PubKeyEncoding.Compressed, signature)
            // got wrong public key when signing contract call transaction
            console.log('pk2', publicKeyToString(pk2))
        })

I used a external key pair and a key pair from ledger to create a 2-2 multisig address.  After signed by external key, I tried to use ledger to sign the tx. It will sucess if the tx is STXTokenTransfer, and will failed if the tx is ContractCall
contract call(transfer token) raw tx after first sign
80800000000401a03247752536624ab5c0e1618278a5d2ad0a0d0800000000000000020000000000000190000000010201416ae170ea90837175b68251de8aa8df83e310cfc1356123763d9be293df362576fbdfea827b09d436eb1294dd72f46dd956beec82b9145bec704bab8de3cb0700020302000000010102154edd2adc7eafc16b2b8dfced1aeeb465e06cdeae1a60718ab27d203015cc8697ccc610d70bedc09f7f0e66756e6769626c652d746f6b656e0c636c61726974792d636f696e010000000000000064021a60718ab27d203015cc8697ccc610d70bedc09f7f0e66756e6769626c652d746f6b656e087472616e7366657200000004010000000000000000000000000000006405154edd2adc7eafc16b2b8dfced1aeeb465e06cdeae051a6bc6d849b4cf56cfeeef215913f08829ff2a2a3909

:link: zboto Link

@jbencin can this be closed thanks to your changes in #152 ?

It's possible that my PR fixes this, as there were general issues with signing multisig transactions after the first signer. But if there is some bug with the Ledger handling multisig for STXTokenTransfer differently from ContractCall, then my PR wouldn't have fixed that
I have not personally tested the new code with anything other than an STXTokenTransfer. I think it may have been used by others to stack STX from multisig accounts, so I'll ask around

Hey @neithanmo @jbencin we've been testing it through Asigna and it was completely fine
https://ledger-stacks.dev.asigna.io/ you can try it out here + asigna extension from the store, connect ledger, and use the extension to connect to any Stacks app, easy to check and verify smart contract calls

closed as no more activity and dev reported is works in asigna.
Feel free to reopen again, with more relevant information


Idea: TLS Authentication with Auto Scaling Notifications, SNS, and Lambda

This is an idea that I've just started to formulate as an alternative to #1, that's mostly the same but uses Vault's TLS authentication~~, and a templating abstraction on top of Vault ACLs~~.
The problem I'm attempting to solve here is how to best utilize Vault's TLS authentication backend for instances that are automatically provisioned as part of EC2 autoscaling groups. To break the problem down a little further:

[x] How and where do you generate the client certificate used to authenticate to Vault?
[x] How do you transmit the client certificate securely from where it's generated to the instance that will use it?
[x] How do you authenticate and authorize the request for a new client certificate that's sent to the script that generates it and writes it to Vault?
[x] How do you revoke client certificates for instances that are terminated from a scaling activity?

The following idea is a rough cut at solving this problem, and utilizes built-in AWS components as much as possible:

Auto Scaling
Simple Notification Service
Identity and Access Management
Key Management Service
Lambda
Relational Database Service or DynamoDB (optional)

There are two separate scenarios that this will cover:

New instance launched in an auto scaling group
Instance terminated from an auto scaling group

Components
Auto Scaling Notifications
Auto scaling groups whose services need to authenticate to Vault will be configured to send the autoscaling:EC2_INSTANCE_LAUNCH and autoscaling:EC2_INSTANCE_TERMINATE notifications to a special SNS topic, that does not allow publishing from anything except for the Auto Scaling service.
Auto Scaling Topic
A single SNS topic is set up for inbound messages from Auto Scaling events. This topic should not allow publishing to it.
KMS Key
A single KMS key is set up for decrypting the credentials used by the Lambda function to authenticate to Vault.
Lambda Function
A Lambda function that's subscribed to the SNS topic does the work of generating and mapping inbound User IDs to the App IDs in Vault.
The Lambda function considers any message on the SNS topic authenticated, but not necessarily authorized, since the only principals that should have the ability to publish to the SNS topic aside from administrators are the automatically generated Auto Scaling notifications created by the Auto Scaling service itself. The threat model here does not include malicious actors inside of AWS, or compromised administrator credentials.
Vault stores the certificate and private key of a certificate authority that's used to generate new client certificates, and these are accessible by the credential that the Lambda function uses.
To determine the policies that should be applied to new certificates, the Lambda function looks up the EC2 instance in a Deployment Repository (see below).
The Lambda function has either a token or a certificate hard-coded into it that is used to authenticate to Vault. The credential is encrypted with the KMS key before it's deployed to Lambda, and the IAM policy for the Lambda function has permission to use that KMS key for decryption.
The user that the function authenticates should only have permission to create and delete certificates in /auth/cert/certs, and to access a temporary credential for querying the deployment repository if necessary.
The Lambda function also has a private RSA key encrypted by the same KMS key that's used to upload client certificates to new EC2 instances.
Deployment Repository
The Deployment Repository is a trusted source of extra information about auto scaling groups and their launch configurations that's necessary in order for the Lambda Function to determine which policies to apply to new client certificates when instances are launched.
Records in the Deployment Repository for auto scaling groups and launch configurations should include a column/attribute to indicate what policies that instances launched in those groups can be associated with.
IAM policies
IAM policies should be used heavily in order to restrict access appropriately to the Auto Scaling Topic, the Lambda Function, the KMS Key, and the Deployment Repository.
Workflows
Terms

ASG: The auto scaling group that a message sent to the ST is for.
Deployment Repository: The service that stores additional metadata about each LC and ASG. It's the responsibility of whatever is creating and destroying LCs and ASGs to properly index them in the Deployment Repository.
LC: The auto scaling launch configuration for an ASG.
LF: The Lambda function that processes messages from the Auto Scaling Topic.
LF KMS Key: A master key on KMS that the IAM policy for the LF is allowed to use for decryption.
LF Vault Credential: A credential to Vault that is attached to a restricted policy allowing read write access to /auth/cert/certs and access to temporary credentials needed to authenticate to the Deployment Repository if required.
Auto Scaling Topic: The SNS topic that receives notifications from Auto Scaling of instances launching or terminating.

New instance launched in an auto scaling group
When an autoscaling:EC2_INSTANCE_LAUNCH notification is published to the Auto Scaling Topic, the following steps take place:

The LF queries EC2 to make sure the instance exists and that it belongs to the auto scaling group in the message from the Auto Scaling Topic
The LF decrypts the LF Vault Credential using the LF KMS Key and authenticates to Vault
The LF looks up the ASG and/or its LC of the EC2 instance in the Deployment Repository to determine the policies that the EC2 instance should be associated with
The LF loads the certificate authority and private key and creates a new client certificate that it uploads to Vault as /auth/cert/certs/<EC2 instance ID>, with the policies that it determined from querying the Deployment Repository.
The LF decrypts its private RSA key using the LF KMS Key
The LF waits for SSH to be ready on the instance
The LF uploads the client certificate to the EC2 instance
Services on the EC2 instance that need access to Vault wait for the client certificate to be uploaded or until a timeout is reached

Note that this is similar to how Chef does it, but instead of having a validation key pre-baked into the AMI that instances are created from, you have an authorized public key to a user that isn't even necessarily root.
Big caveat: I haven't yet explored how to set up your security groups properly for a Lambda function to make a successful SSH connection to an EC2 instance inside of a VPC, so if that's a non-starter than some alternate means for the Lambda function to transfer the client certificate would need to exist, or the functionality inside the Lambda function itself would need to be deployed to an administrative EC2 instance inside of the VPC that has access, instead of on Lambda.
Instance terminated from an auto scaling group
When an autoscaling:EC2_INSTANCE_TERMINATE notification is published to the SNS topic, the following steps take place:

The LF queries EC2 to make sure the instance exists and that it belongs to the auto scaling group in the message from the Auto Scaling Topic
The LF retrieves the User ID for the instance (How?) (See #2)
The LF decrypts the LF Vault Credential using the LF KMS Key and authenticates to Vault
The LF deletes the client certificate from /auth/cert/certs/<EC2 instance ID> if it exists

Threat Model
TBD (See #5)

@armon Here's an alternative idea that doesn't use App ID authentication at all, but rather TLS certificates generated on the fly and revoked on instance launch/termination. Looking forward to hearing your thoughts on this one!

The other thing that the Lambda function could be useful for in this case might be to generate an ACL named from the EC2 instance ID that only allows access to say, /secrets/<EC2 instance ID>/*, and associate the generated client certificate with this ACL as well as any found for it via the Deployment Repository.
You could then have the Lambda function also generate instance-specific credentials like RabbitMQ client certificates or even Chef clients and certificates, and have them stored under the instance-specific path.
Obviously, it would then be trivial to dispose of these secrets, revoke the certificates, etc. and delete the entire path for the instance for Vault once the instance is terminated.


Support SoftmaxCrossEntropyLoss

This is a very common ONNX operator.
ORT falls back to CPU when encountering this node.  The code is at:
https://github.com/microsoft/onnxruntime/blob/ee603ee3265dbf6eac112baf273b6b69bf696085/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc#L1022-L1029
This happens when executing LLama v2, from:
https://github.com/microsoft/onnxruntime-inference-examples/blob/main/python/models/llama/LLaMA-2 E2E Notebook.ipynb

Relevant doc/spec - https://github.com/onnx/onnx/blob/main/docs/Operators.md#softmaxcrossentropyloss


Correct variable names in Echo activity

Correct some variable names in Echo activity.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot


Segfault on tab completion

The REPL correctly lists a moderately sized leveldb test db:
$ du -hs .
76M     .

But it crashes when I'm about to tab-complete one of the keys:
 $ ldb -i .

> get a
       terminate called after throwing an instance of 'std::regex_error'
                                                                          what():  regex_error
                                                                                Aborted

Those keys have a format such as:
abu/day/foobaruserid/2015-05-15

does it work on smaller a database? if so, that sounds weird, if it's a consistent problem it might be an easy fix :)

Yes, it seems to work... could it be that the /'s in the key (abu/day/foobaruserid/) clashes with the regexp engine? Yeah! I just tried this with an empty db:
testdb2$ ldb -i . -c

> put abu/day/boofarbab;foo
> get a
       terminate called after throwing an instance of 'std::regex_error'
                                                                          what():  regex_error
                                                                                Aborted

But also when I start totally anew and put non-weird keys:
$ ldb -i . -c

> put abu
> get
     terminate called after throwing an instance of 'std::regex_error'
                                                                        what():  regex_error
                                                                                Aborted

Bizarre...

Tried to enable -g on ldb, leveldb and the other deps but I cannot get the debugging symbols to work when examining the core:
Core was generated by `ldb -i . -c'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f8df8db0cc9 in ?? ()
(gdb) bt
#0  0x00007f8df8db0cc9 in ?? ()
#1  0x00007f8df8db40d8 in ?? ()
#2  0x0000000000000020 in ?? ()
#3  0x0000000000000000 in ?? ()

Any hints on how to get those?

wasn't able to reproduce, i also used the same keys. i'll leave it open until i get some free time to work on this project again.


unable to initialize sasl; broker: seed 1, err: EOF

Hello,
I am using franzo-go package to connect to AWS MSK with IAM Role only.  I see below error in my log after 10 hours. But consumers are consuming message without any issue.
[INFO] metadata update triggered; why: opportunistic load during source backoff
[ERROR] unable to initialize sasl; broker: seed 1, err: EOF
[INFO] metadata update triggered; why: opportunistic load during source backoff
Any suggestion on these error ?
Above INFO log, keep logging in log file. Any configuration parameter do i need to set to avoid above INFO log ?
I am using github.com/twmb/franz-go v1.10.0

Looks like the connection was closed during the SASL flow. This is a recoverable error, perhaps it shouldn't be at ERROR level, or I shouldn't log if it's just a simple connection close. I'm not sure why AWS would close the connection so quickly, but well, AWS MSK has been pretty problematic (you can see in other issues). I'm going to close this for now since this isn't an issue, but I'll adjust the error locally.


BUG: sparse dia_array changes to csr after multiplication

Describe your issue.
When I create a sparse.dia_array, if I multiply it to some constant scalar, it gets converted into a csr_array. Is this intentional behavior? Or is it a bug?
Generally there is not a lot of doc on dia_array.
Reproducing Code Example
from scipy.sparse import dia_array
n = 10
ex = np.ones(n)
data = np.array([ex, 2 * ex, ex])
offsets = np.array([-1, 0, 1])
a = dia_array((data, offsets), shape=(n, n))

a
Out[8]:
<10x10 sparse matrix of type '<class 'numpy.float64'>'
	with 28 stored elements (3 diagonals) in DIAgonal format>

a*3
Out[9]:
<10x10 sparse array of type '<class 'numpy.float64'>'
	with 28 stored elements in Compressed Sparse Row format>

Error message
No error, this is more a behavior question.

SciPy/NumPy/Python version and system information
1.11.4 1.26.3 sys.version_info(major=3, minor=10, micro=13, releaselevel='final', serial=0)
lapack_mkl_info:
    libraries = ['mkl_rt']
    library_dirs = ['C:/ProgramData/anaconda3\\Library\\lib']
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
    include_dirs = ['C:/ProgramData/anaconda3\\Library\\include']
lapack_opt_info:
    libraries = ['mkl_rt']
    library_dirs = ['C:/ProgramData/anaconda3\\Library\\lib']
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
    include_dirs = ['C:/ProgramData/anaconda3\\Library\\include']
blas_mkl_info:
    libraries = ['mkl_rt']
    library_dirs = ['C:/ProgramData/anaconda3\\Library\\lib']
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
    include_dirs = ['C:/ProgramData/anaconda3\\Library\\include']
blas_opt_info:
    libraries = ['mkl_rt']
    library_dirs = ['C:/ProgramData/anaconda3\\Library\\lib']
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
    include_dirs = ['C:/ProgramData/anaconda3\\Library\\include']
Supported SIMD extensions in this NumPy install:
    baseline = SSE,SSE2,SSE3
    found = SSSE3,SSE41,POPCNT,SSE42,AVX,F16C,FMA3,AVX2
    not found = AVX512F,AVX512CD,AVX512_SKX,AVX512_CLX,AVX512_CNL,AVX512_ICL

dia_array and dia_matrix convert to other formats for element-wise multiplication. Actually all the binary operations that result in element-wise computation are not implemented directly in the DIA format. Matrix multiplication is done directly in DIA format however. Where there is conversion it is usually to CSR format. The idea is that DIA is a good format to building sparse arrays, but that it isn't efficient for many operations. The conversion to CSR is fairly fast so where that makes sense, it is done. [I haven't been involved in this evolution. I'm just reporting my understanding of the justification. Others please correct me.]
Perhaps I shouldn't suggest this, but you might notice that a.data *= 3 does scalar multiplication quite nicely when you don't have to worry about dytpes or overflows.

I haven't looked at the details of implementation, but I can't imagine why scalar multiplication is not efficient in this format.
In my specific use case I am assembling a matrix consisting of different terms,  each of them diagonal. So I have many operation like c1a+c2b where a and b are diagonal matrix. Then I look for eigenvectors of total matrix

From: Dan Schult @.>
Sent: Wednesday, April 10, 2024 10:14:27 PM
To: scipy/scipy @.>
Cc: linhz0hz @.>; Author @.>
Subject: Re: [scipy/scipy] BUG: sparse dia_array changes to csr after multiplication (Issue #20434)
dia_array and dia_matrix convert to other formats for element-wise multiplication. Actually all the binary operations that result in element-wise computation are not implemented directly in the DIA format. Matrix multiplication is done directly in DIA format however. Where there is conversion it is usually to CSR format. The idea is that DIA is a good format to building sparse arrays, but that it isn't efficient for many operations. The conversion to CSR is fairly fast so where that makes sense, it is done. [I haven't been involved in this evolution. I'm just reporting my understanding of the justification. Others please correct me.]
Perhaps I shouldn't suggest this, but you might notice that a.data *= 3 does scalar multiplication quite nicely when you don't have to worry about dytpes or overflows.
—
Reply to this email directly, view it on GitHubhttps://github.com/scipy/scipy/issues/20434#issuecomment-2048809264, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJU2RWOVFUHH5ROGIE7YU63Y4XWYHAVCNFSM6AAAAABF7TEZESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBYHAYDSMRWGQ.
You are receiving this because you authored the thread.Message ID: @.***>

Yes, we should definitely be special-casing the DIA * scalar case here. Right now, the DIA format only special-cases matrix multiplication against a 1d dense array (via _matmul_vector()).
To add support for scalar multiplication, it should be a relatively small change, adding a single method:
def _mul_scalar(self, other):
    result = self.copy()
    result.data *= other
    return result

I haven't tested this, so there may be some edge cases to handle, but that's the essence of it at least.


Adjust weapon label

Current dependencies on/for this PR:

main

PR #63   👈

This stack of pull requests is managed by Graphite.


universal queries

I formulated the following query that (should) ask for all resources in Knora (using Postman and POST to https://api.dasch.swiss/v2/searchextended)
PREFIX knora-api: http://api.knora.org/ontology/knora-api/simple/v2#
CONSTRUCT {
?s knora-api:isMainResource true .
}
WHERE {
?s a knora-api:Resource .
}
I retrieved no results. Is there a mistake in the query or is there a reason that such queries aren't allowed and if so, why? I consider such a query as a very useful one to get an idea about the data.

I think this query should return an error message, because it's too broad to be meaningful.

I consider such a query as a very useful one to get an idea about the data.

The DaSCH repository could have billions of resources in it, belonging to thousands of different resource types. Scrolling through a few random resources isn't going to give you an idea of what's in the repository.
For example, there are likely to be millions of knora-api:Region resources, used for different purposes by different projects. Suppose your search results returned all these Region resources first, before returning any other type of resource? You would have no idea what all these regions were used for. You might think that the DaSCH repository contained only regions... but regions of what? You would not know.
To get an idea of what's in the repository, you need an overview of the projects that are hosted by the DaSCH.


Provide direct links to datasets/deeper level of detail from maps?

Is there a way to provide users a link to the datasets provided in the climate maps section? I have no idea if this makes sense, but I was wondering if some users might go straight to the climate maps and want to [...] click on a link that takes you to the dataset.

XREF #410
But closing because we declare at the top of the maps page "these maps aren't interactive" and I think in this case we don't want users bypassing the report page with all the disclaimers about uncertainty, etc.


patch file doesn't work on Prisma v2.14.0

package.json

{
  "name": "app",
  "private": true,
  "sideEffects": false,
  "scripts": {
    "build": "remix build",
    "dev:remix": "remix watch",
    "dev:wrangler": "cross-env NODE_ENV=development wrangler pages dev ./public",
    "dev": "remix build && run-p dev:*",
    "start": "cross-env NODE_ENV=production npm run dev:wrangler",
    "typecheck": "tsc --noEmit",
    "postinstall": "patch-package && remix-esbuild-override",
    "generate": "cross-env PRISMA_CLIENT_ENGINE_TYPE=dataproxy prisma generate",
    "seed": "ts-node -r tsconfig-paths/register"
  },
  "dependencies": {
    "@emotion/css": "^11.9.0",
    "@mantine/core": "^4.2.1",
    "@mantine/dropzone": "^4.2.1",
    "@mantine/hooks": "^4.2.1",
    "@mantine/notifications": "^4.2.2",
    "@mantine/rte": "^4.2.1",
    "@mantine/ssr": "^4.2.1",
<EMAIL_ADDRESS>"^3.1.0",
    "@prisma/client": "^3.12.0",
    "@remix-run/cloudflare": "^1.5.1",
    "@remix-run/cloudflare-pages": "^1.5.1",
    "@remix-run/node": "^1.5.1",
    "@remix-run/react": "^1.5.1",
    "@remix-run/serve": "^1.5.1",
    "@remix-run/server-runtime": "^1.5.1",
    "@tabler/icons": "^1.67.1",
    "axios": "^0.27.2",
    "bcrypt": "^5.0.1",
    "cloudinary": "^1.29.1",
    "dotenv": "^16.0.1",
    "express": "^4.18.1",
    "geoip-lite": "^1.4.5",
    "highlight.js": "^11.5.1",
    "isbot": "^3.5.0",
    "jsonwebtoken": "^8.5.1",
    "marked": "^4.0.14",
    "nodemailer": "^6.7.3",
    "prisma": "^3.14.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-portal": "^4.2.2",
    "remix": "^1.5.1",
    "remix-utils": "^3.2.0",
    "styled-components": "^5.3.5"
  },
  "devDependencies": {
    "@cloudflare/workers-types": "^3.10.0",
    "@esbuild-plugins/node-globals-polyfill": "^0.1.1",
    "@remix-run/dev": "^1.5.1",
    "@types/bcrypt": "^5.0.0",
    "@types/geoip-lite": "^1.4.1",
    "@types/jsonwebtoken": "^8.5.8",
    "@types/marked": "^4.0.3",
    "@types/node": "^17.0.36",
    "@types/nodemailer": "^6.4.4",
    "@types/react": "^17.0.24",
    "@types/react-dom": "^17.0.9",
    "@types/react-portal": "^4.0.4",
    "@types/styled-components": "^5.1.25",
    "cross-env": "^7.0.3",
    "esbuild-plugin-alias": "^0.2.1",
    "npm-run-all": "^4.1.5",
    "patch-package": "^6.4.7",
    "remix-esbuild-override": "^3.0.4",
    "ts-node": "^10.7.0",
    "tsconfig-paths": "^4.0.0",
    "typescript": "^4.1.2",
    "wrangler": "^2.0.7"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "platform": "node",
  "engines": {
    "node": ">=14"
  }
}

when i run yarn install it show error like this👇

patch-package 6.4.7
Applying patches...

**ERROR** Failed to apply patch for package @prisma/client at path

    node_modules/@prisma/client

  This error was caused because @prisma/client has changed since you
  made the patch file for it. This introduced conflicts with your patch,
  just like a merge conflict in Git when separate incompatible changes are
  made to the same piece of code.

  Maybe this means your patch file is no longer necessary, in which case
  hooray! Just delete it!

  Otherwise, you need to generate a new patch file.

  To generate a new one, just repeat the steps you made to generate the first
  one.

  i.e. manually make the appropriate file changes, then run

    patch-package @prisma/client

  Info:
    Patch file<EMAIL_ADDRESS>    Patch was made for version: 3.12.0
    Installed version: 3.14.0

---
patch-package finished with 1 error(s).
💽 esbuild patch by remix-esbuild-override is complete.

when i run yarn dev it got error like 👇

Building Remix app in development mode...
💽 Override esbuild. Your custom config can be used to build for Remix.

✘ [ERROR] Could not resolve "async_hooks"

    node_modules/@prisma/client/runtime/index.js:67:45:
      67 │ var import_async_hooks = __toModule2(require("async_hooks"));
         ╵                                              ~~~~~~~~~~~~~

  The package "async_hooks" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

 ✘ [ERROR] Could not resolve "stream/web"

    node_modules/@prisma/client/runtime/index.js:27978:33:
      27978 │         ReadableStream = require("stream/web").ReadableStream;
            ╵                                  ~~~~~~~~~~~~

  The package "stream/web" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

 ✘ [ERROR] Could not resolve "perf_hooks"

    node_modules/@prisma/client/runtime/index.js:33032:34:
      33032 │     var { performance } = require("perf_hooks");
            ╵                                   ~~~~~~~~~~~~

  The package "perf_hooks" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

 ✘ [ERROR] Could not resolve "util/types"

    node_modules/@prisma/client/runtime/index.js:33546:35:
      33546 │     var { isUint8Array } = require("util/types");
            ╵                                    ~~~~~~~~~~~~

  The package "util/types" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

Build failed with 4 errors:
node_modules/@prisma/client/runtime/index.js:67:45: ERROR: Could not resolve "async_hooks"
node_modules/@prisma/client/runtime/index.js:27978:33: ERROR: Could not resolve "stream/web"
node_modules/@prisma/client/runtime/index.js:33032:34: ERROR: Could not resolve "perf_hooks"
node_modules/@prisma/client/runtime/index.js:33546:35: ERROR: Could not resolve "util/types"
Error
    at Object.onBuildFailure (/work/app/node_modules/@remix-run/dev/cli/commands.js:157:13)
    at buildEverything (/work/app/node_modules/@remix-run/dev/compiler.js:281:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.build (/work/app/node_modules/@remix-run/dev/compiler.js:106:3)
    at async Object.build (/work/app/node_modules/@remix-run/dev/cli/commands.js:152:3)
    at async Object.run (/work/app/node_modules/@remix-run/dev/cli/run.js:470:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I have updated the patch (https://github.com/aiji42/remix-esbuild-override/commit/f43d771bc0aa07b426f56dae811a263c9934ce67), please quote from the latest main branch.
The error on yarn dev is caused by you not generating prisma client in dataproxy mode, please read the README.

Use Prisma Data Proxy

Please refer to this document to prepare for using Prisma Data Proxy. When running prisma generate, be sure to specify the environment variable PRISMA_CLIENT_ENGINE_TYPE='dataproxy'.


Adds some more examples to the example extension

Codecov Report

Merging #1341 (ee3ddb2) into main (a8fa4bd) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1341   +/-   ##
=======================================
  Coverage   48.24%   48.24%
=======================================
  Files         296      296
  Lines       16758    16758
=======================================
  Hits         8085     8085
  Misses       8673     8673

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


openafs: Add upstream patches for Linux kernel 5.12

Motivation for this change
OpenAFS doesn’t build with Linux kernel 5.12 without these upstream patches from the openafs-stable-1_8_x branch.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Added a release notes entry if the change is major or breaking
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 125047 at 5fa1186d run on aarch64-linux 1

6 packages marked as broken and skipped:

linuxPackages_hardkernel_4_14.openafs
linuxPackages_hardkernel_4_14.openafs_1_8
linuxPackages_hardkernel_latest.openafs
linuxPackages_hardkernel_latest.openafs_1_8
linuxPackages_testing_bcachefs.openafs
linuxPackages_testing_bcachefs.openafs_1_8

2 packages failed to build:

linuxPackages_hardened.openafs (linuxPackages_hardened.openafs_1_8)
linuxPackages_latest_hardened.openafs (linuxPackages_latest_hardened.openafs_1_8)

7 packages skipped due to time constraints:

linuxPackages-libre.openafs (linuxPackages-libre.openafs_1_8)
linuxPackages_4_4.openafs (linuxPackages_4_4.openafs_1_8)
linuxPackages_4_9.openafs (linuxPackages_4_9.openafs_1_8)
linuxPackages_latest-libre.openafs (linuxPackages_latest-libre.openafs_1_8)
linuxPackages_lqx.openafs (linuxPackages_lqx.openafs_1_8)
linuxPackages_xanmod.openafs (linuxPackages_xanmod.openafs_1_8)
linuxPackages_zen.openafs (linuxPackages_zen.openafs_1_8)

6 packages built successfully:

linuxPackages.openafs (linuxPackages.openafs_1_8 ,linuxPackages_5_10.openafs ,linuxPackages_5_10.openafs_1_8)
linuxPackages_4_14.openafs (linuxPackages_4_14.openafs_1_8)
linuxPackages_4_19.openafs (linuxPackages_4_19.openafs_1_8)
linuxPackages_5_11.openafs (linuxPackages_5_11.openafs_1_8)
linuxPackages_5_12.openafs (linuxPackages_5_12.openafs_1_8 ,linuxPackages_latest.openafs ,linuxPackages_latest.openafs_1_8)
linuxPackages_5_4.openafs (linuxPackages_5_4.openafs_1_8)

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

Please add a backport PR.


Can not get file list when root folder is empty

I want to get file list from Google Drive on iOS.
I can get file list on my app, but some times can not.
TEST CASES

I can get file list, after create "folder1" folder on Google Drive using browser.

variable lookme = {
	\"id\":\"gtl_1\",
	\"result\":{
		\"files\":[
			{
				\"id\":\"0BwaR-JZbWW------mask-----WFSb1U\",
				\"name\":\"folder1\",
				\"mimeType\":\"application/vnd.google-apps.folder\",
				\"trashed\":false,
				\"webViewLink\":\"https://docs.google.com/folderview?id=0BwaR-JZbWW1G------mask-----1U&usp=drivesdk\",
				\"modifiedTime\":\"2016-01-29T06:48:01.298Z\",
				\"permissions\":[
					{
						\"kind\":\"drive#permission\",
						\"id\":\"13133------mask-----1277\",
						\"type\":\"user\",
<EMAIL_ADDRESS>						\"role\":\"owner\",
						\"displayName\":\"my account\"
					}
				]
			}
		]
	}
}

I can get file list, after create "folder1" and "folder2" folders on Google Drive using browser.

variable lookme = {
	\"id\":\"gtl_1\",
	\"result\":{
		\"files\":[
			{
				\"id\":\"0BwaR-JZbW------mask-----W8\",
				\"name\":\"folder2\",
				\"mimeType\":\"application/vnd.google-apps.folder\",
				\"trashed\":false,
				\"webViewLink\":\"https://docs.google.com/folderview?id=0BwaR-JZbWW1------mask-----W8&usp=drivesdk\",
				\"modifiedTime\":\"2016-01-29T06:48:07.792Z\",
				\"permissions\":[
					{
						\"kind\":\"drive#permission\",
						\"id\":\"13133------mask-----1277\",
						\"type\":\"user\",
<EMAIL_ADDRESS>						\"role\":\"owner\",
						\"displayName\":\"my account\"
					}
				]
			},
			{
				\"id\":\"0BwaR-JZb------mask-----FSb1U\",
				\"name\":\"folder1\",
				\"mimeType\":\"application/vnd.google-apps.folder\",
				\"trashed\":false,
				\"webViewLink\":\"https://docs.google.com/folderview?id=0BwaR-JZbW------mask-----1U&usp=drivesdk\",
				\"modifiedTime\":\"2016-01-29T06:48:01.298Z\",
				\"permissions\":[
					{
						\"kind\":\"drive#permission\",
						\"id\":\"13133------mask-----277\",
						\"type\":\"user\",
<EMAIL_ADDRESS>						\"role\":\"owner\",
						\"displayName\":\"my account\"
					}
				]
			}
		]
	}
}

I can NOT get file list, after delete "folder1" and "folder2" on root folder and trash box on Google Drive using browser.
in this case, root folder is empty.

variable lookme = {\"id\":\"gtl_1\"}
so, I made this monkey patch.
diff --git a/Source/Objects/GTLService.m b/Source/Objects/GTLService.m
index f133218..219aa65 100644
--- a/Source/Objects/GTLService.m
+++ b/Source/Objects/GTLService.m
@@ -27,6 +27,7 @@
 #endif

 #import "GTLService.h"
+#import "GTLServiceDrive.h" // for checking

 NSString* const kGTLServiceErrorDomain = @"com.google.GTLServiceDomain";
 NSString* const kGTLJSONRPCErrorDomain = @"com.google.GTLJSONRPCErrorDomain";
@@ -1240,6 +1241,10 @@ totalBytesExpectedToSend:(NSInteger)totalBytesExpected {
           json = jsonWrapper;
         } else {
           json = [jsonWrapper valueForKey:@"result"];
+//            NSString* lookme = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
+            if(nil == json && [ticket.service isKindOfClass:[GTLServiceDrive class]] && [((GTLQuery*)ticket.executingQuery).methodName isEqualToString:@"drive.files.list"]){
+                json = [@{@"files":@[]} mutableCopy];
+            }
         }
       }

My problem is solved by my patch, but I think this problem is more commonly.
AND
I have seen next pattern:
{
	\"id\":\"gtl_3\",
	\"result\":{
		\"kind\":\"drive#file\",
		\"id\":\"0BwaR-J------mask-----mpSMjA\",
		\"name\":\"foldername\",
		\"mimeType\":\"application/vnd.google-apps.folder\"
	}
}

I'm not sure I'm following, you seem to be talking about "browser" requests but also have ObjC code snippets.  If this is all ObjC based, I'd suggest using the built in logging (https://github.com/google/google-api-objectivec-client/wiki#logging-http-server-traffic), and including the logs to show the request/reply, and then it should be more clear what requests you are doing and the replies.

I want to say:

lookme variable is here in my patch:
NSString* lookme = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
I think this is a response JSON of REST from server.

response format(JSON)  is not same when root folder is empty, and root folder has 1 or more files.

root folder is empty:
lookme = {\"id\":\"gtl_1\"}
root folder is not empty:
lookme = {\"id\":\"gtl_1\", \"result\":{ \"files\":[...]}}

I think response of @"{"id":"gtl_1"}" is not error. but following code says error:

in /Source/Objects/GTLService.m
around line number: 1240
please see comments.
      BOOL isREST = ticket.isREST;
      if (isREST) { // <- isREST is NO
        if (isRESTDataWrapperRequired_) {
          json = [jsonWrapper valueForKey:@"data"];
        } else {
          json = jsonWrapper;
        }
      } else {
        batchClassMap = [properties valueForKey:kFetcherBatchClassMapKey];
        if (batchClassMap) { // <- in this case nil
          // A batch gets the whole array as it's json.
          json = jsonWrapper;
        } else {
          json = [jsonWrapper valueForKey:@"result"]; // <- json is nil, because jsonWrapper not have "result" key
        }
      }

      if (json != nil) {  // <- json is nil
        Class defaultClass = [properties valueForKey:kFetcherObjectClassKey];
        NSDictionary *surrogates = ticket.surrogates;

        GTLObject *parsedObject = [GTLObject objectForJSON:json
                                              defaultClass:defaultClass
                                                surrogates:surrogates
                                             batchClassMap:batchClassMap];

        [fetcher setProperty:parsedObject forKey:kFetcherParsedObjectKey];
      } else if (!isREST) { <- isREST is NO
        NSMutableDictionary *errorJSON = [jsonWrapper valueForKey:@"error"];
        GTL_DEBUG_ASSERT(errorJSON != nil, @"no result or error in response:\n%@",
                         jsonWrapper); // <- assert is fail, stop execution
        GTLErrorObject *errorObject = [GTLErrorObject objectWithJSON:errorJSON];
        NSError *error = [errorObject foundationError];

        // Store the error and let it go to the callback
        [fetcher setProperty:error
                      forKey:kFetcherFetchErrorKey];
      }

above code works fine when root folder is not empty. but it not work when root folder is not empty.

I not use GTMSessionFetcher directly.
I use GTLServiceDrive.
I can see GTLServiceDrive.fetcherService object.
but I could not understand how to get GTMSessionFetcher object from fetcherService.
so I can not get log from:
[GTMSessionFetcher setLoggingEnabled:YES]

[GTMSessionFetcher setLoggingEnabled:YES] is invoking a class method.  You don't need to call it on a specific instance.

OK, thanks.
root folder is not empty:
drive.files.list

2016-01-29 17:25:08 +0000
Request: POST https://www.googleapis.com/rpc?prettyPrint=false
Request headers:
  Accept: application/json-rpc
  Authorization: Bearer _snip_
  Cache-Control: no-cache
  Content-Type: application/json-rpc; charset=utf-8
  User-Agent: ----MASK----/0.9 google-api-objc-client/2.0 iPhone/9.1 hw/sim (gzip)

Request body: (206 bytes)
{
  "jsonrpc" : "2.0",
  "method" : "drive.files.list",
  "id" : "gtl_3",
  "params" : {
    "q" : "'root' in parents",
    "fields" : "files(mimeType,id,name,trashed,modifiedTime,webContentLink,webViewLink,permissions)"
  },
  "apiVersion" : "v3"
}

Response: status 200
Response headers:
  Cache-Control: no-cache, no-store, max-age=0, must-revalidate
  Content-Encoding: gzip
  Content-Length: 353
  Content-Type: application/json; charset=UTF-8
  Date: Fri, 29 Jan 2016 17:25:07 GMT
  Expires: Fri, 01 Jan 1990 00:00:00 GMT
  Pragma: no-cache
  Server: GSE
  Vary: Origin, X-Origin
  alt-svc: quic=":443"; ma=604800; v="30,29,28,27,26,25"
  alternate-protocol: 443:quic,p=1
  x-content-type-options: nosniff
  x-frame-options: SAMEORIGIN
  x-xss-protection: 1; mode=block

Response body: (528 bytes)
{
  "id" : "gtl_3",
  "result" : {
    "files" : [
      {
        "mimeType" : "image\/png",
        "webContentLink" : "https:\/\/docs.google.com\/uc?id=0BwaR-JZbWW----MASK----aFk&export=download",
        "modifiedTime" : "2016-01-29T11:10:30.524Z",
        "id" : "0BwaR-JZ----MASK----VMaFk",
        "webViewLink" : "https:\/\/drive.google.com\/file\/d\/0Bwa----MASK----Hb1VMaFk\/view?usp=drivesdk",
        "permissions" : [
          {
            "emailAddress"<EMAIL_ADDRESS>            "id" : "13133----MASK----81277",
            "kind" : "drive#permission",
            "displayName" : "----MASK----",
            "type" : "user",
            "role" : "owner"
          }
        ],
        "name" : "1.png",
        "trashed" : false
      }
    ]
  }
}
-----------------------------------------------------------

root folder is empty:
drive.files.list

2016-01-29 17:25:33 +0000
Request: POST https://www.googleapis.com/rpc?prettyPrint=false
Request headers:
  Accept: application/json-rpc
  Authorization: Bearer _snip_
  Cache-Control: no-cache
  Content-Type: application/json-rpc; charset=utf-8
  User-Agent: ----MASK----/0.9 google-api-objc-client/2.0 iPhone/9.1 hw/sim (gzip)

Request body: (206 bytes)
{
  "jsonrpc" : "2.0",
  "method" : "drive.files.list",
  "id" : "gtl_5",
  "params" : {
    "q" : "'root' in parents",
    "fields" : "files(mimeType,id,name,trashed,modifiedTime,webContentLink,webViewLink,permissions)"
  },
  "apiVersion" : "v3"
}

Response: status 200
Response headers:
  Cache-Control: no-cache, no-store, max-age=0, must-revalidate
  Content-Encoding: gzip
  Content-Length: 34
  Content-Type: application/json; charset=UTF-8
  Date: Fri, 29 Jan 2016 17:25:32 GMT
  Expires: Fri, 01 Jan 1990 00:00:00 GMT
  Pragma: no-cache
  Server: GSE
  Vary: Origin, X-Origin
  alt-svc: quic=":443"; ma=604800; v="30,29,28,27,26,25"
  alternate-protocol: 443:quic,p=1
  x-content-type-options: nosniff
  x-frame-options: SAMEORIGIN
  x-xss-protection: 1; mode=block

Response body: (14 bytes)
{
  "id" : "gtl_5"
}
-----------------------------------------------------------

Those requests do look the same to me, so I do not know why they are getting different responses.
Try making the request without setting the fields property. (Leave it nil.) Sometimes, setting the fields property will hide some or all of the server response.
If that does not help, you'll probably need to seek assistance on StackOverflow. Google developer relations engineers usually monitor the appropriate API tags there, and may be able to offer advice. Be sure to include the library's http logs with the relevant requests and responses, as those are more useful than is the Objective-C code in understanding the server's response.

OK, you and this library are not wrong. Understood.

Sorry, I can't say I follow your last comment.
This library doesn't directly change what the server sends back.  As Greg said, try removing the fields property, it could be that the server is acting on those values and trimming empty things because of it.
While we maintain the library, we aren't able to be up on all the different services it can generate for and talk too, so that where sometimes it helps to point folks at something like StackOverflow were server teams are more likely to see the questions as they are language independent.

I am getting the same error on all empty folders and I believe it is a bug in the GoogleAPI library.
Note line 1270 in GTLService.m (in parseObjectFromDataOfFetcher method):
GTL_DEBUG_ASSERT(errorJSON != nil, @"no result or error in response:\n%@",                          jsonWrapper)
When calling
let query = GTLQueryDrive.queryForFilesList()
query.q = "'\(folderFileID)' in parents"
query.fields = "nextPageToken, files"
service.executeQuery(query) { (ticket: GTLServiceTicket!, response: AnyObject!, error: NSError!) -> Void in
    if let error = error {
        // error
    } else {
        // no error, parse response
        if let response = response as? GTLDriveFileList {
            if let files = response.files where !files.isEmpty {
                // do something with the files
            }
         }
    }
}

I don't ever get to the completion handler of service.executeQuery, neither with an error. The assertion is correct in a sense, as there is indeed "no result" (folder is empty), but I would expect to enter the completion handler with an error or an empty file list (or whatever).
When setting query.fields = nil I do get into the completion handler with the following response.JSON:
(NSMutableDictionary!) $R1 = 1 key/value pair {
    [0] = {
        key = 0xa000000646e696b4
        value = 0x00007fe7a3b03fa0 "drive#fileList"
    }
}

which is indeed a GTLDriveFileList object without a files list.

@eranmarom looks sorta like you are confirming what @gmrobbins said before.  You are using a fields that strips out everything forcing a completely empty result in that case?
@gmrobbins given cases like this, should we just drop the debug assert?

@thomasvl Yes, my point was to confirm what @gmrobbins said before, and to say that even in such cases the completion handler should be called (perhaps with an error, although I don't think this case qualifies as an error).

Ok, this actually gets ugly if the fields filters away things, the current code path in Release would skip the assert and try to make an error object out of the nil error JSON.


The starter gallery does not build...

Start building sites …
hugo v0.110.0+extended darwin/arm64 BuildDate=unknown
Error: Error building site: failed to render pages: render of "home" failed: "/Users/thomas/Downloads/gallerydeluxe_starter-main/layouts/index.html:10:7": execute of template failed: template: index.html:10:7: executing "index.html" at <partial "gallerydeluxe/head.html" .>: error calling partial: partial "gallerydeluxe/head.html" not found

So, it does build fine, one example can be seen here:
https://gallerydeluxe.netlify.app/

Have you followed the insturctions in the readme?
Are you sure you're not seeing any other error messages?

I am using Homebrew, all packages are updated to latest.. I found your gallery few days ago, tested it and the build worked OK. Tried another build today and the above issue occurred, no changes at all to code. Downloaded your starter project (as a zip file), tried to build but failed with same issue as above...

Just tested a new clone here https://github.com/bep/deleteme1
Works good.
I could maybe speculate that your Hugo Modules cache somehow got corrupted.
What you can try (and what I also would recommend) is that you set the HUGO_CACHEDIR OS env variable to point to some directory outside of /tmp. And then try to run again. Other things to try would be hugo mod clean and hugo mod clean --all.

Hi and thx, hugo mod clean did the magic. Closing the issue.
Thx for help and gallery..

I have just commenced adding pictures to gallery, more will come.. I also have another Hugo site with bird pics, I am converting all pics by PhotoLab - it will take some time but and the gallery is a start.. Have been looking for such a Hugo module for long time, great work with both Hugo and the gallery module..
https://gallerybythomas.netlify.app


jupyter / ipython notebook  - a new test with PredictMarketWithBayesTheorem

any plans to use the jupyter notebook?
https://jupyter.org/
graphs e.g. pyplot etc are somewhat easier with that, but that it would probably consume significantly more memory and resources
i did a new test of PredictMarketWithBayesTheorem in my repository
PredictMarketWithBayesTheorem.ipynb
the main things i changed are
normally log returns is computed as log(today's price) - log(yesterday's price) = log ( today's price / yesterday's price ). hence this formula is used instead
and for the categories i used a histogram to define them, scroll below for the histogram
this time round there is a difference, what is most interesting is the HL and HG predictions

I've been using Jupyter Notebooks for newer projects I'm working on. I've been buried and watching the world implode so I haven't put much up here. Older stuff won't be converted, newer stuff will likely be in Jupyter Notebooks

thanks, no worries and no hurries ;)


How to handle nested scrolling in Swiper

I put a div witch contain a long content thus need scrolling in Swiper
like this
**div id="slide2" class="swiper-slide"
*****div id="content" style=" width:400px;height:400px;overflow-y: scroll; "
***********there is a lot of content,actually it's a shopping list here,so I need scrolling the div.
***********at the same time,I need scrolling swiper too!
......
I konw it's not a smart design,but customer is the GOD...
I have read some issue about this problem.Could you give me a solution about it.
or Could I get a chance to preventing Swiper's default scrolling listening and adding it to my div at a fix region?

mybe,you can lock the swiper when the div scrolling,and unlock when the div scroll end.

Finally found a solution myself!
I disabled the 'longSwipes' feature and give it to my scrolling div.
In details:

define options of swipes:
longSwipes: false,//to disabled and
longSwipesMs : 300// setting the time threshold between long and short.
2.onSlideChangeEnd add some logic : setting the followFinger feature to false when current slide containing Although moving slide with finger is good.when I want to scroll my div,it's a big trouble.
3.onTouchMove & onTouchEnd：write my scrolling logic as a callback.
As a result.when you quick swiping it will scrolling the div content,long swiping will make page sliding.

Thanks you, you have made a great lib,Not even the optimized also about the extension.
when I writing my logic,I used swiper.params.xxx and swiper.touches.diff, it's helps a lot.
Hoping can make some help to further developing of Swiper.js

Thanks for your solution, glad you solved it! ;)


Fail to install on Ubuntu 14.04

$ env | grep GO
GOROOT=/usr/local/go
GOPATH=/home/rpinson/go
$ go install github.com/jingweno/ccat
../go/src/github.com/gogo/protobuf/proto/text.go:44:2: cannot find package "encoding" in any of:
	/usr/local/go/src/pkg/encoding (from $GOROOT)
	/home/rpinson/go/src/encoding (from $GOPATH)
../go/src/sourcegraph.com/sourcegraph/go-sourcegraph/sourcegraph/defs.go:10:2: cannot find package "sourcegraph.com/sourcegraph/go-nnz/nnz" in any of:
	/usr/local/go/src/pkg/sourcegraph.com/sourcegraph/go-nnz/nnz (from $GOROOT)
	/home/rpinson/go/src/sourcegraph.com/sourcegraph/go-nnz/nnz (from $GOPATH)
../go/src/sourcegraph.com/sourcegraph/go-sourcegraph/sourcegraph/repositories.go:9:2: cannot find package "sourcegraph.com/sourcegraph/go-vcs/vcs" in any of:
	/usr/local/go/src/pkg/sourcegraph.com/sourcegraph/go-vcs/vcs (from $GOROOT)
	/home/rpinson/go/src/sourcegraph.com/sourcegraph/go-vcs/vcs (from $GOPATH)
../go/src/sourcegraph.com/sourcegraph/go-sourcegraph/sourcegraph/build_data.go:8:2: cannot find package "sourcegraph.com/sourcegraph/rwvfs" in any of:
	/usr/local/go/src/pkg/sourcegraph.com/sourcegraph/rwvfs (from $GOROOT)
	/home/rpinson/go/src/sourcegraph.com/sourcegraph/rwvfs (from $GOPATH)
../go/src/sourcegraph.com/sourcegraph/go-sourcegraph/sourcegraph/defs.go:13:2: cannot find package "sourcegraph.com/sourcegraph/srclib/graph" in any of:
	/usr/local/go/src/pkg/sourcegraph.com/sourcegraph/srclib/graph (from $GOROOT)
	/home/rpinson/go/src/sourcegraph.com/sourcegraph/srclib/graph (from $GOPATH)
../go/src/sourcegraph.com/sourcegraph/go-sourcegraph/sourcegraph/defs.go:14:2: cannot find package "sourcegraph.com/sourcegraph/srclib/store" in any of:
	/usr/local/go/src/pkg/sourcegraph.com/sourcegraph/srclib/store (from $GOROOT)
	/home/rpinson/go/src/sourcegraph.com/sourcegraph/srclib/store (from $GOPATH)
../go/src/sourcegraph.com/sourcegraph/go-sourcegraph/sourcegraph/defs.go:15:2: cannot find package "sourcegraph.com/sourcegraph/srclib/unit" in any of:
	/usr/local/go/src/pkg/sourcegraph.com/sourcegraph/srclib/unit (from $GOROOT)
	/home/rpinson/go/src/sourcegraph.com/sourcegraph/srclib/unit (from $GOPATH)
../go/src/sourcegraph.com/sourcegraph/go-sourcegraph/sourcegraph/query_tokens.go:11:2: cannot find package "sourcegraph.com/sourcegraph/vcsstore/vcsclient" in any of:
	/usr/local/go/src/pkg/sourcegraph.com/sourcegraph/vcsstore/vcsclient (from $GOROOT)
	/home/rpinson/go/src/sourcegraph.com/sourcegraph/vcsstore/vcsclient (from $GOPATH)
$ go get github.com/jingweno/ccat
package encoding: unrecognized import path "encoding"
munmap of stack space failed: errno 22
Aborted

goroutine 1 [select]:
main.$nested27
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/http.go:57
main.httpsOrHTTP
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/http.go:65
main.repoRootForImportDynamic
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/vcs.go:468
main.repoRootForImportPath
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/vcs.go:362
main.downloadPackage
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/get.go:269
main.download
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/get.go:166
main.download
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/get.go:232
main.download
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/get.go:232
main.runGet
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/get.go:72
main.main
	/build/buildd/gccgo-go-1.2.1/src/cmd/go/main.go:161

goroutine 3 [syscall]:
	goroutine in C code; stack unavailable

Am I doing something wrong here?

Just for the sake of mentioning, do you have git and mercurial installed?

git yes, mercurial no

Installed mercurial, and now I get:
go get github.com/jingweno/ccat
package encoding: unrecognized import path "encoding"

Not sure if this is entirely on topic, but I don't think your meant to set goroot env variable. Read more here:
http://dave.cheney.net/2013/06/14/you-dont-need-to-set-goroot-really
However, I also think its GOROOT=/usr/share/go not GOROOT=/usr/local/go

OK then…
$ unset GOROOT
$ go get github.com/jingweno/ccat
# sourcegraph.com/sourcegraph/srclib/store
../../go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:666: syntax error: unexpected range, expecting {
../../go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:676: syntax error: unexpected semicolon or newline, expecting )
../../go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:678: syntax error: unexpected ), expecting semicolon or newline or }
../../go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:682: non-declaration statement outside function body
../../go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:683: non-declaration statement outside function body
../../go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:684: non-declaration statement outside function body
../../go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:685: non-declaration statement outside function body
../../go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:686: syntax error: unexpected }

Maybe you can try:
mkdir -p ./ccat/bin
cd ./ccat
export GOPATH=$(pwd)
export PATH=$PATH:$GOPATH/bin
export GOBIN=$GOPATH/bin
go get github.com/jingweno/ccat
go install src/github.com/jingweno/ccat/*.go

I would say try to just properly install go with tools https://golang.org/doc/install

So the packaged Ubuntu version is not working @yegortokmakov ?

@raphink gccgo-go didn't work for me, it failed with similar errors. with official tarball it worked

Ubuntu 14.04 Go version is to old (1.2), I add to install a more recent version manually.
This is due to the srclib dependency on Go 1.4+, see: https://srclib.org/install/#dependencies

You'd need Go 1.4+ to compile from source. I'm planning to provide pre-compiled binaries to make it easier for you. Let me know if you still can't get it working

Fails with same error on XUbuntu 15.04

Packaged go in ubuntu is more than 1 year old. Just uninstal it and install from golang.org.

Precompiled binaries are now available for the latest version: https://github.com/jingweno/ccat/releases/tag/v0.1.0.
Closing.

Is there a PPA?

@mslinn I'm planning to do that. Stay tuned.

Is there a PPA for Ubuntu 12.04 ?


Error during scanning from non-existent scanner is not obvious

To reproduce:

in forseti_conf_server.yaml, add a scanner that does not exist
reset the server
ssh into the forseti client
run the following commands on client:

  $ MODEL_NAME=$(/bin/date -u +%Y%m%dT%H%M%S)
  $ forseti inventory create --import_as ${MODEL_NAME}
  $ forseti model use ${MODEL_NAME}
  $ forseti scanner run

observe the scanner failing, with no useful information as to why.

{
"serverMessage": "Error occurred during the scanning process."
}

observe forseti server and client stackdriver logs having no indication as to why it failed as well (no stack, no error message, etc).

I  [forseti-security][2.4.0] google.cloud.forseti.services.scanner.service(Run): Run scanner service with model: 2020659dff6451acffd7df8372dd5304
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/bigquery_rules.yaml
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/blacklist_rules.yaml
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/bucket_rules.yaml
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/cloudsql_rules.yaml
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/firewall_rules.yaml
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/group_rules.yaml
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/iam_rules.yaml
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/iap_rules.yaml
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/ke_rules.yaml
I  [forseti-security][2.4.0] google.cloud.forseti.scanner.scanner_builder(build): Initializing the rules engine:
Using rules: /home/ubuntu/forseti-security/rules/lien_rules.yaml
A  Oct 16 16:07:07 forseti-server-vm-8e2ebac systemd[1]: Starting Cleanup of Temporary Directories...

Please see PR #2160 for details of the revision, and let me know if you have any questions.
Angel


ToughAsNails/MrCrayFish Conflict?

https://pastebin.com/pJ9YkR7Q
It has issue with tough as nails , when i remove tough as nails it gets issue with mrcrayfish vehicle mod...Help!

Hi @ItzKarlPvP, thanks for reporting this. I see you're also using MicDoodleCore (Galacticraft), which caused problems with OTG v6 / early v7, this was fixed with one of the later v7 dev versions. Please join us on the OTG Discord at #openterraingen and grab the latest dev version from the dev channel and try that, thanks! If you're having more problems with other mods, try asking on the Discord first. Feel free to re-open this issue or create a new one if you find more technical issues.


Only buffer up to 512 KiB of pending CRYPTO frames [#501].

Address #501 by limiting the size required to buffer pending CRYPTO frames to 512 KiB.  I picked this size based on it being big enough for post-quantum crypto, but still not very big.  The limit applies to the amount of storage we need to allocate, not the size of inbound fragments, so e.g. a bunch of small fragment around the 512 KiB offset would still trigger as we use a contiguous buffer and the required size would exceed the limit.

Note that the codespell check seems confused; it's complaining about a test function name "assertIn" in code I didn't change, and is just confused.  When I run codespell locally, I don't see it.  I see there is some issue with the openssl vendoring too, though again not related to this PR.

If you rebase on top of main the CI errors should be fixed. Once CI is green feel free to merge, thanks!


Migrate to CircleCI 2.0

Supports:

[ ]  Build and test on some Python versions.
[ ] Cache Python cache (fg. pip install....)

Codecov Report

Merging #2 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #2   +/-   ##
=======================================
  Coverage   73.33%   73.33%
=======================================
  Files           1        1
  Lines          30       30
  Branches        7        7
=======================================
  Hits           22       22
  Misses          4        4
  Partials        4        4

Continue to review full report at Codecov.

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


adding custom scripts

The issue i have is, if i put a custom script  under content folder then reference it as shown on the image below it doesn't come out
what should i do?
all my resources are embedded resources

Hi there! the handler res.ashx is only used for retrieving assets embedded within Piranha.dll. Since you've added your script to your local application it's located on disc and should be retrieved with a standard asset url.


.py opening and closing instantly

Hi, can you please try to run it from cmd and not by just clicking it?
That way we can see the full error because i think that this is just a small part of it...


Naming conventions

These are some proposed naming conventions to help create titles that will be useful for human readability.
I'm not wedded to these - happy for them to be changed etc.

Mentioned in #4

Thanks, makes sense and adds clarity


Feature request: better logging for nested tasks

Use case: I have a main task that performs actions on items of an iterable, so instead of specifying the one-item task as dependency, I call it directly. Here's my code:
#!/usr/bin/env python3

from pynt import task

ITEMS = ["foo", "bar"]

@task()
def item_task(item):
    print(item)

@task()
def main_task():
    for item in ITEMS:
        item_task(item)

__DEFAULT__ = main_task

This is the output I'm getting:
[ build.py - Starting task "main_task" ]
foo
bar
[ build.py - Completed task "main_task" ]

Since item_task() is a task too, I'd prefer the following output:
[ build.py - Starting task "main_task" ]
[ build.py - Starting task "item_task" with argument "foo"]
foo
[ build.py - Completed task "item_task" ]
[ build.py - Starting task "item_task" with argument "bar"]
bar
[ build.py - Completed task "item_task" ]
[ build.py - Completed task "main_task" ]

Maybe even with nested tasks indented:
[ build.py - Starting task "main_task" ]
    [ build.py - Starting task "item_task" with argument "foo"]
    foo
    [ build.py - Completed task "item_task" ]
    [ build.py - Starting task "item_task" with argument "bar"]
    bar
    [ build.py - Completed task "item_task" ]
[ build.py - Completed task "main_task" ]

I was able to get a PoC first option (without indenting nested tasks) by patching Task.__call__(), but I don't like this ugly hack:
import pynt

def custom_call(self, *args, **kwargs):
    local_args = locals()
    task_name = vars(local_args["self"])["name"]
    del local_args["self"]
    print("[ Starting task \"{}\" with arguments {}]".format(task_name, local_args))
    self.func.__call__(*args, **kwargs)
    print("[ Completed task \"{}\" ]".format(task_name))

pynt._pynt.Task.__call__ = custom_call

from pynt import task

One option is to use the dependency chain instead of calling the task like
a function. But you may need separate tasks for each param in this case.
Other option is to have custom logging inside the task
On Mon, Apr 13, 2020 at 1:21 AM somospocos<EMAIL_ADDRESS>wrote:

I was able to get a PoC first option (without indenting nested tasks) by
patching Task.call(), but I don't like this ugly hack:
import pynt
def custom_call(self, *args, **kwargs):
local_args = locals()
task_name = vars(local_args["self"])["name"]
del local_args["self"]
print("[ Starting task "{}" with arguments {}]".format(task_name, local_args))
self.func.call(*args, **kwargs)
print("[ Completed task "{}" ]".format(task_name))
pynt._pynt.Task.call = custom_call
from pynt import task
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rags/pynt/issues/24#issuecomment-612691067, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABCJUSY63U7YEGLAP3DN2TRMJEHFANCNFSM4MF7XTXQ
.

Other option is to have custom logging inside the task

I've been thinking to play a bit with the code and go this way, but after we reach some consensus about broken tests (see https://github.com/rags/pynt/issues/25), since I'd like to be able to run tests while working on code, to make sure I'm not breaking anything.

I have tried to move https://github.com/rags/pynt/blob/c0fbbc4c0c6c1ccbbf11a744fb62d33c78ac0ae0/pynt/_pynt.py#L188 and https://github.com/rags/pynt/blob/c0fbbc4c0c6c1ccbbf11a744fb62d33c78ac0ae0/pynt/_pynt.py#L198 into https://github.com/rags/pynt/blob/c0fbbc4c0c6c1ccbbf11a744fb62d33c78ac0ae0/pynt/_pynt.py#L256
But I've got stuck because I don't know how to pass the logger instance into Task :(

Please see https://github.com/somospocos/pynt/commit/856557af703b41436da48bf7b665f2eb2084c06c
I was able to avoid passing the logger instance around between functions by using a global. I know using globals is generally not recommended, but I simply don't know how to do it better for now. If you have any suggestions how to improve this, let me know. If you're willing to accept this into upstream, let me know as well, so I'll make a pull request.

Hi,
I think the Travis is able to run 2.7 and 3.3 tests on github. So if you
can locally change the build file to just run with 3.x you have. That
should be sufficient. Your patches will be validated by automated build
once you are ready
On Mon, Apr 13, 2020 at 9:21 PM somospocos<EMAIL_ADDRESS>wrote:

Other option is to have custom logging inside the task
I've been thinking to play a bit with the code and go this way, but after
we reach some consensus about broken tests (see #25
https://github.com/rags/pynt/issues/25), since I'd like to be able to
run tests while working on code, to make sure I'm not breaking anything.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rags/pynt/issues/24#issuecomment-613052701, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABCJUSKGQ5ZAVIXQQ4DA5LRMNQ4VANCNFSM4MF7XTXQ
.

I am a bit confused because you seem to address https://github.com/rags/pynt/issues/25 here. Do you want me to modify build.py locally, so tests run in my setup, but prefer to keep build.py in your repository as it is? Please answer in issue 25 regarding this, so we could keep the things isolated from eachother.
As for this issue, which is about better logging, I have something else to show. I have improved logging a bit further, on top of previous change, so it can show task arguments if required https://github.com/somospocos/pynt/commit/807f4503113ecea4006cedcffe9fd34457f92f69
So my plan currently is:

wait for your feedback regarding tests failing on my setup (again, please answer that in issue 25)

if you prefer to keep build.py as it is, I'm fine with that and can run the tests locally with a modified version of build.py

I will need your feedback here about the two features I've added:
a. logging for nested tasks
b. verbose logging that displays arguments tasks were called with
I'd like to know if you want one of them, both of them, and if you want both - should they be formatted as single pull request or as separate ones.

My misunderstood that you were blocked because of the tests.
From your poc code, I dont see how it will work. call is called if pynt
resolves it as a task and explicitly calls the created task. In your
usecase you are making a function call and not a task call.
I think another work around would be to expose get_task_by_name(name) [This
doesnt exist in this form] in pynt and do something like this
from pynt import get_task_by_name
@task()
def item_task(item):
print(item)
@task()
def main_task():
for item in ITEMS:
pynt.get_task_by_name('item_task')(item)
On Thu, Apr 16, 2020 at 9:43 PM somospocos<EMAIL_ADDRESS>wrote:

I am a bit confused because you seem to address #25
https://github.com/rags/pynt/issues/25 here. Do you want me to modify
build.py locally, so tests run in my setup, but prefer to keep build.py in
your repository as it is? Please answer in issue 25 regarding this, so we
could keep the things isolated from eachother.
As for this issue, which is about better logging, I have something else to
show. I have improved logging a bit further, on top of previous change, so
it can show task arguments if required somospocos@807f450
https://github.com/somospocos/pynt/commit/807f4503113ecea4006cedcffe9fd34457f92f69
So my plan currently is:

wait for your feedback regarding tests failing on my setup (again,
please answer that in issue 25)
2.
if you prefer to keep build.py as it is, I'm fine with that and can
run the tests locally with a modified version of build.py
3.
I will need your feedback here about the two features I've added:
a. logging for nested tasks
b. verbose logging that displays arguments tasks were called with
I'd like to know if you want one of them, both of them, and if you
want both - should they be formatted as single pull request or as separate
ones.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rags/pynt/issues/24#issuecomment-614857802, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABCJUVUHYZ7EB7XH5QB2GLRM5NXDANCNFSM4MF7XTXQ
.

I am using the unmodified build.py from the first post in this issue and the private branch https://github.com/somospocos/pynt/tree/private from my fork
This is the output I'm getting:
$ pynt
[ build.py - Starting task "main_task" ]
[ build.py - Starting task "item_task" ]
foo
[ build.py - Completed task "item_task" ]
[ build.py - Starting task "item_task" ]
bar
[ build.py - Completed task "item_task" ]
[ build.py - Completed task "main_task" ]

$ pynt -V
[ build.py - Starting task "main_task" ]
[ build.py - Starting task "item_task" with arguments ['foo'] ]
foo
[ build.py - Completed task "item_task" ]
[ build.py - Starting task "item_task" with arguments ['bar'] ]
bar
[ build.py - Completed task "item_task" ]
[ build.py - Completed task "main_task" ]


facter: 4.6.1 -> 4.8.0, puppet-bolt: 3.28.0 -> 3.30.0

Description of changes

https://github.com/puppetlabs/facter/compare/4.6.1...4.8.0
https://github.com/puppetlabs/bolt/compare/3.28.0...3.30.0
https://github.com/puppetlabs/r10k/compare/4.0.1...4.1.0

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 337220 run on x86_64-linux 1

3 packages built:

facter
puppet-bolt
r10k


Roc repl auto indentation

I started going through some of the tutorial using "roc repl" and I'm curious if the repl is planning on having automatic indentation when creating functions. Example below
» test = \a -> (press enter after the ->)
… a (press enter - doesn't auto indent) -- compiler sad (error)
» test = \a -> (press enter after the ->)
…  a (press space, press enter) -- compiler happy

See zulip discussion for more information.

See zulip discussion for more information.

I posted in zulip after researching a bit into rustyline

"It seems RustyLine doesn't support indentation"
https://github.com/kkawakam/rustyline/issues/453
https://github.com/kkawakam/rustyline/pull/466


Remove dashboard update period references

No-op code since https://github.com/pfsense/pfsense/commit/6c1f2a1ce66e201ddfdaf926275c021161b65ad2

@doktornotor please rebase your fork

@rbgarga Done (hopefully...)

Well yes, that's another source of conflicts unfortunately...

Errr. this produce another round of conflicts and I'm really not going to keep redoing this over and over again. Resolved for now.

In case you are wondering why this PR is closed, see https://github.com/doktornotor/pfsense-closedsource
I'm not willing to contribute to closed-source projects that are falsely advertising themselves as open-source any more.


Xtensa probe-rs support

stub issue, will fill in later with upstream issue linked

Closing in favour of https://github.com/probe-rs/probe-rs/issues/2001


Create delegate-required-sdks

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s). Breaks out the lists of third-party certified SDKs onto a new reference page and removes the content from the third-party customization page.

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Thanks for the review/approval @pratmit .

Preview environment: https://ci.pr.harness.io/pr-742

@kat-enos it looks like you merged this before addressing April's comments about missing links. In the content in production,  , the links are missing. Please create a new PR to add the missing links.

@KimberlyFields Linking before the page was pushed out was causing me some problems so I pushed out the page in advance of coming back to this PR and adding the link as I am now doing.


Day 419

Good morning! Here's your coding interview problem for today.
This problem was asked by PagerDuty.
Given a positive integer N, find the smallest number of steps it will take to reach 1.
There are two kinds of permitted steps:

You may decrement N to N - 1.
If a * b = N, you may decrement N to the larger of a and b.

For example, given 100, you can reach 1 in five steps with the following route: 100 -> 10 -> 9 -> 3 -> 2 -> 1.

Identical to Day 321: https://github.com/vaskoz/dailycodingproblem-go/issues/651


wechaty是不更新了吗

我怎么看 npm上的包版本已经两年多没更新过【https://www.npmjs.com/package/wechaty】

Welcome to Wechaty! We're glad you're here. Here's how to help us keep things organized:

Found a bug? First, see if anyone else has reported it. If not, go ahead and tell us about it. Please include what happened, how to make it happen again, and any pictures if you have them.
Have a new idea? Great! Check if someone else has already thought of it. If not, let us know what you're thinking and why it's a good idea.
Got questions? For questions, please don't use GitHub. Instead, try talking to our Friday BOT for answers:

If you have ChatGPT Plus, use this link: https://chat.openai.com/g/g-s4mx1ODQy-friday-bot
Or join our Discord community and ask Friday BOT there: https://discord.gg/7q8NBZbQzt

Thanks for helping Wechaty! We're excited to see what you do.


OPNET-466: PlatformLoadBalancer becomes GA for On-Prem

This PR promotes the PlatformLoadBalancer to GA for bare-metal and vSphere platforms. The feature has been in TP for long enough so that we are ready to promote it.

/cc @cybertron
/cc @JoelSpeed

/retest-required

Code changes look good, do we have any E2E or QE validation that can show that the feature is working as expected? Can we get an ack from the relevant lead/staff engineer for the feature that they're also happy to promote this?

@zhaozhanqi will be QE-ing this as part of OPNET-305. We do not have E2E (and probably won't have because of the complex underlying infrastructure) so for this one we rely purely on the QE.
Maybe @sadasu can shed more light as On-Prem team only bumps from TP to GA here, but we didn't do the initial implementation.
(the longer story is that this feature is already GA for OpenStack for quite some time, then it was developed as TP for Bare Metal and vSphere and as now we got actual usage, we promote it for those 2 platforms to GA; OpenStack platform is the reference here as it's been GA-ed already)

Maybe @sadasu can shed more light as On-Prem team only bumps from TP to GA here, but we didn't do the initial implementation.

@dtantsur  Could PTAL at  https://github.com/openshift/api/pull/1757#issuecomment-1935044183  and provide the BareMetal perspective?

We don't have any opinion on load balancers, I'll trust @mkowalski's judgement here.

I resorted to git blame config/v1/types_infrastructure.go and I can see that it was @EmilienM who initially implemented PlatformLoadBalancerType for all platforms as TechPreview (via https://github.com/openshift/api/commit/a660f602ae996671b2891825b4b0d8156658c66e#diff-07b264a49084976b670fb699badaca1795027d6ea732a99226a5388104f6174f / https://github.com/openshift/api/pull/1391). It has been hanging as TP for a year already, can you give your OK/NOK for promoting it?
Also cc @eurijon as you gave qe-approved to the TechPreview implementation.

For CI coverage: https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-shiftstack-shiftstack-ci-main-periodic-4.16-e2e-openstack-externallb/1760445181607284736
Yes the job is red, failing on pathological event should not see excessive Back-off restarting failed containers but other than that it's fine.

/lgtm
from the on-prem networking team lead. Most of the issues we've run into while testing this are related to the fact that it is tech preview in some places and GA in others. We have not found any issues specific to the VSphere or Baremetal platforms that would make us think it is not ready for GA there as well.

Can we get a QE ack and then I think we have all the relevant acks and can get this merged

Ping @eurijon please

Hello, I'm not sure how related is this to Openstack... we tested external LB functionality in 4.13 as TP and as GA starting in 4.14, by adding
    loadBalancer:
      type: UserManaged

to the install-config with platform: openstack

I'm not sure how related is this to Openstack

It's now the same feature but for people with platform: vsphere and so on

I'm not sure how related is this to Openstack

It's now the same feature but for people with platform: vsphere and so on

In that case please reach out to the vsphere team for providing the QE ACK

/hold
I'm trying to do pre-merge testing with this PR with vsphere, @mkowalski

with cluster-bot build openshift/machine-config-operator#4167,openshift/installer#8101,openshift/api#1757
pre-merge testing pass.
# oc get pod -n openshift-vsphere-infra
NAME                      READY   STATUS    RESTARTS   AGE
coredns-compute-0         2/2     Running   0          3h19m
coredns-compute-1         2/2     Running   0          3h19m
coredns-control-plane-0   2/2     Running   0          4h11m
coredns-control-plane-1   2/2     Running   0          4h10m
coredns-control-plane-2   2/2     Running   0          4h11m

# oc get co
NAME                                       VERSION                                                   AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE
authentication                             4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h10m
baremetal                                  4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h8m
cloud-controller-manager                   4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h12m
cloud-credential                           4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h13m
cluster-autoscaler                         4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h8m
config-operator                            4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h9m
console                                    4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h15m
control-plane-machine-set                  4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h8m
csi-snapshot-controller                    4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h9m
dns                                        4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h7m
etcd                                       4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h3m
image-registry                             4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h58m
ingress                                    4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h18m
insights                                   4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h2m
kube-apiserver                             4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h2m
kube-controller-manager                    4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h
kube-scheduler                             4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h1m
kube-storage-version-migrator              4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h55m
machine-api                                4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h4m
machine-approver                           4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h8m
machine-config                             4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h3m
marketplace                                4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h8m
monitoring                                 4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h16m
network                                    4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h9m
node-tuning                                4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h20m
openshift-apiserver                        4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h55m
openshift-controller-manager               4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h59m
openshift-samples                          4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h59m
operator-lifecycle-manager                 4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h8m
operator-lifecycle-manager-catalog         4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h8m
operator-lifecycle-manager-packageserver   4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h55m
service-ca                                 4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      4h9m
storage                                    4.15.0-0.ci.test-2024-03-07-041312-ci-ln-pb1jy6t-latest   True        False         False      3h55m

/unhold
/lgtm

/label qe-approved

/lgtm

/approve cancel
LMK when conflicts have been resolved and I'll double check and re-tag

/lgtm

Hey @JoelSpeed, can you relabel please? I did not run make update-codegen-crds correctly before

/hold cancel


nargo fmt ignores files

Aim
I tried to format noir protocol circuits.
Expected Behavior
nargo fmt formats all the files.
Bug
When I run nargo fmt in /yarn-project/noir-protocol-circuits/src of aztec-packages a lot of the files does not seem to get formatted.
E.g. this space does not get removed:

To Reproduce

Installation Method
Compiled from source
Nargo Version
noirc version = 0.20.0+0ad7ba520ef664e05138fda7966cc96e94b88d66
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response

@f01dab1e could you check this out?


Add profession to users model

Adding profession field to users model.
Creating test for profession field.
Changing tests name to be more meaningful.

fix #78 #75

@yulisuliman @MatanP12 @OmerCS8 @AlonShakaroff If we later want to quarry and sort the professions, I think we need to hold some sort of enum for professions (software engineer, account manager and product for example)

I think we discussed this, right now we don't want to use any premade enums or tags, the profession should be like the subtitle in linkedIn

@yulisuliman @MatanP12 @OmerCS8 @AlonShakaroff If we later want to quarry and sort the professions, I think we need to hold some sort of enum for professions (software engineer, account manager and product for example)

Yesterday at a zoom meeting we decided to do a free option for profession.

Did you check that the migrations test data work?

Yes :)


Check Python style

Currently /.travis.yaml calls https://github.com/PaddlePaddle/cloud/blob/develop/.tools/check_style.sh to check Go programs' style. We should also check Python style.

Add yapf hook to format python code.
Add copyright hook to insert copyright header to the source code.


AVM-Review-PR

Description

Type of Change

[ ] Non-module change (e.g. CI/CD, documentation, etc.)
[ ] Azure Verified Module updates:

[ ] Bugfix containing backwards compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in locals.version.tf.json:

[ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description.
[ ] The bug was found by the module author, and no one has opened an issue to report it yet.

[ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in locals.version.tf.json.
[ ] Breaking changes and I have bumped the MAJOR version in locals.version.tf.json.
[ ] Update to documentation

Checklist

[ ] I'm sure there are no other open Pull Requests for the same update/change
[ ] My corresponding pipelines / checks run clean and green without any errors or warnings
[ ] I did run all  pre-commit checks

Since databases are a child resource, please can you add a submodule to provision databases.
The submodule should take in the database resource id as a string and it can therefore be integrated into the parent module or used independently.
Similar with elastic pools and databases thereof.
This could be post initial release but we need to include this functionality

Created an issue for tracking, will look into post initial release

Created an issue for tracking, will look into post initial release

Created an issue for tracking, will look into post initial release

This is looking good, left a few comments to start with.
There does not appear to be an example for Entra ID auth, which I expect most users to default to now. I recall from experience that using Entra ID requires the running of a SQL command to grant permissions? I don't see that in the module? If the intention is not to include it, then we need a good end to end example with Entra ID auth. Something like this, although there may be a better way in 2024: https://github.com/jared-holgate-hashicorp/terraform-maples-resource_azure_sql_database_managed_identity/blob/main/main.tf

Created an issue for tracking, will look into post initial release


Overload with for temporary data grabs

Problem

Often when fetching data, using it temporarily. Why not using with context manager?
Requested feature

with load_some_data(...) as source:
   res = get(source, ...)

# Here, `source` gets dropped automatically. Saves memory

Alternatives considered

Additional context

Resolved with pydian.io module (SomeFile abstraction)!


Expose setJavaScript related APIs

These APIs include set/getJavaScriptEnabled, and
set/getJavaScriptCanOpenWindowsAutomatically.
In additation, this commit also correct some mistakes in
commit b4db96745c5114fc861df9411f1a15b18f6210dd.
BUG=XWALK-7080

@lincsoon please help review and merge, thanks


pluralize style -> styles

Final breaking change for the API. Changes .style() to .style(). Allows us to experiment in the future with splitting CSS bundles, and the like. Not sure what the approach would be, but allows for this to happen without breaking the API. Thanks!

cool! — merging :D


pubsub: How to subscribe to rabbitmq's dead letter queue?

Rabbitmq supports dead letter queues, but what about subscriptions?

Currently, it is not supported. Besides, there is a design for PubSub's DeadLetter Topic: dapr/dapr#2217.


Make primaryStage injectable CDI bean

Similar to (#53: Make javafx.application.HostServices injectable)

#87

Made it available through FxViewRepository


[choreolib-java] Add support for alliance being unknown to AutoRoutine/AutoFactory

I'm not the biggest fan of Optional; at that point, you might as well use Optional instead.


Question about RDS Devlake

Hi I'm trying to connect a MySQL RDS instance to use as the database in my docker-compose file for Devlake. It is not able to work though, can you guide me through the full setup.

version: "3"
services:
mysql:
image: mysql:8
volumes:
- mysql-storage:/var/lib/mysql
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
TZ: UTC
command: --character-set-server=utf8mb4
--collation-server=utf8mb4_bin
--skip-log-bin
grafana:
image: devlake.docker.scarf.sh/apache/devlake-dashboard:v1.0.0
ports:
- 3002:3000
volumes:
- grafana-storage:/var/lib/grafana
environment:
GF_SERVER_ROOT_URL: "http://localhost:4000/grafana"
GF_USERS_DEFAULT_THEME: "light"
MYSQL_URL: mysql:3306
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
TZ: UTC
restart: always
depends_on:
- mysql
devlake:
image: devlake.docker.scarf.sh/apache/devlake:v1.0.0
ports:
- 8080:8080
restart: always
volumes:
- devlake-log:/app/logs
env_file:
- ./.env
environment:
LOGGING_DIR: /app/logs
TZ: UTC
depends_on:
- mysql
config-ui:
image: devlake.docker.scarf.sh/apache/devlake-config-ui:v1.0.0
ports:
- 4000:4000
env_file:
- ./.env
environment:
DEVLAKE_ENDPOINT: devlake:8080
GRAFANA_ENDPOINT: grafana:3000
TZ: UTC
#ADMIN_USER: devlake
#ADMIN_PASS: merico
depends_on:
- devlake
volumes:
mysql-storage:
grafana-storage:
devlake-log:
~
This is my docker-compose file, I don't have the network options from ur first step

@dosu
How do I do the part where I set the character server? Right now I have everything except that
Don't forget to create db named lake in your own db, and set character-set-server=utf8mb4, collation-server=utf8mb4_bin as below
character-set-server=utf8mb4
collation-server=utf8mb4_bin

Lake Database Connection String
DB_URL=mysql://merico:merico@mysql:3306/lake?charset=utf8mb4&parseTime=True&loc=UTC
E2E_DB_URL=mysql://merico:merico@mysql:3306/lake_test?charset=utf8mb4&parseTime=True&loc=UTC
Silent Error Warn Info
DB_LOGGING_LEVEL=Error
Do I need to change both of these or just the first one in .env file

would it be the same url for both?

Im getting an error code 500 when I do docker-compose up -d now, do I need to reinstall devlake?

I have devlake deployed onto an ec2 instance, the rds database and ec2 are in same vpc, same subnet, do I need to configure additional security group rules?

@dosu which table will help me find github committs for a specific file in the database.

Where can I find the name of files that were updated in the pull_requests table of the database

@dosu
Where can I find the name of files that were updated in the pull_requests table of the database

@dosu
I don't see the pull_requests_files table in the database

@amokkapati  Try table commit_files.  And please submit a new issue for new questions.


Add Fuzzy Search Support using fuse.js

Have you read the Contributing Guidelines?
yes
Describe the solution you'd like
Integrate fuse.js for fuzzy search, allowing users to find results even with typos or variations in search terms.
Describe alternatives you've considered
Considering fuse.js as a decent library for fuzzy search.

Search is handled by the docusaurus algolia plugin.


privacy - make following/followers and lists logged in to view (at app level)

Once bluesky removes the walled garden -  am concerned people will log out - and still be able to 'easily' view users we follow/following to mass target. This concern is also added to custom lists.  This is a similar approach to twitter/instagram
Solution - make viewing follows/following and lists required to login to view (understandably this is only at the web/app level and not at the proto level)
This is one step to minimize harassment, and make it more difficult to target users/followers/following.
since profiles have not gone public yet - this may already be something you have planned,

I did see an interesting comment on bluesky I'll share - also potentially removing the usernames / pfps from
Comments when people view posts not logged in (not sure how possible this would be-
Could be an additional step to some privacy

now that this feature is live - I cant think of any use case where needing to know who someone is following is (easily) viewable while not logged in. (keep the follower numbers - great, but  not who the people are).
Just being able to do that additional step to minimize any bad actors from easily viewing follows i think is a huge step in the right direction.  hopefully this can normalize and set a standard for other apps to follow.
everything about the new update in regards to public profiles is perfect. i like that lists and feeds are hidden while public.  i like that people can see posts/media tab