Remove worker version

In PR https://github.com/huggingface/datasets-server/pull/916, job_runner_version new field was created in order to version JobRunner with int instead of string. Now that we have all the logic depending on the new field worker_version is no more needed.

Codecov Report
Patch coverage: 94.44% and project coverage change: +0.01 :tada:

Comparison is base (e24942d) 90.69% compared to head (84ed5f5) 90.70%.

:exclamation: Current head 84ed5f5 differs from pull request most recent head dc59df9. Consider uploading reports for the commit dc59df9 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #927      +/-   ##
==========================================
+ Coverage   90.69%   90.70%   +0.01%
==========================================
  Files         120      122       +2
  Lines        6585     6618      +33
==========================================
+ Hits         5972     6003      +31
- Misses        613      615       +2

Flag
Coverage Δ

jobs_mongodb_migration
79.20% <94.44%> (+0.97%)
:arrow_up:

libs_libcommon
93.48% <ø> (-0.01%)
:arrow_down:

services_admin
87.32% <ø> (ø)

services_api
91.74% <ø> (ø)

services_worker
92.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

libs/libcommon/src/libcommon/simple_cache.py
97.63% <ø> (-0.02%)
:arrow_down:

...ons/_20230313164200_cache_remove_worker_version.py
86.66% <86.66%> (ø)

...ngodb_migration/src/mongodb_migration/collector.py
100.00% <100.00%> (ø)

...est_20230309141600_cache_add_job_runner_version.py
100.00% <100.00%> (ø)

...test_20230313164200_cache_remove_worker_version.py
100.00% <100.00%> (ø)

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


getting started with node

So I know there is a getting started, but I still need help.
I am new to node.js and wanted to use lit-html, so I used npm to install it in my project. But I don't get it to work, do I need a require? Ultimately I want to use lit-html client-side, but how do I get there. When I writing html`<p>${foo}</p>` it throws the error html is not defined.
For the rest of the project all I'm doing is using express to use a website which is just some basic html.
Server-side:
const express = require('express'); const app = express(); app.listen(3000, () => console.log('listeing at 3000')); app.use(express.static('public'));

Check out lit-html & lit-element basics here: https://open-wc.org/codelabs/basics/lit-html.html
Regarding the development server, it is recommended to use es-dev-server which supports ES modules, and loads the polyfills / transpiles with Babel for older browsers if needed:
https://open-wc.org/developing/es-dev-server.html

Ok so right now I'm using import {html, render} from 'https://unpkg.com/lit-html?module'; but surely there must be a better way with in a project.

Does this section of the docs help? https://lit-html.polymer-project.org/guide/tools#dev-server
You need a static file server that resolves JS module specifiers. You can choose any one, polymer-cli and es-dev-server being the simplest to use, IMO.
cc @arthurevans

You can also look at using a tool such as rollup which will transform your source code into more optimized code that will run in the browser.
I prefer it as an approach because it's closer to what you'd actually deploy for a live site, esp. if you want it to be fast - you might just skip some steps while developing (such as minification).

BTW you can also use express-transform-bare-module-specifiers, that would allow to use
import {html, render} from 'lit-html';

At the same time, you would have to configure Babel or polyfills for older browsers yourself.


Update from Python 2.5

The Python 2.5 App Engine runtime will be disabled on May 16th. I will need to update it to Python 2.7, or maybe another language. I'm interested in trying Go actually...

I'd forgotten I had already done so.


sqlc generate invalid go querier code on mysql with uuid

Version
1.21.0
What happened?
I think I find the minimal example that trigger the issue
https://play.sqlc.dev/p/3f394572c6d70a7216ec7e62480985911ca70ad94ff72501fa19c23dc3700844
If I have a field named uuid, that is a varchar(36)
and I override all the columns *.uuid to use github.com/google/uuid.UUID
and I split model and querier files
and I have a query that uses more than one field (to force generate one composite struct type) and one of them is our uuid
it works fine with sqlc 1.20.0 but in the latest version
the generated code add an import on github.com/google/uuid.UUID in the querier, but it is not necessary on this specific file
and any validation such as go vet just point that we have an unused import
I am not sure if it happens with other databases or other types.
Relevant log output
$ go vet ./...
tutorial/models_sqlc.go:10:2: no required module provides package github.com/google/uuid; to add it:
	go get github.com/google/uuid

Database schema
CREATE TABLE authors (
  id   BIGINT  NOT NULL AUTO_INCREMENT PRIMARY KEY,
  name text    NOT NULL,
  bio  text,
  uuid varchar(36)
);

SQL queries
-- name: FindAuthor :one
SELECT * FROM authors
WHERE name = ? AND uuid = ? LIMIT 1;

Configuration
version: 2
overrides:
  go:
    overrides:
      - db_type: "json"
        go_type:
          type: "[]byte" # workaround sqlc bug when reading null json columns
        nullable: true
      - column: "*.uuid"
        go_type: "github.com/google/uuid.UUID"

sql:
  - engine: "mysql"
    queries: "query.sql"
    schema: "schema.sql"
    gen:
      go:
        package: "tutorial"
        out: "tutorial"
        emit_db_tags: true
        emit_prepared_queries: true
        emit_interface: true
        emit_exact_table_names: false
        emit_empty_slices: false
        emit_exported_queries: true
        emit_json_tags: true
        emit_params_struct_pointers: false
        emit_methods_with_db_argument: false
        emit_enum_valid_method: true
        emit_all_enum_values: true
        json_tags_case_style: "camel"
        output_files_suffix: "_sqlc"
        output_db_file_name: "db_sqlc.go"
        output_models_file_name: "models_sqlc.go"
        output_querier_file_name: "querier_sqlc.go"
        rename:
          uuid: "UUID"

Playground URL
https://play.sqlc.dev/p/3f394572c6d70a7216ec7e62480985911ca70ad94ff72501fa19c23dc3700844
It does not support latest sqlc yet, it seems to return http error 500
What operating system are you using?
Linux
What database engines are you using?
MySQL
What type of code are you generating?
Go

Ouch I think it is the same as https://github.com/sqlc-dev/sqlc/issues/2707

Yes I think this is resolved on main as of yesterday when we merged https://github.com/sqlc-dev/sqlc/pull/2709.
If you're able to go install @main and still see this issue please reopen.

Yes I confirm, with sqlc@main the issue is fixed

any change to release a v1.21.1 ?


chore: turn on merge queue

Added rulesets in the github settings so that PRs must pass green before merging.

LES GOOO


FileNotFoundError: [WinError 2] The system cannot find the file specified

i dont know why this problem is rising please give me solution. Following is the code
from PIL import Image
import pytesseract
print(pytesseract.image_to_string(Image.open('text.jpg')))
error: Traceback (most recent call last):
File "extract_text.py", line 3, in
print(pytesseract.image_to_string(Image.open('text.JPG')))
File "C:\Program Files (x86)\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 122, in image_to_string
config=config)
File "C:\Program Files (x86)\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 46, in run_tesseract
proc = subprocess.Popen(command, stderr=subprocess.PIPE)
File "C:\Program Files (x86)\Python36-32\lib\subprocess.py", line 707, in init
restore_signals, start_new_session)
File "C:\Program Files (x86)\Python36-32\lib\subprocess.py", line 990, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

I watched your demo-scan. It has the same wrong inversions as I have. The name of your pullrequest doesn't make sense.


[Doc:] Helidon MP Testing documentation

Helidon MP Testing documentation (according to the new documentation structure).
Path: /HelidonMP/Testing
Should include:

JUnit
TestNG (new material)

For each:

[x] Overview (may be reused from the current doc)
[x] Maven Dependency (may be reused)
[x] Usage (may be reused from the current docs)
[x] API (may be reused)
[x] Configuration (may be created)
[x] Reference (generated)
[x] Examples (may be reused from the current docs)
[x] Additional Information (if applicable)

Reopened for language review.

Comments on #4505


Rust: Allow downstream crates to choose TLS provider

Allow downstream crates to choose their own TLS provider.
Depends on https://github.com/pka/http-range-client/pull/9.
Currently, all downstream crates are forced into reqwest's default-tls because that's what http-range-client uses. This forces the use of openssl, which makes it harder to package for Python. I'd like to use rustls instead for a pure-Rust solution.

LGTM, @pka and @michaelkirk are you ok with it?

Do you have an example where you're using rustls?
I was expecting you'd need to plumb additional feature flags for each potential tod backend. Am I mistaken?

I was expecting you'd need to plumb additional feature flags for each potential tls backend. Am I mistaken?

No, I don't think so, because cargo will automatically merge feature flags. So if I separately depend on reqwest with a rustls feature, I think the unification will just work. In my case I'm also using object_store, which turns on the rustls feature flags itself: https://github.com/apache/arrow-rs/blob/c4dbf0d8af6ca5a19b8b2ea777da3c276807fc5e/object_store/Cargo.toml#L53
With the current flags, it requires downstream users to have openssl available, see https://github.com/geoarrow/geoarrow-rs/pull/950.

  I was overly conservative on how resolver=2 works.
I set up an example here to convince myself: http://github.com/michaelkirk/gh_fgb_404_feature_unification_example
Once https://github.com/pka/http-range-client/pull/9 is released, we can bump our min requirement here and merge this.

Temporarily using the latest main of http-range-client on this branch so I can test from geoarrow-rs.

I verified in https://github.com/geoarrow/geoarrow-rs/pull/950 that this change enables compilation in environments that don't have access to OpenSSL.
I think this also enables using the async Flatgeobuf reader in WebAssembly but haven't tested that yet.

Some years ago we integrated FGB into https://github.com/a-b-street/abstreet/blob/main/popdat/Cargo.toml - I think @dabreegster might have used it elsewhere too.
IIRC http, and (thus tls), is the responsibility of the transport layer - in this case reqwest, which ultimately calls out to the browser on wasm (again, IIRC).
It might be useful to some people to support non-browser / non-reqwest targets though.

I don't have an exact repro now, but I failed previously at getting async FlatGeobuf working in WebAssembly; I had only gotten sync parsing from a buffer.

IIRC http, and (thus tls), is the responsibility of the transport layer - in this case reqwest, which ultimately calls out to the browser on wasm (again, IIRC).
It might be useful to some people to support non-browser / non-reqwest wasm targets though.

To be clear, I don't use reqwest directly. I implement AsyncHttpRangeClient for ObjectStore, which lets me use ObjectStore to transparently read FlatGeobuf files on S3/GCS/Azure, etc. In normal server use, object_store happens to ultimately use reqwest under the hood to send the raw HTTP calls. But for other object_store reasons, object_store with the http feature doesn't compile for wasm today, so we have a separate implementation of the ObjectStore trait that works for S3 and HTTP files from Wasm.
This is nice because geoarrow only needs to use a single library's APIs for fetching remote files, whether it's in Python, Rust, or in Wasm.

http-range-client 0.9 has now been released, so this PR is unblocked.


Cherrypick: 35d867a790c2bcf2008b2ee1895ae8af2793b797

Commit:

llvm/llvm-project@35d867a790c2bcf2008b2ee1895ae8af2793b797

Why is this important or safe?
Clangd is unusable(crashes) in presence of pchs build with other compilers or any other version of clang. Also producing pchs while using clangd is again meaningless, as they won't be applicable to compiler nor clangd will know how to re-use them.
This patch fixes that issue by filtering any pch related command line flags.

The test is pretty trivial but depends on llvm/llvm-project@2dee4d44297220655786d3fddd471cdf99fa8e5a which is not, so I'm just going to drop the test.


position for barItems of left, right in navigation bar

mainController : tabbarcontroller contains navigationController
leftController:uiviewcontroller
login success  ---->  indexContainVC ( mainController + leftController)
then
the leftbarButtonItem of navigationController  shows to left side much more ,the rightbarButtonItem of navigationController shows to right side much more ,this appears in below ios11, but normal in iOS 11 or above
right:

wrong:

why?

Hi, @berained!
I have the same problem. Did you solve it?


FixedTruncatedWindowRateLimiter Check() does not work  correctly

	rateLimit := pacemaker.NewTokenFixedWindowRateLimiter(
		pacemaker.NewFixedTruncatedWindowRateLimiter(
			pacemaker.FixedTruncatedWindowArgs{
				Capacity: cfg.Capacity,
				Rate: pacemaker.Rate{
					Unit:   cfg.Rate.Unit,
					Amount: cfg.Rate.Amount,
				},
				Clock: cfg.Clock,
				DB: pacemaker.NewFixedWindowRedisStorage(
					cfg.RedisCli,
					pacemaker.FixedWindowRedisStorageOpts{
						Prefix: cfg.Bucket,
					},
				),
			},
		),
	)

	result, err := rateLimit.Try(context.Background(), 1)
	if err != nil {
		log.Errorf("error try: '%v'", err)
	}

	log.Debugf("Try Result: '%v'", result)

	result, err = rateLimit.Check(context.Background(), 1)
	if err != nil {
		log.Errorf("error try: '%v'", err)
	}

	log.Debugf("Check Result: '%v'", result)

$ go run examples/rate_limits/main.go
2022-11-04T12:48:03Z - DEBUG - {"service":"example"} - connected to redis
2022-11-04T12:48:03Z - DEBUG - {"service":"example"} - Try Result: '{0s 159990}'
2022-11-04T12:48:03Z - DEBUG - {"service":"example"} - Check Result: '{0s 159990}'
$ go run examples/rate_limits/main.go
2022-11-04T12:48:07Z - DEBUG - {"service":"example"} - connected to redis
2022-11-04T12:48:07Z - DEBUG - {"service":"example"} - Try Result: '{0s 159989}'
2022-11-04T12:48:07Z - DEBUG - {"service":"example"} - Check Result: '{0s 159989}'
$ go run examples/rate_limits/main.go
2022-11-04T12:48:24Z - DEBUG - {"service":"example"} - connected to redis
2022-11-04T12:48:24Z - DEBUG - {"service":"example"} - Try Result: '{0s 159988}'
$ go run examples/rate_limits/main.go
2022-11-04T12:48:42Z - DEBUG - {"service":"example"} - connected to redis
2022-11-04T12:48:42Z - DEBUG - {"service":"example"} - Check Result: '{0s 160000}'
$ go run examples/rate_limits/main.go
2022-11-04T12:48:45Z - DEBUG - {"service":"example"} - connected to redis
2022-11-04T12:48:45Z - DEBUG - {"service":"example"} - Check Result: '{0s 160000}'
$ go run examples/rate_limits/main.go
2022-11-04T12:49:03Z - DEBUG - {"service":"example"} - connected to redis
2022-11-04T12:49:03Z - DEBUG - {"service":"example"} - Try Result: '{0s 159987}'
2022-11-04T12:49:03Z - DEBUG - {"service":"example"} - Check Result: '{0s 159987}'

If we run both(try/check) the returned value by Check method is correct.
If we run only the check method, the returned value of Check methods is the capacity of the bucket instead of the remaining value.

Hi @RusEu , thanks for submitting such a detailed description of the issue.
After further consideration, it has been decided to add a new method Dump specifically used to retrieve rate limit state. This has been done because Check may perform early returns when rate limits have not been exceeded yet, being more optimal and performant as redis is never hit... as the contrary of Dump.
Checkout https://github.com/sonirico/pacemaker/pull/6


how to set the  batchsize when test

I can't fiind the 'batch_size'  setting in demo.py, how to set it when run demo.py

demo is used for batchsize=1


chore(unit-test): add tests to validate the Run logic

Signed-off-by: AmitKumarDas<EMAIL_ADDRESS>

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Disable Cosmos emulator test for PR validation

Failure in cosmos emulator test is blocking others. Disabling cosmos emulator test temporarily to unblock others.

Can one of the admins verify this patch?


Installed code as per front screen of your website but no configurator appears

Describe the bug
Installed code as per front screen of your website but no configurator appears and so it says site uses Cookies (like it does on your site but I can't choose which cookies to use)
To Reproduce
Steps to reproduce the behavior:

Go to your website or kubstaging2.kub-uk.net
Both display that the site uses Cookies but I can't select which ones to use
Scroll down to '....'
See error

Expected behavior
When I installed the code in the header I expected some configurator to appear which I could setup. I went to your website and clicked on the link to the wizard configurator and that took me to the home page again where the code is.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Mac and Windows
Browser Chrome/Edge/Safari

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
I am clearly missing something but I can't see what and your documentation doesn't seem to be working

For current version this as expected. There is no configurator built in. Maybe in a future version...

@peterjdickinson Thank you for reporting this issue. The configurator or 'wizard' generates a block of code for you to copy paste directly into your html file, but is not packaged with CookieConsent to keep the package size as small as possible.
Please find the configurator here: https://cookieconsent.osano.com/download/


Integration tests for read File from the Schema.

Add Integration tests for read File from the Schema.
Relates-To: OLPEDGE-1228.
Signed-off-by: Bautista, Iryna<EMAIL_ADDRESS>

Codecov Report

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

@@          Coverage Diff           @@
##           master    #123   +/-   ##
======================================
  Coverage    82.4%   82.4%
======================================
  Files          39      39
  Lines         787     787
  Branches      120     120
======================================
  Hits          649     649
  Misses        104     104
  Partials       34      34

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 dca2ae7...3c6f94e. Read the comment docs.


The "SET ROLE 'Postgres' "statement cannot be parsed

test code:
#[test]
    fn test_sql() {
        let dialect = PostgreSqlDialect {};

        let sql = "SET ROLE 'postgres'";
        Parser::parse_sql(&dialect, sql).unwrap();
    }

result:
called `Result::unwrap()` on an `Err` value: ParserError("Expected equals sign or TO, found: 'postgres'")
thread 'interceptor::pg::tests::test_sql' panicked at 'called `Result::unwrap()` on an `Err` value: ParserError("Expected equals sign or TO, found: 'postgres'")'

Thanks for the report @YJX051212 -- please feel free to submit a PR to fix this issue

Hi 👋, interesting in this topic.
I will follow this doc and raise a PR.
https://www.postgresql.org/docs/13/sql-set-role.html

Thanks @slhmy


Add Apache 2.0 license and related NOTICE file.

Adding the Apache 2.0 license and related NOTICE file.

Bump...
Any objection to adding the license and notice files?


Latest merge breaks installation

brew doctor output
N/A - Brew is not installing on a fresh system

Verification

[X] My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
[X] I ran brew update twice and am still able to reproduce my issue.
[X] This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output
N/A

What were you trying to do (and why)?
Install brew from fresh
What happened (include all command output)?
Installation failed:
==> Downloading and installing Homebrew...
HEAD is now at 1cf53b428 Merge pull request #14589 from MikeMcQuaid/api_auto_update_secs
Error: Failed to download formula.json!
Failed to download cask.json!
Failed during: /home/linuxbrew/.linuxbrew/bin/brew update --force --quiet

What did you expect to happen?
Installation should succeed.
Step-by-step reproduction instructions (by running brew commands)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

I am experiencing the same issue... Recently brew is not stable.

Can you post the output of:
curl --disable --fail --compressed --speed-limit 100 --speed-limit 5 --location --output /dev/null https://formulae.brew.sh/api/formula.json

❯ curl --disable --fail --compressed --speed-limit 100 --speed-limit 5 --location --output /dev/null https://formulae.brew.sh/api/formula.json
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3407k  100 3407k    0     0  13847      0  0:04:12  0:04:11  0:00:01  9735

Hmm not sure then if it's not erroring.
It does seem a bit slow, but some people are setting up mirrors (for example: https://github.com/tuna/issues/issues/1666) that may help you a bit there.

For my specific case I got a SSL and after digging a little I found the problem was related to Zscaler injecting itself in my connection, causing the Docker container running the curl command to get an unknown certificate.
Fixed by disabling zscaler and re-running the script. Not related to brew.
I apologize for the confusion.

Thanks for reporting back!
We should definitely improve the error output and I'll open a separate issue for that following 4.0.0.


Can't transfer tokens (ex. usdc) to another wallet

def send_spl_to_wallet(sender_privat_key, receiver_wallet, token_address, amount):
    sender_account_key = Keypair.from_secret_key(base58.b58decode(sender_privat_key))

    token_client = spl.token.client.Token(solana_client, PublicKey(token_address), TOKEN_PROGRAM_ID, sender_account_key)

    #* program_id - SPL-Token address; owner - SPL-Token account address; source - sender; dest - receiver;
    transaction = token_client.transfer(
        program_id = TOKEN_PROGRAM_ID,
        source=sender_account_key.public_key, # PK of token account you're transfering FROM
        dest=PublicKey(receiver_wallet), # PK of token account you're transfering TO
        owner=token_client.create_account(owner = sender_account_key.public_key), # Account that owns your source token account
        amount=int(amount*(10**9)),
        opts=TxOpts(skip_confirmation=False)
    )
    transaction_res = solana_client.send_transaction(transaction, sender_account_key)
    print(transaction_res)

ERROR:
solana.rpc.core.RPCException: {'code': -32002, 'message': 'Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.', 'data': {'accounts': None, 'err': 'AccountNotFound', 'logs': [], 'unitsConsumed': 0}}

Do you have SOL in the sender's wallet?

Do you have SOL in the sender's wallet?

~0.05 SOL

i did nothing with my code and now it's showing this error:
solana.rpc.core.RPCException: {'code': -32002, 'message': 'Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1', 'data': {'accounts': None, 'err': {'InstructionError': [0, {'Custom': 1}]}, 'logs': ['Program<PHONE_NUMBER>1111111111111111111111 invoke [1]', 'Transfer: insufficient lamports 944280, need 2039280', 'Program<PHONE_NUMBER>1111111111111111111111 failed: custom program error: 0x1'], 'unitsConsumed': 0}}

You need to create a token account for the sender.

can you send me link to the docs please?

https://michaelhly.github.io/solana-py/spl/token/client/#spl.token.client.Token.create_account

https://michaelhly.github.io/solana-py/spl/token/client/#spl.token.client.Token.create_account

lol i literally dont understand whats wrong
`sender_account_key = Keypair.from_secret_key(base58.b58decode(sender_privat_key))
token_client = spl.token.client.Token(solana_client, PublicKey(token_address), TOKEN_PROGRAM_ID, sender_account_key)
account = token_client.create_account(sender_account_key.public_key)
print(account)`
Error:
solana.rpc.core.RPCException: {'code': -32002, 'message': 'Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1', 'data': {'accounts': None, 'err': {'InstructionError': [0, {'Custom': 1}]}, 'logs': ['Program<PHONE_NUMBER>1111111111111111111111 invoke [1]', 'Transfer: insufficient lamports 944280, need 2039280', 'Program<PHONE_NUMBER>1111111111111111111111 failed: custom program error: 0x1'], 'unitsConsumed': 0}}

You need more SOL to pay for rent.

well, thank you firstly! but now a need to confirm transaction :) how can i do it?
solana.rpc.core.UnconfirmedTxError: Unable to confirm transaction

You need more SOL to pay for rent.

well, thank you firstly! but now a need to confirm transaction :) how can i do it?
solana.rpc.core.UnconfirmedTxError: Unable to confirm transaction

NVM, i can create Token account, i pay fee and after fee its showing me this error:
not enough signers
I think something wrong in  token_client.transfer params
sender_account_key = Keypair.from_secret_key(base58.b58decode(sender_privat_key))

    token_client = spl.token.client.Token(solana_client, PublicKey(token_address), TOKEN_PROGRAM_ID, sender_account_key)
    token_account = token_client.create_account(PublicKey(receiver_wallet))
    print(token_account)
    #* program_id - SPL-Token address; owner - SPL-Token account address; source - sender; dest - receiver;
    transaction = token_client.transfer(
        #program_id = TOKEN_PROGRAM_ID,
        source = sender_account_key.public_key,
        dest = token_account,
        owner = PublicKey(receiver_wallet),
        amount = amount,
        opts = TxOpts(skip_confirmation=False)
    )
    transaction_res = solana_client.send_transaction(transaction, sender_account_key)
    print(transaction_res)

owner should be sender_account_key.public_key not PublicKey(receiver_wallet)

PublicKey(receiver_wallet),

just changed it. Getting same error

if im changing dest = token_account to dest = PublicKey(receiver_wallet) i get solana.rpc.core.UnconfirmedTxError: Unable to confirm transaction 2qUQciut3jL5zdDVes4biiL9efUJWSP2jMfvLHEDeD7R7wp2v8H2mJbR1pZHbtq8trJeSjq3bP2aSzVz62omJrnC

This transaction worked: https://explorer.solana.com/tx/2qUQciut3jL5zdDVes4biiL9efUJWSP2jMfvLHEDeD7R7wp2v8H2mJbR1pZHbtq8trJeSjq3bP2aSzVz62omJrnC
Sometimes your RPC endpoint will have trouble confirming you can skip the tx confirmation with this option:
https://michaelhly.github.io/solana-py/rpc/types/#solana.rpc.types.TxOpts.skip_confirmation

This transaction worked: https://explorer.solana.com/tx/2qUQciut3jL5zdDVes4biiL9efUJWSP2jMfvLHEDeD7R7wp2v8H2mJbR1pZHbtq8trJeSjq3bP2aSzVz62omJrnC
Sometimes your RPC endpoint will have trouble confirming you can skip the tx confirmation with this option: https://michaelhly.github.io/solana-py/rpc/types/#solana.rpc.types.TxOpts.skip_confirmation

got it, fee is sending, tokens are sending, but after this it ends with error from send_transaction() function:
transaction_res = solana_client.send_transaction(transaction, sender_account_key)
error
transaction_res = solana_client.send_transaction(transaction, sender_account_key)
  File "C:\Users\*\AppData\Roaming\Python\Python310\site-packages\solana\rpc\api.py", line 1380, in send_transaction
    txn.recent_blockhash = recent_blockhash
AttributeError: 'dict' object has no attribute 'recent_blockhash'

When this happen every time or occasionally?


Upgrade old packages scanned from snyk

Description
Old packages with possible vulnerabilities are upgraded. (as tested on snyk.io)
Related issues

Fixes https://github.com/celo-org/celo-labs/issues/3

Tested
Ran local unit tests.
Backwards compatibility
yarn resolutions is used to upgrade the versions, since some vulnerable versions(with new bugs) are still being used in public libraries.

The packages were tested locally and after deploying:
deploy: verification-pool-api and faucet and blockchain-api
celotool: local testing
mobile: local app testing

The faucet is tested and working.

Tested with integration network:
deploy: verification-pool-api and faucet and blockchain-api
celotool: local testing
mobile: local app testing with faucet from local web


Update ci

Please makes sure these boxes are checked before submitting your PR, thank you!

[ ] Make sure you follow Element's Contributing Guide.
[ ] Rebase before creating a PR to keep commit history clear.
[ ] Add some descriptions and refer relative issues for you PR.

dev site
目录与 branch 同步，例如 master 的分支访问就是 site/master/#/
site
目录与 minor 版本同步，例如 1.1.1 访问就是 site/1.1/#/ 同时根域名访问的永远是最新的
theme-default
分支与主仓库同步
lib
无更改

凭感觉写的 但愿一次成功 🌚


Transformer Question, and Request

Learning PyTorch and love your videos. Your code is so clean and your explanations so crisp.
Question/Bug?:
In SelfAttention you split values, keys, and query by the number of heads.  Then pass this into Linear with same input  and output dimension. Why not keep the full dimension (ie: not split) and let the Linear do the reduction?
This would allow linear to learn what to take out of the input rather?
btw, https://github.com/tunz/transformer-pytorch/blob/master/model/transformer.py, class MultiHeadAttention(nn.Module) does this (if I interpret their code correctly).
The paper https://arxiv.org/pdf/1706.03762.pdf indicates "learned
linear projections to dk, dk and dv dimensions".
If I'm all wrong, would love to be corrected as I learning.
If I'm right, would also love to know that I'm starting to understand this stuff.
Request:
Starting to understand torch.einsum power but I am sure I am missing a bunch.
Can you do a video on this?
Regards,
John

You bring up a great point! There was another question regarding this on the video I made, where my answer was:

Hey, thank you so much for bringing this to my attention ;) When reading through the paper I get the same idea that you do, namely that each head should have separate weights, and when reading blog posts like "The Annotated Transformer" he has done exactly what you describe. From the blog post http://www.peterbloem.nl/blog/transformers he explains narrow vs wide self attention and in his Github implementation he does similarly as I do, however I noticed now that an issue has been raised regarding the same issue you bring up: https://github.com/pbloem/former/issues/13. I agree with the point brought up there also, if each head is using same weights it doesn't feel like you can say they are different. I'm having difficulty finding other implementations, but I will keep a close look at this and if I get some more time I will try to spend more time and investigate this. I'm also a bit surprised that when training on this implementation it provides good results if I remember correctly with only 3x32x32 vs 3x256x256 parameters.

The implementations I've looked at does similarly as the code you referenced and I also believe this is more correct, although the way we've done it also seems to work. Maybe you can do a PR on this?
Great idea regarding einsum, will start working on it :)

Thanks for the response.  I will do some experiments and let you know if it helps.

Let me know what you find! Video on einsum is done now too :+1:

I watched it as soon as the notification popped up. Excellent video. You have a talent for presenting information efficiently.
Sent via the Samsung Galaxy S7 edge, an AT&T 4G LTE smartphone
-------- Original message --------
From: Aladdin Persson<EMAIL_ADDRESS>Date: 7/18/20 11:29 AM (GMT-06:00)
To: AladdinPerzon/Machine-Learning-Collection<EMAIL_ADDRESS>Cc: johngrabner<EMAIL_ADDRESS>State change<EMAIL_ADDRESS>Subject: Re: [AladdinPerzon/Machine-Learning-Collection] Transformer Question, and Request (#3)
Let me know what you find! Video on einsum is done now too 👍
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAladdinPerzon%2FMachine-Learning-Collection%2Fissues%2F3%23issuecomment-660506975&data=02|01||414ee945c63344691e4308d82b37be93|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637306865699236117&sdata=GyGITT9xa%2F3ZTA5Ml6DL87n2l9DPfjJ2w2Nk4OBG6%2B8%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAB6UHBP7DUM65YDG3LKCRVLR4HEWRANCNFSM4O2UPYUQ&data=02|01||414ee945c63344691e4308d82b37be93|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637306865699246116&sdata=%2B2lUaVKkcgxrW%2Fp63uNzD4SpYqBoDTiBzByl1pRvzAE%3D&reserved=0.


untrunc-anthwlock: init at 2020.07.18

Motivation for this change
Add anthwlock/untrunc.

Restore a damaged (truncated) mp4, m4v, mov, 3gp video. Provided you have a similar not broken video. And some luck.

This is an improved version of ponchio/untrunc.
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"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/240


add vdbench pod

Add vdbench pod data

We dont want to hold vdbench source inside repository. add readme to the source