refactor(shwap): Extract eds interface

Reintroduce file interface as eds interface. Change aims to allow usage of EDS interface outside of storage package and to be high level interface of EDS methods.
Renames of eds interface methods to align with returned shwap types names

Share() -> Sample
Data -> Row data

Extracts New<shwap_type_name>FromEDS functions to eds file methods

moves associated tests to eds pkg

Additional refactoring:

Change Interface Name: Realized that 'EDS' is a terrible name for an interface. Renamed eds.EDS to eds.Accessor to more accurately reflect its functionality rather than its internal content.

Separate Closer: Extracted Closer from Accessor. Now it is available in a new composite interface AccessorCloser.

Rename InMem: Renamed InMem to rsmt2d to better align with its usage.

Decouple NamespacedData: Separated NamespacedData from the rsmt2d implementation. It is now a standalone function.

Update EDS Method: Replaced the EDS() method with Flattened, similar to rsmt2d. Considered introducing two separate methods, Flattened and FlattenedODS, with the latter to be potentially added later. Proposed to park this suggestion in an issue for future consideration.

Codecov Report
Attention: Patch coverage is 54.54545% with 5 lines in your changes are missing coverage. Please review.

Please upload report for BASE (shwap@9e82fd6). Learn more about missing BASE report.

Files
Patch %
Lines

share/new_eds/in_mem.go
54.54%
5 Missing :warning:

Additional details and impacted files
@@           Coverage Diff            @@
##             shwap    #3452   +/-   ##
========================================
  Coverage         ?   43.52%
========================================
  Files            ?      285
  Lines            ?    16477
  Branches         ?        0
========================================
  Hits             ?     7172
  Misses           ?     8469
  Partials         ?      836

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

Drafting until we migrate some funcs over EDS interface

I've applied review suggestions in https://github.com/celestiaorg/celestia-node/pull/3452/commits/46daf1359200898f036760db5c0613e6857dcc34 and listed what changed in PR description in Additional refactoring section.


drivers: spi: stm32h7 Fix SPI DMA 16 bits frames

This is a proposal to add tests for 16 bits frames with DMA. These tests have revealed 2 problems:

16 bits frames DMA seems to not work (the 16 bits frames tests don't pass). The driver doesn't update buffer pointers correctly, it only updates them as if the frame size was always 8 bits.
The driver uses an internal buffer to send zeroes when tx is finished or NULL, and to dump data from rx when the rx buffer is finished or NULL. The problem is that this buffer is not in a nocache area, os its value is not necessarily zero for DMA. This is visible only in the 16 bits tests (not the 8 bits ones), and makes DMA to fail.

This fixes the problem mentioned in #61904
This PR also simplifies the test source code (spi.c) by removing specific SPI configurations in it in favor of configuration files such as *.conf, *.overlay and testcase.yaml.
Test plan
Connect an STM32H7 board to the PC with pins D11 and D12 connected.
Open a minicom or equivalent terminal to read the test report.
Execute the following commands:
rm -rf ~/zephyrproject/zephyr/build
west build -p auto -b nucleo_h753zi -T tests/drivers/spi/spi_loopback/drivers.spi.stm32_spi_dma.loopback
west flash

rm -rf ~/zephyrproject/zephyr/build
west build -p auto -b nucleo_h753zi -T tests/drivers/spi/spi_loopback/drivers.spi.stm32_spi_16bits_frames_dma.loopback
west flash

And verify all tests pass.

Also please split at least the code vs tests changes (mainly in order to avoid issues if test changes have impact on other platforms)

Done

I've run twister tests on tests/drivers/spi and tests/drivers/spi/spi_loopback/drivers.spi.stm32_spi_dma_no_nocache.loopback, nucleo_h743zi  is reported failed. Can you have a check ?

I've run them locally and they pass. This is exactly what I am doing:
rm -rf ~/zephyrproject/zephyr/build
west build -p auto -b nucleo_h753zi -T tests/drivers/spi/spi_loopback/drivers.spi.stm32_spi_dma_no_nocache.loopback
west flash

Could you provide the exact command you run, please?

I'm running twister on our bench:
twister --ninja --runtime-artifact-cleanup -e logging -e cmsis_dsp -T tests/drivers/spi --hardware-map <path>/../map.yaml --device-testing --outdir <path>
Here is the log:
*** Booting Zephyr OS build zephyr-v3.4.0-3629-gf049ac191657 ***
Running TESTSUITE spi_loopback
===================================================================
START - test_spi_loopback
I: SPI test on buffers TX/RX 0x300200a0/0x30020080, frame size = 8, DMA enabled (without CONFIG_NOCACHE_MEMORY)
I: SPI test slow config
I: Start complete multiple
E: Code -14
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/spi/spi_loopback/src/spi.c:130: spi_complete_multiple: (ret is true)
SPI transceive failed
FAIL - test_spi_loopback in 0.029 seconds
===================================================================
TESTSUITE spi_loopback failed.
------ TESTSUITE SUMMARY START ------
SUITE FAIL -   0.00% [spi_loopback]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.029 seconds
- FAIL - [spi_loopback.test_spi_loopback] duration = 0.029 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
RunID: 0e307fc99387fa5a6cab18de64a59ae0
PROJECT EXECUTION FAILED

Not sure how to exec. that command in my machine; I don't have a map file to provide to --hardware-map. Is there any other way to indicate twister how to flash the result binaries? I do it with west flash.

Not sure how to exec. that command in my machine; I don't have a map file to provide to --hardware-map. Is there any other way to indicate twister how to flash the result binaries? I do it with west flash.

I don't think you should too much care about the map file, it's just a way to route the test to the correct board.
You could use --device-testing --device-serial /dev/ttyACM0 -p board-name

Thanks.
This is the result I obtain:
$ west twister --ninja --runtime-artifact-cleanup -e logging -e cmsis_dsp -T tests/drivers/spi --device-serial /dev/ttyACM0 --device-testing -p nucleo_h753zi --outdir outdir

INFO    - Using Ninja..
INFO    - Zephyr version: zephyr-v3.4.0-3629-gf049ac191657
INFO    - Using 'zephyr' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report outdir/testplan.json

Device testing on:

| Platform      | ID   | Serial device   |
|---------------|------|-----------------|
| nucleo_h753zi |      | /dev/ttyACM0    |

INFO    - JOBS: 12
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
INFO    - Total complete:   18/  18  100%  skipped:   17, failed:    0, error:    0
INFO    - 18 test scenarios (18 test instances) selected, 17 configurations skipped (17 by static filter, 0 at runtime).
INFO    - 1 of 18 test configurations passed (100.00%), 0 failed, 0 errored, 17 skipped with 0 warnings in 14.20 seconds
INFO    - In total 1 test cases were executed, 34 skipped on 1 out of total 615 platforms (0.16%)
INFO    - 1 test configurations executed on platforms, 0 test configurations were only built.

Hardware distribution summary:

| Board         | ID   |   Counter |
|---------------|------|-----------|
| nucleo_h753zi |      |         1 |
INFO    - Saving reports...
INFO    - Writing JSON report /home/danielgo/zephyrproject/zephyr/outdir/twister.json
INFO    - Writing xunit report /home/danielgo/zephyrproject/zephyr/outdir/twister.xml...
INFO    - Writing xunit report /home/danielgo/zephyrproject/zephyr/outdir/twister_report.xml...
INFO    - Run completed

It seems to pass, am I wrong?

It seems to pass, am I wrong?

Right. Can it come from a configuration difference between 2 the targets ?

Right. Can it come from a configuration difference between 2 the targets ?

Yes, it's that. I miss adding this:
&sram2 {
	zephyr,memory-attr = "RAM_NOCACHE";
};

To the H743 overlay file, thanks.
It should pass your test bench now I believe.

It should pass your test bench now I believe.

I confirm

The memory management subsystem has been merged and so the way of detecting when a pointer is in a nocache area. Thus, I have needed to add a new commit to adapt the SPI driver to this situation @erwango


After following quick start steps: Unexpected end of JSON input     at JSON.parse ()

Expected Behavior
a demo
Actual Behavior
Unexpected end of JSON input
at JSON.parse ()
at fs.readFile (/Users/JJ/Desktop/AutoTests/index.js:30:38)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:528:3)
Steps to Reproduce the Problem

follow all steps at: https://developers.google.com/gmail/api/quickstart/nodejs

@Jtech42 This means that the credentials.json is corrupt.

Can you check if the file is correct?
Can you delete the file and try running the sample again?

The JSON.parse error should be a problem with the JSON file.
Closing due to inactivity. Comment here if you want me to re-open this issue.


payments: api call for getting payment providers with currency conversion ratios

Per payment provider we need to be able to define multiple currencies. Per currency, an object should be returned to the client. These will be used to show a list of options that can be used to pay when paying via the pay widget
properties:

logo_url
provider_id
currency
amount
precision
embedded_app

On the payment provider db model we should store a conversion ratio (base currency is euro)

related feature: https://github.com/rogerthat-platform/rogerthat-backend/issues/450


Compatibility with chess library

There is another chess library https://github.com/niklasf/python-chess (aka chess) in existence, and it's popular and actively supported.  It also can integrate with Stockfish:
import chess
import chess.engine

STOCKFISH_PATH = "/opt/homebrew/bin/stockfish"

board = chess.Board()

engine = chess.engine.SimpleEngine.popen_uci(STOCKFISH_PATH)
engine.configure({"UCI_LimitStrength": True, "UCI_Elo": 1600})
result = engine.play(board, limit=chess.engine.Limit(time=0.1))
board.push(result.move)

There is no acknowledgement of chess in the README.md or issue tracker, from what I can see.
This is an open-ended ticket sort of about:

Acknowledging the existence of chess -- what makes this library different or better?

For example, I like your benchmarking support, and more complete wrapper

Possibly make this package compatible with chess such that it can (1) accept chess.Board and pass to Stockfish, or (2) take a board from Stockfish and pass to a chess.Board.  A MVP solution could be to use Forsyth–Edwards Notation:

import chess
from stockfish import Stockfish

STOCKFISH_PATH = "/opt/homebrew/bin/stockfish"

stockfish = Stockfish(path=STOCKFISH_PATH)
board = chess.Board()
stockfish.set_fen_position(fen_position=board.fen())

Hello, this project is no longer maintained in this repo but on this fork. (For more information about this please look here).
Since this issue has no comments, it should be quite easy to copy the content and title into a new issue over there. (For more specific information on that, look here).
This makes it easier for us to keep track of things, and it's more convenient because we then have the issues right where they are being worked on. So please create a new issue in the new repo and then close this one. Thank you!

Okay I see, thank you @kieferro!  I have migrated the issue to https://github.com/py-stockfish/stockfish/issues/6.


Code Generator seems broken

This is the code I get for a popup:
<!-- meetergo widget start --><script>
    window.meetergoSettings = {
      floatingButton: {
        position: "top-left",
        text: Book a meeting,
        link: https://my.meetergo.com/form/f72cdcb2-.[REDACTED],
        backgroundColor: #3182CE,
        textColor: #FFFFFF
      },
    };
  </script><!-- meetergo widget end -->

As you can see the text, link, etc. don't contain proper string markup. So it should be:
        text: "Book a meeting",

Also the async script tag is missing completely:
<script
  async
  src="https://cdn.jsdelivr.net/gh/meetergo/meetergo-integration/dist/esbuild/browser.js"
></script>

Thank you for submitting the issue.
We appreciate your effort in bringing this to our attention.
This will be fixed with the next release/deploy.


Write panic file on Error

When abortOnError is enabled, Slic should write a panic file on the given rank that emits the error before calling MPI_Abort()
We need an example of how to use this in Axom documentation.

Check whether scallop has a reasonable solution. If so, adopt it.

Let's revisit if/when needed.


Supabase: db error: ERROR: unexpected response from login query

Bug description
I am getting  db error: ERROR: unexpected response from login query when try to use supabase as database. This only happens when accessing an external database, while testing with a local database under docker worked perfectly.
How to reproduce

Go to Supabase
Create or login account
Create an project
Go to Database > Connection Pooling
Scroll to bottom and copy Connection string
Replace DATABASE_URL in environment variable
Run npx prisma migrate dev
See error

Expected behavior
Prisma CLI executes the given commands without any error
Prisma information
datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

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

model User {
  id   Int     @id @default(autoincrement())
  username String?
}

Environment & setup
// .env
DATABASE_URL="postgresql://XXXX:XXXX@XXX.supabase.co:6543/XXX?pbbouncer=true"

Prisma Version
prisma                  : 3.1.1
@prisma/client          : 3.1.1
Current platform        : debian-openssl-1.1.x
Query Engine (Node-API) : libquery-engine c22652b7e418506fab23052d569b85d3aec4883f (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli c22652b7e418506fab23052d569b85d3aec4883f (at<EMAIL_ADDRESS>Introspection Engine    : introspection-core c22652b7e418506fab23052d569b85d3aec4883f (at<EMAIL_ADDRESS>Format Binary           : prisma-fmt c22652b7e418506fab23052d569b85d3aec4883f (at<EMAIL_ADDRESS>Default Engines Hash    : c22652b7e418506fab23052d569b85d3aec4883f
Studio                  : 0.423.0

What steps do I have to follow on Supabase to reproduce this?

Can you try the other connection string that Supabase gives you under Settings -> Database -> Connection String?
We know this is pretty confusing, but can't really think of a way to nicely surface this information when you use Prisma with the wrong (pooled) connection string to run Prisma Migrate.

Sorry for late. Yes pooled and direct connection under (Settings -> Database), connected bot working also.
Timeout ready issue I think from supabase during migration

I am not sure I follow. Are you saying that with the direct connection (and without adding pgbouncer=true to that connection string), you are also getting the same error?

I am not sure I follow. Are you saying that with the direct connection (and without adding pgbouncer=true to that connection string), you are also getting the same error?

Not sale error, but migration progression failed due to supabase Timeout.
I will attach screenshoot tonight

Can you try the other connection string that Supabase gives you under Settings -> Database -> Connection String?
We know this is pretty confusing, but can't really think of a way to nicely surface this information when you use Prisma with the wrong (pooled) connection string to run Prisma Migrate.

This helped me to resolve the issue!
Many thanks!
Migration works on the port 5432, but doesn't work on 6543

Hello! I also get this error!

I use the connection string from Settings > Database > Connection Pooling

Does it work if you use the other connection string under the "Connection string" section @0xrasla? (Then obviously without ?pgbouncer=true added at the end of the connection string.

More logging:
PS C:\Users\Jan\Documents\throwaway\9576> $env:RUST_LOG="debug"
PS C:\Users\Jan\Documents\throwaway\9576> echo '{"jsonrpc":"2.0","id":"1","method":"devDiagnostic","params":{"migrationsDirectoryPath":"./migrations"}}' | C:\Users\Jan\Documents\throwaway\9576<EMAIL_ADDRESS>-d prisma/schema.prisma
{"timestamp":"2022-06-20T16:21:40.6340659Z","level":"INFO","fields":{"message":"Starting migration engine RPC server","git_hash":"461d6a05159055555eb7dfb337c9fb271cbd4d7e"},"target":"migration_engine"}
{"timestamp":"2022-06-20T16:21:40.6348336Z","level":"DEBUG","fields":{"message":"running the command","cmd":"\"devDiagnostic\""},"target":"migration_core::rpc"}
{"timestamp":"2022-06-20T16:21:40.6369381Z","level":"DEBUG","fields":{"message":"Diagnosing migration history"},"target":"migration_core::commands::diagnose_migration_history","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:41.8006065Z","level":"DEBUG","fields":{"query":"SELECT EXISTS(SELECT 1 FROM pg_namespace WHERE nspname = $1), version()","params":"[\"public\"]","result":"success","item_type":"query","is_query":true,"duration_ms":246},"target":"quaint::connector::metrics","span":{"name":"list_migrations"},"spans":[{"name":"DevDiagnostic"},{"name":"list_migrations"}]}
{"timestamp":"2022-06-20T16:21:42.0146561Z","level":"DEBUG","fields":{"query":"SELECT \"id\", \"checksum\", \"finished_at\", \"migration_name\", \"logs\", \"rolled_back_at\", \"started_at\", \"applied_steps_count\" FROM \"_prisma_migrations\" ORDER BY \"started_at\" ASC","params":"[]","result":"success","item_type":"query","is_query":true,"duration_ms":212},"target":"quaint::connector::metrics","span":{"name":"list_migrations"},"spans":[{"name":"DevDiagnostic"},{"name":"list_migrations"}]}
{"timestamp":"2022-06-20T16:21:42.0151582Z","level":"DEBUG","fields":{"message":"Found 0 migrations in the migrations table."},"target":"sql_migration_connector::sql_migration_persistence","span":{"name":"list_migrations"},"spans":[{"name":"DevDiagnostic"},{"name":"list_migrations"}]}
{"timestamp":"2022-06-20T16:21:42.2054975Z","level":"DEBUG","fields":{"query":"CREATE DATABASE \"prisma_migrate_shadow_db_e6968c24-3408-4402-84a8-d5bdd6f19acf\"","params":"[]","result":"success","item_type":"query","is_query":true,"duration_ms":189},"target":"quaint::connector::metrics","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:42.205943Z","level":"DEBUG","fields":{"message":"Connecting to shadow database `prisma_migrate_shadow_db_e6968c24-3408-4402-84a8-d5bdd6f19acf`"},"target":"sql_migration_connector::flavour::postgres","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:42.9720181Z","level":"DEBUG","fields":{"query":" SELECT table_name as table_name FROM information_schema.tables WHERE table_schema = $1 -- Views are not supported yet AND table_type = 'BASE TABLE' ORDER BY table_name","params":"[\"public\"]","result":"success","item_type":"query","is_query":true,"duration_ms":214},"target":"quaint::connector::metrics","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:43.1971752Z","level":"DEBUG","fields":{"query":" SELECT sequence_name, start_value::INT8, minimum_value::INT8 AS min_value, maximum_value::INT8 AS max_value, increment::INT8 AS increment_by, (CASE cycle_option WHEN 'yes' THEN TRUE ELSE FALSE END) AS cycle, 0::INT8 AS cache_size FROM information_schema.sequences WHERE sequence_schema = $1 ORDER BY sequence_name ","params":"[\"public\"]","result":"success","item_type":"query","is_query":true,"duration_ms":224},"target":"quaint::connector::metrics","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:43.4246882Z","level":"DEBUG","fields":{"query":" SELECT t.typname as name, e.enumlabel as value FROM pg_type t JOIN pg_enum e ON t.oid = e.enumtypid JOIN pg_catalog.pg_namespace n ON n.oid = t.typnamespace WHERE n.nspname = $1 ORDER BY e.enumsortorder","params":"[\"public\"]","result":"success","item_type":"query","is_query":true,"duration_ms":226},"target":"quaint::connector::metrics","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:43.6627913Z","level":"DEBUG","fields":{"query":" SELECT info.table_name, info.column_name, format_type(att.atttypid, att.atttypmod) as formatted_type, info.numeric_precision, info.numeric_scale, info.numeric_precision_radi, info.datetime_precision, info.data_type, info.udt_name as full_data_type, info.column_default, info.is_nullable, info.is_identity, info.data_type, info.character_maximum_length FROM information_schema.columns info JOIN pg_attribute att on att.attname = info.column_name AND att.attrelid = ( \tSELECT pg_class.oid \tFROM pg_class \tJOIN pg_namespace on pg_namespace.oid = pg_class.relnamespace \tWHERE relname = info.table_name \tAND pg_namespace.nspname = $1 ) WHERE table_schema = $1 ORDER BY ordinal_position; ","params":"[\"public\"]","result":"success","item_type":"query","is_query":true,"duration_ms":237},"target":"quaint::connector::metrics","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:43.8826244Z","level":"DEBUG","fields":{"query":" SELECT con.oid as \"con_id\", att2.attname as \"child_column\", cl.relname as \"parent_table\", att.attname as \"parent_column\", con.confdeltype, con.confupdtype, rel_ns.nspname as \"referenced_schema_name\", conname as constraint_name, child, parent, table_name FROM (SELECT unnest(con1.conkey) as \"parent\", unnest(con1.confkey) as \"child\", cl.relname AS table_name, ns.nspname AS schema_name, generate_subscripts(con1.conkey, 1) AS colidx, con1.oid, con1.confrelid, con1.conrelid, con1.conname, con1.confdeltype, con1.confupdtype FROM pg_class cl join pg_constraint con1 on con1.conrelid = cl.oid join pg_namespace ns on cl.relnamespace = ns.oid WHERE ns.nspname = $1 and con1.contype = 'f' ORDER BY colidx ) con JOIN pg_attribute att on att.attrelid = con.confrelid and att.attnum = con.child JOIN pg_class cl on cl.oid = con.confrelid JOIN pg_attribute att2 on att2.attrelid = con.conrelid and att2.attnum = con.parent JOIN pg_class rel_cl on con.confrelid = rel_cl.oid JOIN pg_namespace rel_ns on rel_cl.relnamespace = rel_ns.oid ORDER BY con_id, con.colidx; ","params":"[\"public\"]","result":"success","item_type":"query","is_query":true,"duration_ms":218},"target":"quaint::connector::metrics","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:44.1080415Z","level":"DEBUG","fields":{"query":" SELECT indexinfos.relname AS name, columnInfos.attname AS column_name, rawIndex.indisunique AS is_unique, rawIndex.indisprimary AS is_primary_key, tableInfos.relname AS table_name, indexAccess.amname AS index_algo, rawIndex.indkeyidx, rawIndex.opclass AS opclass, rawIndex.opcdefault AS opcdefault, CASE rawIndex.sort_order & 1 WHEN 1 THEN 'DESC' ELSE 'ASC' END AS column_order FROM -- pg_class stores infos about tables, indices etc: https://www.postgresql.org/docs/current/catalog-pg-class.html pg_class tableInfos, pg_class indexInfos, -- pg_index stores indices: https://www.postgresql.org/docs/current/catalog-pg-index.html ( SELECT i.indrelid, i.indexrelid, i.indisunique, i.indisprimary, i.indkey, opc.opcname opclass, opc.opcdefault opcdefault, o.OPTION AS sort_order, c.colnum AS sort_order_colnum, generate_subscripts(i.indkey, 1) AS indkeyidx FROM pg_index i CROSS JOIN LATERAL UNNEST(indkey) WITH ordinality AS c (colnum, ordinality) LEFT JOIN LATERAL UNNEST(indclass) WITH ordinality AS p (opcoid, ordinality) ON c.ordinality = p.ordinality LEFT JOIN LATERAL UNNEST(indoption) WITH ordinality AS o (OPTION, ordinality) ON c.ordinality = o.ordinality LEFT JOIN pg_opclass opc ON opc.oid = p.opcoid WHERE i.indpred IS NULL GROUP BY i.indrelid, i.indexrelid, i.indisunique, i.indisprimary, indkeyidx, i.indkey, i.indoption, opc.opcname, sort_order, sort_order_colnum, opc.opcdefault ORDER BY i.indrelid, i.indexrelid ) rawIndex, -- pg_attribute stores infos about columns: https://www.postgresql.org/docs/current/catalog-pg-attribute.html pg_attribute columnInfos, -- pg_namespace stores info about the schema pg_namespace schemaInfo, -- index access methods: https://www.postgresql.org/docs/9.3/catalog-pg-am.html pg_am indexAccess WHERE -- find table info for index tableInfos.oid = rawIndex.indrelid -- find index info AND indexInfos.oid = rawIndex.indexrelid -- find table columns AND columnInfos.attrelid = tableInfos.oid AND columnInfos.attnum = rawIndex.indkey[rawIndex.indkeyidx] -- we only consider ordinary tables AND tableInfos.relkind = 'r' -- we only consider stuff out of one specific schema AND tableInfos.relnamespace = schemaInfo.oid AND schemaInfo.nspname = $1 AND rawIndex.sort_order_colnum = columnInfos.attnum AND indexAccess.oid = indexInfos.relam GROUP BY tableInfos.relname, indexInfos.relname, rawIndex.indisunique, rawIndex.indisprimary, columnInfos.attname, rawIndex.indkeyidx, column_order, index_algo, opclass, opcdefault ORDER BY rawIndex.indkeyidx; ","params":"[\"public\"]","result":"success","item_type":"query","is_query":true,"duration_ms":224},"target":"quaint::connector::metrics","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:44.3214793Z","level":"DEBUG","fields":{"query":"SELECT viewname AS view_name, definition AS view_sql FROM pg_catalog.pg_views WHERE schemaname = $1 ","params":"[\"public\"]","result":"success","item_type":"query","is_query":true,"duration_ms":210},"target":"quaint::connector::metrics","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"timestamp":"2022-06-20T16:21:44.5473776Z","level":"DEBUG","fields":{"query":" SELECT p.proname AS name, CASE WHEN l.lanname = 'internal' THEN p.prosrc ELSE pg_get_functiondef(p.oid) END as definition FROM pg_proc p LEFT JOIN pg_namespace n ON p.pronamespace = n.oid LEFT JOIN pg_language l ON p.prolang = l.oid WHERE n.nspname = $1 ","params":"[\"public\"]","result":"success","item_type":"query","is_query":true,"duration_ms":225},"target":"quaint::connector::metrics","span":{"name":"DevDiagnostic"},"spans":[{"name":"DevDiagnostic"}]}
{"jsonrpc":"2.0","error":{"code":4466,"message":"An error happened. Check the data field for details.","data":{"is_panic":false,"message":"db error: FATAL: unexpected response from login query 0: migration_core::state::DevDiagnostic at migration-engine\\core\\src\\state.rs:250","backtrace":null}},"id":"1"}

Here is another, more recent issue with the same problem: https://github.com/prisma/prisma/issues/14069

It just works if the port was the same on the supabase, for default they use the default port 5432.
Then verify you string connection in your .env file and set the correct port.
// .env
DATABASE_URL="postgresql://XXXX:XXXX@XXX.supabase.co:6543/XXX?pbbouncer=true"

i'm getting a similar issue. prisma migrate reset works but prisma migrate dev does not ...

I think the context is different, you're probably using local supabase with docker?

local supabase with docker

this is a free tier supabase project. trying to proof of concept it and i can't run a migration.

local supabase with docker

this is a free tier supabase project. trying to proof of concept it and i can't run a migration.

try this command below, i think --create-only flag don't apply the migration
npx prisma migrate dev

your .env file has to look like this
DATABASE_URL="postgres://postgres:YOUR-DB-PASSWORD@db.YOUR-DB-REFERENCE.supabase.co:5432/postgres"

that's exactly what my .env looks like and npx migrate dev returns the same results 😢

Your problem is different, your error message is completely different @brandonpsmith. Please open a new issue and provide all information the bug report template asks for. Thanks.

@janpio done


Audit page - nits

Image path was relative and #5442 broke it. Changing path to absolute.
Add redirect from previous page location
Fix broken link from glossary

superseded by #5562


extracting standalone figures (for which we didn't detect captions,…

… but pretty sure that they are proper figures)

making sure that CrossrefClient does not prevent JVM from exiting

Coverage increased (+0.1%) to 38.589% when pulling 5d2ed241c5882105a50c0af6c1580a6eaf79fe0d on standalone-figure-extraction into 461633dd21851b2e21656237182efa43d46086da on master.


Update display of unincorporated counties: Nevada County, San Mateo, Ventura, San Benito

Small logic error with display of unincorporated errors.
Display not using countyData.countyProhibited value to control which unincorporated label should be used.

Already fixed.


The Weather Channel

Source
https://www.tvpassport.com/tv-listings/stations/the-weather-channel-hd/5599
Channels
TheWeatherChannel.us
Notes
directv and rev bs only..added tvpassport please

Added in #1776


Rename metadata in package.json

For better publishing.

        "name": "vs-code-bpmn-js-extension",
	"displayName": "vs-code-bpmn-js-extension",
	"description": "BPMN 2.0 Viewer, http://BPMN.io",
	"version": "0.2.0",
	"publisher": "salaboy",
	"repository": "https://github.com/pinussilvestrus/vs-code-bpmn-js-plugin/",

Maybe we want to rename the package to bpmn-js-vs-code-extension or something else?

what are your feelings towards calling it vs-code-bpmn-io ? Or something similar to that?
I tend to think about bpmn.io as the main entry point for bpmn-js

If you are ok with that suggestion, I would recommend to rename the GitHub repo as well.. to match that.. to avoid confusion..

Did it via fc21a347ab82cb5d22f5226fe7e62188e74eae9a


Inventory Changer

I would love to see the inventory changer in this cheat, it's so cool.

hello, could u tell m what is "Between shots" in aimbot？ i test many times but failed


Propose change character color

When browse with Dark mode, The contrast ratio is too low between character and background.
It is possible to be blocker for color blindness and other like that.
So I propose change character color to easy to recognize for all people even if Dark or Light mode.

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

I expect the release to go live shortly after the review process is completed. 😄
Thank you for your feedback!! I'm committed to ensuring the best possible user experience 💪

v1.1 🚀  https://chromewebstore.google.com/detail/jp-learn-microsoftcom-upd/addjjinolilbffnlnfbaglljhngjminl

Very hard to see in light theme...

Yes. I didn't know that you could change the theme specifically for the site, other than the browser mode. Thanks for the feedback, I fixed it in 1.2!


Data Types

I wanted to contribute to the minimal range of each data type.

@vipulvc08 issue is assigned to you.


Standardize element type calls

Change module.listingSource.section / module.listingSource.channel etc. to module.listingSource.elementType or similar.
This means twig templates don't need to know what type of element will be listed.

fixed in version 2


Are the wrappers returning the right exit codes?

This was why musllvm is a good test.  I used to break this all the time.
Now when I compare
iam@shaman:~/Repositories/musllvm$ WLLVM_CONFIGURE_ONLY=1  CC=wllvm ./configure --target=LLVM --build=LLVM > wllvm.config.log

to
iam@shaman:~/Repositories/musllvm$ GLLVM_CONFIGURE_ONLY=1  CC=gclang ./configure --target=LLVM --build=LLVM > gllvm.config.log

I see different results:
iam@shaman:~/Repositories/musllvm$ diff wllvm.config.log gllvm.config.log
1c1
< checking for C compiler... wllvm
---
> checking for C compiler... gclang
13,14c13,14
< checking whether compiler accepts -fexcess-precision=standard... no
< checking whether compiler accepts -frounding-math... no
---
> checking whether compiler accepts -fexcess-precision=standard... yes
> checking whether compiler accepts -frounding-math... yes

a sure sign that we a making a boo boo with the exit codes.

OK so wllvm and gllvm now have exactly the same logging API.
We set the level to INFO and the output to a /tmp file.
When we configure
musl we see:
iam@shaman:/space/Repositories/musllvm$ grep "returned 1" /tmp/wllvm.txt
INFO:Calling ['/usr/local/bin/wllvm', '-Werror=unknown-warning-option', '-Werror=unused-command-line-argument', '-fexcess-precision=standard', '-c', '-o', '/dev/null', './conf2286-2428-1.c'] returned 1
INFO:Calling ['/usr/local/bin/wllvm', '-Werror=unknown-warning-option', '-Werror=unused-command-line-argument', '-frounding-math', '-c', '-o', '/dev/null', './conf2286-2428-1.c'] returned 1
INFO:Calling ['/usr/local/bin/wllvm', '-Werror=unknown-warning-option', '-Werror=unused-command-line-argument', '-fno-tree-loop-distribute-patterns', '-c', '-o', '/dev/null', './conf2286-2428-1.c'] returned 1
iam@shaman:/space/Repositories/musllvm$ grep "returned 1" /tmp/gllvm.txt
Calling [gclang -Werror=unknown-warning-option -Werror=unused-command-line-argument -fno-tree-loop-distribute-patterns -c -o /dev/null ./conf1976-2428-1.c] returned 1
iam@shaman:/space/Repositories/musllvm$

so they definitely do not agree. Currently gllvm agrees with clang. So maybe this issue should
be over in wllvm land. (Joke... we have revealed quite a few bugs in this investigation.)


Revise dependencies

Relax some dependency versions.

The poetry update has updated something that is crashing batch job tests
ERROR tests/test_aio_aws_batch.py::test_aio_batch_job_queues - botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the CreateComputeEnvironment operation: A compute environment already exist...
ERROR tests/test_aio_aws_batch.py::test_aio_batch_list_jobs - botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the CreateComputeEnvironment operation: A compute environment already exists...
ERROR tests/test_aio_aws_batch.py::test_aws_batch_infrastructure - botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the CreateComputeEnvironment operation: A compute environment already e...
ERROR tests/test_aio_aws_batch.py::test_aio_batch_job_definitions - botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the CreateComputeEnvironment operation: A compute environment already ...

To fix the AWS Batch infrastructure errors, this PR introduces UUID values to name the batch resources.  It also introduces some possibly breaking changes to use context managers for the batch infrastructure creation, which should clean up the resources created.  Even so, there seems to be a problem with cleaning up batch job definitions.


AGNKNCS-1: add ability to update and create select attributes

Stuck with the same issue described here:
https://github.com/jamalex/notion-py/issues/51
Found the PR here:
https://github.com/jamalex/notion-py/pull/187
But, it's not ready for a merge, and just copy-paste without any warranty of working code. Here are some better code, that were tested against scenarios:
from notion.client import NotionClient

DB_LINK = "https://www.notion.so/ag0n1k/bc8849d1e1bc495e85be23f3e0079ad7?v=441798ba657d43ac82a46d95e0dce81a"
TOKEN_V2 = "TOKEN"

client = NotionClient(token_v2=TOKEN_V2)
cv = client.get_collection_view(DB_LINK)
row = cv.collection.add_row()

row.select = "test5"
row.tags = "erst"
row.tags = ["erst2","123"]
row.tags = ["test1","123"]
row.tags = ["test1","test1","123","test2","123"]

@jamalex Hi! Is this project still alive?

@jamalex Hi! Is this project still alive?

Thanks, this looks like a good approach, and clear code!
I'm going to merge and test it out, and add some tests for it in the smoke testing file.

Is this project still alive?

Is a sloth alive? :)

Thanks, this looks like a good approach, and clear code!
I'm going to merge and test it out, and add some tests for it in the smoke testing file.

Is this project still alive?

Is a sloth alive? :)

Added my tweaks and tests here: https://github.com/jamalex/notion-py/commit/9b91edfc6438e4878a3475c17f9fbc3308234912

Added my tweaks and tests here: https://github.com/jamalex/notion-py/commit/9b91edfc6438e4878a3475c17f9fbc3308234912


Bossbar crashes clients

What is the output link of /viaversion dump?
Could not paste dump to Hastebin. 403 Error for url hastebin.com/documents
managed to obtain the dump with development build: https://gist.github.com/anonymous/27d2bff257f60a95d475715a59ed3256
Are you using any additional software like BungeeCord? If so, what software and version? (Please list your plugins as well)
Coding my own plugins, using the viaversion bossbar api. Using a fork of bungeecord called waterfall.
How does this error happen? login? Using an item?
Bossbar
Edit: I removed the bossbar from my plugin, and disabled bossbar-patch. And client still crashes. Im using 1.11.2 client version.
Is there an error in the console? Use pastebin.com. Is there a kick message?
Clients crashes, connection reset by peer.

Issue fixed, disabled auto team in the viaversion config. And player colliding option :)


CXF Maven Dependency error while running the camel k on OpenShift

Hello Everyone,
While trying to run a java DSL sample program on OpenShift(CamelK 1.6.1) .  The program is trying to call a webservice invocation using cxf dependencies and it is failing at the Build Submitted phase. As per the operator logs, it shows us that it is unable to download the referenced CXF jars. I have tried to run the integration using the following command but it doesn't work.
VERSION
red-hat-camel-k-operator.v1.6.3
Camel K Client 1.6.1
Command to produce the Issue
kamel run TestWeb.java --dev -t logging.level=DEBUG
Sample Program
// camel-k: language=java
// camel-k: dependency=mvn:org.apache.camel:camel-cxf:3.9.0
import org.apache.camel.builder.RouteBuilder;
public class TestWeb extends RouteBuilder {
@Override
public void configure() throws Exception {
// Write your routes here, for example:
from("timer:java?period=1000")
.routeId("java")
.setBody()
.simple("Hello Camel K from ${routeId}")
.to("log:info");
}
}
Error Log:
{"level":"error","ts":1672787680.4133232,"logger":"camel-k.maven.build","msg":"[ERROR] Some problems were encountered while processing the POMs:\n[ERROR] 'dependencies.dependency.artifactId' for org.apache.camel.quarkus:camel-quarkus-cxf:3.9.0:jar with value 'camel-quarkus-cxf:3.9.0' does not match a valid id pattern. @ line 34, column 19\n[ERROR] 'dependencies.dependency.version' for org.apache.camel.quarkus:camel-quarkus-cxf:3.9.0:jar is missing. @ line 32, column 17\n[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-cxf:jar is missing. @ line 60, column 17\n @ ","stacktrace":"github.com/apache/camel-k/pkg/util/log.Logger.Errorf\n\tgithub.com/apache/camel-k/pkg/util/log/log.go:60\ngithub.com/apache/camel-k/pkg/util/maven.normalizeLog\n\tgithub.com/apache/camel-k/pkg/util/maven/maven_log.go:62\ngithub.com/apache/camel-k/pkg/util/maven.(*Command).Do\n\tgithub.com/apache/camel-k/pkg/util/maven/maven_command.go:140\ngithub.com/apache/camel-k/pkg/builder.BuildQuarkusRunnerCommon\n\tgithub.com/apache/camel-k/pkg/builder/quarkus.go:189\ngithub.com/apache/camel-k/pkg/builder.buildQuarkusRunner\n\tgithub.com/apache/camel-k/pkg/builder/quarkus.go:163\ngithub.com/apache/camel-k/pkg/builder.(*builderStep).execute\n\tgithub.com/apache/camel-k/pkg/builder/steps.go:46\ngithub.com/apache/camel-k/pkg/builder.(*builderTask).Do\n\tgithub.com/apache/camel-k/pkg/builder/builder.go:125\ngithub.com/apache/camel-k/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/pkg/controller/build/monitor_routine.go:146"}
I am following the documentation for the cxf.
https://camel.apache.org/components/3.20.x/cxf-component.html
Best Regards,
Guru

Hello, the component supported by Camel Quarkus runtime is really camel-quarkus-cxf-soap, there is no support to the old plain cxf: https://camel.apache.org/camel-quarkus/next/reference/extensions/cxf-soap.html
Any camel dependency is converted into the related camel quarkus extension trasparently, so, you need to make sure the correspondent camel quarkus extension exists.

Hi @squakez ,
Thank you for your response on this. I have changed the import statement as follows but still camel k operator is throwing the error.
Sample Program
// camel-k: language=java
// camel-k: dependency=mvn:org.apache.camel.quarkus:camel-quarkus-cxf-soap:2.14.0
import org.apache.camel.builder.RouteBuilder;
public class TestWeb extends RouteBuilder {
@OverRide
public void configure() throws Exception {
// Write your routes here, for example:
from("timer:java?period=1000")
.routeId("java")
.setBody()
.simple("Hello Camel K from ${routeId}")
.to("log:info");
}
}
Error:
{"level":"error","ts":1672937615.0208771,"logger":"camel-k.maven.build","msg":"[ERROR] Some problems were encountered while processing the POMs:\n[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-cxf-soap:jar is missing. @ line 56, column 17\n @ ","stacktrace":"github.com/apache/camel-k/pkg/util/log.Logger.Errorf\n\tgithub.com/apache/camel-k/pkg/util/log/log.go:60\ngithub.com/apache/camel-k/pkg/util/maven.normalizeLog\n\tgithub.com/apache/camel-k/pkg/util/maven/maven_log.go:62\ngithub.com/apache/camel-k/pkg/util/maven.(*Command).Do\n\tgithub.com/apache/camel-k/pkg/util/maven/maven_command.go:140\ngithub.com/apache/camel-k/pkg/builder.BuildQuarkusRunnerCommon\n\tgithub.com/apache/camel-k/pkg/builder/quarkus.go:189\ngithub.com/apache/camel-k/pkg/builder.buildQuarkusRunner\n\tgithub.com/apache/camel-k/pkg/builder/quarkus.go:163\ngithub.com/apache/camel-k/pkg/builder.(*builderStep).execute\n\tgithub.com/apache/camel-k/pkg/builder/steps.go:46\ngithub.com/apache/camel-k/pkg/builder.(*builderTask).Do\n\tgithub.com/apache/camel-k/pkg/builder/builder.go:125\ngithub.com/apache/camel-k/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/pkg/controller/build/monitor_routine.go:146"}
{"level":"error","ts":1672937615.024683,"logger":"camel-k.maven.build","msg":"    'dependencies.dependency.version' for org.apache.camel:camel-cxf-soap:jar is missing. @ line 56, column 17","stacktrace":"github.com/apache/camel-k/pkg/util/log.Logger.Errorf\n\tgithub.com/apache/camel-k/pkg/util/log/log.go:60\ngithub.com/apache/camel-k/pkg/util/maven.normalizeLog\n\tgithub.com/apache/camel-k/pkg/util/maven/maven_log.go:62\ngithub.com/apache/camel-k/pkg/util/maven.(*Command).Do\n\tgithub.com/apache/camel-k/pkg/util/maven/maven_command.go:140\ngithub.com/apache/camel-k/pkg/builder.BuildQuarkusRunnerCommon\n\tgithub.com/apache/camel-k/pkg/builder/quarkus.go:189\ngithub.com/apache/camel-k/pkg/builder.buildQuarkusRunner\n\tgithub.com/apache/camel-k/pkg/builder/quarkus.go:163\ngithub.com/apache/camel-k/pkg/builder.(*builderStep).execute\n\tgithub.com/apache/camel-k/pkg/builder/steps.go:46\ngithub.com/apache/camel-k/pkg/builder.(*builderTask).Do\n\tgithub.com/apache/camel-k/pkg/builder/builder.go:125\ngithub.com/apache/camel-k/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/pkg/controller/build/monitor_routine.go:146"}

Hi @squakez ,
This looks like a bug and this feature is not supported in CamelK 1.6.1 version.
please confirm.
Regards,
Guru

The way you're declaring the dependency is incorrect. As it's a camel component it must be declared like camel:cxf-soap. The operator will care to convert to the proper camel dependency and version. Then, it's true, this Camel Quarkus extension is available since version 2.12, which is used by Camel K 1.8. If you upgrade and use the proper notation, it should work correctly (just tested against Camel K 1.11).

Hi @squakez,
Thank you for your reply on this.
The release notes and instructions are given in the link https://github.com/apache/camel-k/releases/tag/v1.6.0
It is mentioned that the camel version it supports is:
[Apache Camel 3.11.1]
[Apache Camel Quarkus 2.2.0]
So, Ideally, it should download the plugin version as mentioned. Also, it worked for us while mentioning the dependency before the import section. This is a kind of Bug I would say.
Regards,
Guru

@gtata007 We don't think it's a bug.
Firstly, 1.6.x is a bit too old. Please upgrade to Camel K 1.11.0.
Secondly, we don't recommend directly specifying a Camel component in a Maven GAV format, as it may specify a conflicting version with the internal Camel dependency catalog.
// camel-k: dependency=mvn:org.apache.camel.quarkus:camel-quarkus-cxf-soap:2.14.0

Instead, specify a dep as follows:
// camel-k: dependency=camel:cxf-soap

@gtata007 I've wrongly mentioned this was supported since Camel K version 1.8. It was really supported starting Camel K version 1.10. If you need to use such component, you should upgrade at least that version and use the notation we're suggesting.


Inquiry about some versions

Thanks for your brilliant work.
I’m trying to follow your work, but there are some troubles while installing environments.
Can you specify the exact torch version and apex version?

Hi @y2sman,
This repo could run with python=3.7.13, CUDA=11.3 and torch=1.10.1+cu113. For apex, I remember that I encountered an error for the latest version and solved it by checking the git repo of apex to a specific version before installing. You can try this version: 3ff1a10f72ec07067c4e44759442329804ac5162.

It works perfectly when installed with the official installation code of the specified apex version.
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

I appreciate your prompt reply.
Additionally, I describe my setup procedure for the researchers who are going to reproduce this work.

create docker-container

python==3.7.13
pip==20.0.2

with conda install -y pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=11.3 -c pytorch -c conda-forge

install detectron2

git checkout be792b959bca9a
python -m pip install -e detectron2

install apex

git checkout 3ff1a10f72ec07067c4e44759442329804ac5162
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

install detector

python setup.py build develop

install Java

sudo apt-get update
sudo apt-get install openjdk-8-jdk

install python packages

deepspeed==0.6.0
fitz==0.0.1.dev2
jsonlines==3.0.0
numpy==1.21.5
omegaconf==2.1.1
opencv_python==<IP_ADDRESS>
Pillow==9.2.0
pycocoevalcap==1.2
PyMuPDF==1.19.6
pyparsing==3.0.7
scikit_learn==1.0.2
setuptools==58.0.4
transformers==4.17.0

install nlg-eval

pip install<EMAIL_ADDRESS>
Thanks again!


docs(integrations): Fix LiteLLM issues rendering in sidebar

@tssweeney I don't have access to the CI dashboard so can't see why the integration test is failing

@tssweeney I don't have access to the CI dashboard so can't see why the integration test is failing

CI flake on core side. kicking


fix return Type when SubClass is a ParameterizedType with TypeVariable like T

here is the code to reproduce the problem：
class classB <T> {
  protected T name;

}

class SubClassB<T> extends classB<T>{}

public class TestTypes {
  public static void main(String[] args) throws Exception {
    SubClassB<Long> aa = new SubClassB<>();

    Field field = classB.class.getDeclaredField("name");

    Type type = TypeParameterResolver.resolveFieldType(field, aa.getClass());

    System.out.println(type);

    System.out.println(type);
    System.out.println(type instanceof TypeVariable);

  }
}

the output is
T
T
true

Coverage increased (+0.004%) to 87.161% when pulling 28724f605f6521c08ab51302e99c0c78c557bd9d on liwei19911215:liwei19911215-patch-1 into ac2f3832effe3424e48ac6b0bcd82d4714a083c4 on mybatis:master.

Hello @liwei19911215 ,
That is how it works. What result do you expect?
Your intent is clearer if you use assertions (e.g. assertEquals, assertTrue, etc.), you know.

You want it to return Object.class, is that right?
Please give me some time and I'll take another look.

@liwei19911215 ,
Could you provide an example mapper that is currently broken and will be fixed by this change?
I couldn't think of a realistic usage.

hello @harawata,  i just want it to return Object.class. and no mapper is broken in my poject yet.  the function returns Object.class under some conditions ,like
 if (clazz == declaringClass) {       Type[] bounds = typeVar.getBounds();       if (bounds.length > 0) {         return bounds[0];       }       return Object.class;     }
 so  i thought why not always return Object when Type is not explicit, and this makes the return of function  compatible

@liwei19911215 ,
Could you provide an example mapper that is currently broken and will be fixed by this change?
I couldn't think of a realistic usage.

by the way,  i haven't find  any  realistic usage  and maybe it will never appear :)


Proper support for cross-compiling

Between #417 and #426 there's enough of a case for adding proper support for cross-compiling to the build system.
Ideally this should allow for all of:

Full cross-compilation of tender and bindings, at least to a different ARCH or toolchain on the same host. e.g. build for aarch64-linux-gnu on x86_64-linux-gnu.
Override toolchain used for tenders to allow for instrumentation (#417).
Other cases such as building the Genode bindings in-tree (#426).

The first point 1) "Full cross-compilation of tender and bindings" was done via #506 / #494. However, afl instrumentation is not implemented and I don't have any clues about the Genode support - but I remember that it was deleted via given PR.


[TUBEMQ-512] Add package length control based on Topic

Codecov Report

Merging #398 (05863d9) into master (b3b7803) will decrease coverage by 0.03%.
The diff coverage is 4.00%.

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

Codecov Report

Merging #398 (05863d9) into master (b3b7803) will decrease coverage by 0.03%.
The diff coverage is 4.00%.

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


Post array json

Hi admin,
How to I could post json array object?
For example: ['hello','word']
Please give the idea ?

Please refer to the documentation for superagent here
http://visionmedia.github.io/superagent/#post-/-put-requests
It would look something like this
request.post('/some-url')
  .send(['hello', 'world'])
  .then(...)
  .catch(...);


[WIP] Run setup after preset change

@evidolob Please use this PR as a starting point

Everything working as expected.

user is able to change preset from config window
on-boarding correctly starts the app after the wizard

remaining issue that'll be fixed in another PR: https://github.com/code-ready/tray-electron/issues/196


Doc: improvement in Analytics doc

Clarifying the steps for 'setting up initial data set' in  Setup and Testing under Analytics UI development and testing.

Merged as 3776e73db4c12f50383ca1a19f616b6975b70cc2, after a few tweaks to the commit message and text.  Check out the Zulip commit message guidelines for details on our commit message rules; please update your other PRs to follw them: https://zulip.readthedocs.io/en/latest/version-control.html#commit-messages
Thanks for the contribution @KiranShahdadpuri!  You may also want to set your GIT_AUTHOR_NAME to be your name, since we use the Git history to construct the credits in our release notes.


Getting a Plaid API key

Hello, can you please describe how I can get a Plaid API Development/Production key?
I don't know which options should I select from here:

Thank you.

Yes of course, Once youve created an account on Plaid.com you must put in a request to be given your own personal Dev/Prod key, it usually takes 1-2 days.
Here is the differences between environments.

SANDBOX - (FREE)  fake data that free to use to help with configuring everything.

DEVELOPMENT - (FREE)this one can be configured to show real time data, the biggest limitation being that it does not have Oauth, which is needed for some banks such as Chase. If your bank doesnt need Oauth you can indefinitely use this. attached is a support answer I got when setting this up.

PRODUCTION - (METERED .10/call) this one lets you have full access to the complete API with Oauth configuration as well as other call capabilities. This widget uses only the Balance endpoint so no authorization passed basic setup is needed.

So, I guess I need to request Production access.
When you see Dev/Prod, is really confusing. Is it Development, Production, both of them?

You're right I could see how it could be confused as asking for both, I went ahead and corrected that in the Read Me.


Bug: 303 redirects at login screen

Describe the bug
Unable to see logo (from statics dir) at login screen, and also 1 of scripts (js.cookie.min.js) is not in allowed paths in AuthMiddleware.

To Reproduce
Set statics_dir and put login_logo in this dir.

Environment (please complete the following information):

Starlette-Admin version: 0.8.1
ORM/ODMs: SQLAlchemy

Fix in #187 & #183


Readme file updated

Description
Readme file is updated with correction and addition of relevant badges
Related Issue
Fixes #18
Type of Contribution:

[ ] Bug fix
[ ] Coding
[ ] Design
[ ] Testing
[ ] Research
[ ] Enhancement
[x] Documentation
[ ] Other :

Checklist:

[x] I have read README.md and CONTRIBUTION.md
[x] My Pull request is made against develop branch.
[x] My code/design follows the style/guidelines of this project.
[x] I have performed a self-review of my own code/design/documentation.
[x] I have commented my code, particularly in hard-to-understand areas(or gave a proper description about the design).

Screenshots (if applicable):

@yjaiswal05 Your branch is not updated

@SHITIZ-AGGARWAL can you tell me which readme file is creating the conflict as all 3 readme files has same name

@yjaiswal05 Before making the changes always update your repo. This way, there will be very less chance for conflicts

I am not able to see any changed file

If possible make a new updated branch and then commit your changes

Okayy


fixing subprocess to use system buffer instead of being unbuffered

While testing large datasets in actions, I came across massive CPU spikes for a relatively small dataset (~8MB) being returned from the action. While investigating the issue I found two problems that were consuming the CPU. The first issue was documented in #4798. The second issue was with how the action was created. When the subprocess is created without the buffer size, it defaults to zero (unbuffered). According to the subprocess docs,

"If you experience performance issues, it is recommended that you try to enable buffering by setting bufsize to either -1 or a large enough positive value (such as 4096)." https://docs.python.org/2/library/subprocess.html.

The bufsize can be a discussion whether to use the system default or a large value. After making this change on my local machine I noticed a performance increase minus the MongoEngine issue which still persists.

How does this impact the live execution results?

I'm wondering if this change may affect the real-time live output from actions like st2 execution tail?
Performance wise, you may also benefit from disabling "live output"
https://github.com/StackStorm/st2/blob/a643ba7a32f8908237c715b87a223c08743df578/conf/st2.conf.sample#L25-L26
which also takes a lot of CPU cycles.

@blag At a -1 value for buffering, it would depend on your system. Some systems will fully buffer while others will buffer 4KB - 8KB of memory before flushing. If the buff value is hardcoded to 4096 then the live output should be able to display the information in 4K increments. This is to avoid having the CPU process the output from the execution one byte at a time and instead buffer to reduce the compute overhead. I can change it to a hardcoded buffer value instead of the system default if that works better for you.

Yeah, IIRC, in the past we've seen some issues with real time output hanging on some distros and that's why we used unbuffered output.
I'm fine with this change as long as we document it and make it configurable via config option in st2.conf (e.g. actionrunner.stream_output_buffer_size).
This way users who would potentially have issues can change that value in the config instead of needing to directly edit the code.
I can make that change and merge that into master.

I pushed the following changes:

Add new actionrunner.stream_output_buffer_size config option and default it to -1 per @jdmeyer3 observations. 2f96d5db92ac270932cfa648acdda049e8b1cfe0

Only use bufsize=-1 for Python runner actions. Changing the default for all the st2common.util.green.shell.run_command() function calls would affect a lot of other code as well so it's better to keep the change small and more contained. 25ea404641d80b5e49243fbf6635ddea81407b64, 2f96d5db92ac270932cfa648acdda049e8b1cfe0.

Add some basic tests for it. 711436fc167e4e209e0f5fda0b490b6f7e964c29

Document this change in upgrade notes - https://github.com/StackStorm/st2docs/pull/941.

We should still keep an eye on potential regressions on other distributions, but I think now that the value can be controlled via config option, it's safe enough to be merged into master.
If users experience issues, they can change the config option value to revert back to the old behavior.

@jdmeyer3^ let me know if you are OK with the changes above.

There were some weird / random Travis test failures.
I need to push some debugging changes (0b76bd505e0801bdf3e403c795dcbb84d5e0bf79) which will hopefully provide us with more information and context which will allow us to troubleshoot such issues in the future.

@Kami Ya, those changes are fine with me.

Yay, all green!
Thanks again for the contribution. I will go ahead and merge it into master.
@jdmeyer3  When you get a chance, can you please test the version / changes from master and confirm it's working as expected?


371 only stages still checks output of other stages

PR to fix #371
Implements a fix so that only stages that have outputs that are required by any stage in only_stages are checked for existence.  Let me know if this is the expected behaviour.
I also added some code that raises an error if first_stages/last_stages and only_stages are both defined in the config, since they seem incompatible. Are there any workflow cases where we would want to specify all of these simultaneously?

Waiting for #366 before merging into main


count completed tasks

Could you add the ability to count completed tasks?  For example, I have a task list that includes walking everyday.  Instead of counting the occurrence of the tag #walk, I'd like to count how many times the task

[ ] walk

is completed.

You can use text searching with regular expression.
Like this
searchType: text
searchTarget: '-\s\[x\]\s+walk'
line:

Oh I like that.  Learned something new today!
I'm using this!


poor youtube 4k60fps performance compared to FF Nightly

Love the project!
Just wanted to report my test against FireFox Nightly:
using the following video: https://www.youtube.com/watch?v=LXb3EKWsInQ
Thorium shows Render/3D at 100% and Video at 0% in intel_gpu_top, and the video drops frames
FF Nightly shows Render/3D at 25% and Video at 25% in intel_gpu_top,  and the video is smooth
12th gen Intel CPU on Kubuntu 22.04

should be the latest version of Thorium and the latest version of Kubuntu 22.04
does this help? - https://i.imgur.com/VgSqijU.png

@PcChip Yes thanks. What is your CPU?

12th gen core i5

Try latest release and see if it persists. https://github.com/Alex313031/Thorium/releases/tag/M105.0.5183.0

@PcChip Hows it coming.

it seems that both Thorium and regular FireFox render youtube videos as "Render/3D", whereas Firefox Nightly renders it as "Video" according to intel_gpu_top.  When rendered as "Render/3D", it is not as smooth and stutters and drops frames.
I assume that's related to FireFox Nightly recently enabling VAAPI by default?

@PcChip Thorium has patches to enable VAAPI and VDPAU by default as well as it can. This is strange that it is not working on a new chip on ubuntu.

Same issue.
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8265U CPU @ 1.60GHz
Graphics Processor: Mesa Intel® UHD Graphics 620
It uses CPU +50% when decoding video and 0% intel-gpu-top video.

This package works fine, x11 and wayland. is it possible to use the patches?
chromium-wayland-vaapi-next(for archlinux)

I fixed hardware decoding on my instance by clearing the flags on ~/.config/thorium-flags.conf (copied from chrome)
and also resetting all thorium flags on chrome://flags

so on a fresh thorium install on linux, you had to change flags or a config file to make Thorium use hardware video decoding?

I used the latest Intel graphics driver on the Kubutnu 22.04 system to test the browser's hardware acceleration and found that it was normal.
I'm using X11 instead of wayland.

so on a fresh thorium install on linux, you had to change flags or a config file to make Thorium use hardware video decoding?

No, it works out of the box. I made some changes to the flags at some point or copied it over from my chrome install.

I can confirm HW Accel doesn't work if --ozone-platform=wayland

I can confirm HW Accel doesn't work if --ozone-platform=wayland
[](javascript:void(0))
[](javascript:void(0))

try to use X11

try to use X11 @JadenJSJ
I accidentally deleted my previous comment.

HW video Accel works fine in X11. But 2 finger pinch zoom still doesn't work @gz83

try to use X11 @JadenJSJ

I accidentally deleted my previous comment.
HW video Accel works fine out of the box in X11. But 2 finger pinch zoom still doesn't work @gz83
[](javascript:void(0))

Hardware acceleration on the Linux platform is currently not available out of the box, and turning on hardware acceleration inevitably requires sacrificing something.
@JadenJSJ


Extending prospect fields to allow custom fields

I made a small rework of your module to allow a feature I was requiring -- The ability to upsert custom fields.

@JMarchetto thanks for the pull request.  It looks great and appreciate the help!  Some small fix requests before it can be merged:

Update the package.json to reflect the correct url
Instead of using concat to append the custom properties on the array instance, could you please add underscore and use union http://underscorejs.org/#union instead?  This would allow the update to be called multiple times on the instance without duplicating items.

@jzabel, @JMarchetto  I'll be more than happy to make these updates.  I was about to create the same fork and pull request.  If you wanna make me a contributor I can help close the loop on this.  Thx!

Closing this in favor of pull request #7 by @KidA78.


Doc/modules init epics

Description
Added project epic templates for physics, data analytics and machine learning to the SplashKit Modules documentation so that team members can start working on the files.
Fixes # (issue)
Type of change

[ ] Documentation (new)

How Has This Been Tested?
Tested using prettier
Testing Checklist:

[N] Tested in latest Chrome
[Y] Tested in latest Safari
[N] Tested in latest Firefox

Checklist:

[Y] My code follows the style guidelines of this project
[Y] I have performed a self-review of my own code
[Y] I have commented my code in hard-to-understand areas
[Y] I have made corresponding changes to the documentation
[Y] My changes generate no new warnings
[Y] I have requested a review from ... on the Pull Request

Hey Tim, here is the pull request for the creation of the epic files.


What changes in the new update?

Title. I'm interested in knowing what's new and what possibilities we have now.

basically the update is the foundations for getting cleverer in the bot's interactions
the biggest change of the new update is automatic server settings detection in an attempt to maximize snipes and efficiency
which allows for:

you no longer need to configure kak_delay/claim_delay; it will automatically adjust based on the sniping rules of the server it's attempting to claim in
sniping will now recognize whether a given roll was rolled by bot user or wished by user, and determine whether it can insta-snipe
no more 'multichannel' vs 'channel_id', it's all just 'channelids' now
it will now roll only up to how many rolls there are in the channel
full recognition of when the claim windows reset on each server

No further questions have been asked. Will be resolving issue

basically the update is the foundations for getting cleverer in the bot's interactions
the biggest change of the new update is automatic server settings detection in an attempt to maximize snipes and efficiency
which allows for:

you no longer need to configure kak_delay/claim_delay; it will automatically adjust based on the sniping rules of the server it's attempting to claim in
sniping will now recognize whether a given roll was rolled by bot user or wished by user, and determine whether it can insta-snipe
no more 'multichannel' vs 'channel_id', it's all just 'channelids' now
it will now roll only up to how many rolls there are in the channel
full recognition of when the claim windows reset on each server

I had forgotten to reply. Does this mean that it basically knows if it is either, wished by no-one (instaclaim if settings allow it), wished by the user(instaclaim if settings allow it), or wished by someone else(if it's in settings, wait for the togglesnipe to wear off)?

Yes based on $settings in theory

Yes based on $settings in theory

is there a way for me to check how it's working?

you can try out a test server and force a True statement to trigger to initiate a claim since with the new update the bot no longer reacts to $im characters or it shouldn't react to them

and force a True statement to trigger to initiate a claim
How would I do that?

easiest for me is changing min kak to like 10 so i will attempt to snipe anything over 10 kakera if you really want to burn a claim

But do keep in mind if you are trying to test on your account it will devour your claim for that hour and it will not attempt to claim until the next claim window hence ignoring the possible wished character or a character you actually want. this was implemented to follow the tread for kakera sniping where is tries to ignore kakera when you are unable to kakera react

But do keep in mind if you are trying to test on your account it will devour your claim for that hour and it will not attempt to claim until the next claim window hence ignoring the possible wished character or a character you actually want. this was implemented to follow the tread for kakera sniping where is tries to ignore kakera when you are unable to kakera react

yeah, that's why I would do it in a testing server

alright then changing any check criteria so that it will always be true could test the claim window setting. wish testing would be a little more harder to test you would have to get a wish to test that out but the claim window is still the same

alright then changing any check criteria so that it will always be true could test the claim window setting. wish testing would be a little more harder to test you would have to get a wish to test that out but the claim window is still the same

The thing I really want to test is what happens if the character is wished by someone else and togglesnipe is activated.

as long as the togglesnipe allows you to snipe it will attempt to snipe it basically there are settings that block the attempt to snipe wished characters so even if you didnt use the bot and were a user you couldnt snipe it so a attempt would not be made as this is a impossible case
but in any other case it will snipe it and the only way to test is that I guess make that criteria happen and if there is a issue i can revisit that issue

as long as the togglesnipe allows you to snipe it will attempt to snipe it basically there are settings that block the attempt to snipe wished characters so even if you didnt use the bot and were a user you couldnt snipe it so a attempt would not be made as this is a impossible case
but in any other case it will snipe it and the only way to test is that I guess make that criteria happen and if there is a issue i can revisit that issue

Yeah, but the togglesnipe is set at number 4 with 4 seconds (When someone rolls a WISHED character, this character can't be sniped for 4 seconds EXCEPT for people wishing for this character (the roller CAN'T claim this character either, except if they wished for it))

Which means there is in fact a moment in which I can claim.  I used to "bypass" this by using this code for character list.
time.sleep(1)
                if "reactions" in bot.getMessage(channelid, messageid).json()[0] and bot.getMessage(channelid, messageid).json()[0]["reactions"][0]["emoji"]['id'] == None:
                    bot.addReaction(channelid, messageid, bot.getMessage(channelid, messageid).json()[0]["reactions"][0]["emoji"]["name"])
                    time.sleep(1)
                    bot.removeReaction(channelid, messageid, bot.getMessage(channelid, messageid).json()[0]["reactions"][0]["emoji"]["name"])
                    time.sleep(claim_delay)
                    bot.addReaction(channelid, messageid, bot.getMessage(channelid, messageid).json()[0]["reactions"][0]["emoji"]["name"])

so its coded like this if your really worried about snipe_delays vs insta_snipe scenarios in theory it will work but again since this is a big update I can't confirm if there is a bug and if something will fail
again there is a stable branch if you don't want to chance a possible fail
you can change the current one into the similar way  as the insta snipe or having to wait only set the snipe_delay variable

Yeah, but the togglesnipe is set at number 4 with 4 seconds (When someone rolls a WISHED character, this character can't be sniped for 4 seconds EXCEPT for people wishing for this character (the roller CAN'T claim this character either, except if they wished for it))

the claim delay does actually seem to adjust to the specific snipe settings correctly
If you run get_snipe_time with your proposed scenario:
r = 4  (snipe setting of the server)
d = 4.0 (locked for 4 seconds if snipe state triggered)
If you're in the wishers list,
returns 0 (instasnipe available)
If you're NOT in the wishers list -- regardless of if you rolled or not
returns d
get_snipe_time for example also accurately recognizes this state:
r = 1 (partial restriction -- only if the ROLLER wished for character, then lock sniping for d time to only the roller)
d = (a non-zero delay)
returns 0.0 if rolled isn't in the wished_for list or if rolled is our user
returns d only if rolled isn't us and rolled appears in wished_for


cmd/go: test, list etc. fails when run in parallel on Windows

The workaround is straightforward (serialize build), but I think this deserves an issue as 1) this worked fine in Go 1.10 and 2) people in the same boat as me can get something to search for when scratching their head
Also note that this works fine on macOS and Linux.
Environment:
go version
go version go1.11 windows/amd64
go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\appveyor\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\GOPATH\
set GOPROXY=
set GORACE=
set GOROOT=C:\go
set GOTMPDIR=
set GOTOOLDIR=C:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\appveyor\AppData\Local\Temp\1\go-build440396294=/tmp/go-build -gno-record-gcc-switches

The commit that fixed the build:

https://github.com/gohugoio/hugo/commit/ea8ef573c6f869de95fdf4b19765d34026de6471

Extract of the error log:

# github.com/gohugoio/hugo/common/maps
bufferpool\bufpool_test.go:17:2: unknown import path "github.com/stretchr/testify/assert": target directory<EMAIL_ADDRESS>exists and is not empty
FAIL	github.com/gohugoio/hugo/common/maps [setup failed]
# github.com/gohugoio/hugo/common/math
package github.com/gohugoio/hugo/common/math (test)
	imports github.com/alecthomas/assert
	imports github.com/alecthomas/repr: unknown import path "github.com/alecthomas/repr": target directory<EMAIL_ADDRESS>exists and is not empty
FAIL	github.com/gohugoio/hugo/common/math [setup failed]
# github.com/gohugoio/hugo/common/types
cache\partitioned_lazy_cache_test.go:21:2: unknown import path "github.com/stretchr/testify/require": target directory<EMAIL_ADDRESS>exists and is not empty
FAIL	github.com/gohugoio/hugo/common/types [setup failed]
# github.com/gohugoio/hugo/config
cache\partitioned_lazy_cache_test.go:21:2: unknown import path "github.com/stretchr/testify/require": target directory<EMAIL_ADDRESS>exists and is not empty
FAIL	github.com/gohugoio/hugo/config [setup failed]
# github.com/gohugoio/hugo/config/privacy
cache\partitioned_lazy_cache_test.go:21:2: unknown import path "github.com/stretchr/testify/require": target directory<EMAIL_ADDRESS>exists and is not empty
FAIL	github.com/gohugoio/hugo/config/privacy [setup failed]
# github.com/gohugoio/hugo/config/services
cache\partitioned_lazy_cache_test.go:21:2: unknown import path "github.com/stretchr/testify/require": target directory<EMAIL_ADDRESS>exists and is not empty
FAIL	github.com/gohugoio/hugo/config/services [setup failed]
# github.com/gohugoio/hugo/create
cache\partitioned_lazy_cache_test.go:21:2: unknown import path "github.com/stretchr/testify/require": target directory<EMAIL_ADDRESS>exists and is not empty

/cc @natefinch

Please provide more detail. I don't see answers for the two most important questions from the issue template:

What did you do?
What did you expect to see?

Please provide more detail. I don't see answers for the two most important questions from the issue template:

It's in there if you read more carefully. I have spent enough time on this issue. Use my issue report to improve your software/documentation, or don't.

I have another case, which is more problematic (and I think a more common problem), now in a Linux container on CircleCI:
See error log below.

Is building s3deploy in parallel with goreleaser
Workaround is to serialize builds: https://github.com/bep/s3deploy/blob/master/.circleci/config.yml#L11

da00d00bdef65874ff644eaa26: exit status 128:
	fatal: cannot copy '/usr/share/git-core/templates/hooks/update.sample' to '/go/pkg/mod/cache/vcs/cb1953cbdfd14fc2ffce4dfd06487e8d5a0c96da00d00bdef65874ff644eaa26/hooks/update.sample': File exists
go<EMAIL_ADDRESS>git init --bare in /go/pkg/mod/cache/vcs/e56cb0fb3504244c08f9270d26097e67273a5d49f0367a918d5322d12df3a9b8: exit status 128:
	error: could not lock config file /go/pkg/mod/cache/vcs/e56cb0fb3504244c08f9270d26097e67273a5d49f0367a918d5322d12df3a9b8/config: No such file or directory
	fatal: could not set 'core.symlinks' to 'false'
go<EMAIL_ADDRESS>git init --bare in /go/pkg/mod/cache/vcs/55179c5d8c4db2eaed9fae4682d4c84a1fd3612df666b372bef3bbb997c9601f: exit status 128:
	error: could not lock config file /go/pkg/mod/cache/vcs/55179c5d8c4db2eaed9fae4682d4c84a1fd3612df666b372bef3bbb997c9601f/config: File exists
	fatal: could not set 'core.repositoryformatversion' to '0'
go<EMAIL_ADDRESS>git init --bare in /go/pkg/mod/cache/vcs/4a22365141bc4eea5d5ac4a1395e653f2669485db75ef119e7bbec8e19b12a21: exit status 128:
	error: could not lock config file /go/pkg/mod/cache/vcs/4a22365141bc4eea5d5ac4a1395e653f2669485db75ef119e7bbec8e19b12a21/config: File exists
	fatal: could not set 'core.repositoryformatversion' to '0'
go<EMAIL_ADDRESS>git init --bare in /go/pkg/mod/cache/vcs/4f939cf8921e8662ef2d8cf78b0db3bcacccda0d79c9e1b4cef06c640b4a8cef: exit status 128:
	error: could not lock config file /go/pkg/mod/cache/vcs/4f939cf8921e8662ef2d8cf78b0db3bcacccda0d79c9e1b4cef06c640b4a8cef/config: File exists
	fatal: could not set 'core.repositoryformatversion' to '0'
go<EMAIL_ADDRESS>git remote add origin https://go.googlesource.com/text in /go/pkg/mod/cache/vcs/5b03666c2d7b526129bad48c5cea095aad8b83badc1daa202e7b0279e3a5d861: exit status 128:
	error: could not lock config file config: File exists
	fatal: could not set 'remote.origin.url' to 'https://go.googlesource.com/text'
go: error loading module requirements

/cc @caarlos0

Which go commands were you trying to run in parallel, and which of those failed?
Did you run go mod tidy and/or go mod download beforehand?

@bcmills the links above are to the actual scripts with reference to Docker image used etc. For the last one, I suspect a go mod download before starting the parallel builds would have done the trick.

@bep yes, parallel go mod download will likely not work... this is a WIP on GoReleaser side as well: https://github.com/goreleaser/goreleaser/pull/779

Closing as a duplicate of #26794.


Mocking Variable Length Array (VLA) not working

void read(size_t buff_size, char (*buffer)[buff_size]);

The auto-generated code for the mocking of this type of functions does not work.

Is there any plan to support that?

Yes. Arrays and pointers are getting a big overhaul in the next major release. Both are insufficient as they only handle the most common cases.


UX improvements for Archive setting

Feature Description
We regularly receive requests on the support forum for the ability to adjust the default Web Stories archive page (web-stories). In #4862, this was discussed and the alternative of allowing users to build out their own custom archive page using Gutenberg blocks was determined to be the best next step.
However, we find in the forums that users don't understand that the Custom option in Web Stories > Settings > Stories Archives will allow them to do this and have the control that they're looking for. I think there might be some confusion on the user side, as our approach is pretty uncommon in my experience with WP plugins. I've seen settings like this before, but they typically generate an automated archive on the selected page that is not modifiable; see https://wordpress.org/support/topic/custom-archive-page-is-empty/. Our approach is different.
To make this option clearer to users, I think there are some adjustments that we can make here. The suggestions below should definitely be vetted by our UX team.
Disabled option

Change helper text from "This disables the default archive page." to "Turn off the default archive page at [site URL]/web-stories/". Users will receive your 404 page when they go to the default archive page."

Custom option

Change "Custom" label to "Create your own"
Change helper text from "Choose a custom page as your stories archive." to "Choose a page to serve as your Web Stories archive. Use the Web Stories block to add stories to this page."
Change helper text that appears under page select from "Visit archive page at [custom page URL]" to "Visit archive page at [custom page URL]. [site URL]/web-stories/ will automatically redirect to this page."

Additional Context
Previous archive customization requests:

https://wordpress.org/support/topic/editing-gws-archives-page/
https://wordpress.org/support/topic/web-stories-page-edit/
https://wordpress.org/support/topic/how-to-customize-web-stories/
https://wordpress.org/support/topic/archives-stories/
https://wordpress.org/support/topic/how-do-i-add-h1-heading-to-the-web-stories-archive-page/

cc @agingoldseco @gajasinski for thoughts

Related: #7558

Agreed! These helper text alternatives look good, in this case I believe more descriptive is better and even just "Create your own" will go a long way.


Add post-processing to \yii\db\Query

Please add the capability to post-process query results in methods like \yii\db\Query::all(), one() etc. , or give a hint how should I do it for myself keeping with framework design guidelines.
Reason: Database engine has limited ORDER BY, no GROUP BY or HAVING.
Usage example:
class SomeModel extends ActiveRecord {
    public function getDetails() {
        return $this->hasMany(/*..*/)
            ->ppGroupBy(new MyCrazyGroupReduceDescriptor([
                //
            ]))
            ->ppOrderBy('sort_weight')
        ;
    }
}

$results = Post::find()-...->all();
// do your post-processing here

Oops, you are so cruel ... I'm now hastily coding post-processing, since I have multi-level nested ->with() and sorting every sub-branch in every controller will be combinatory explosion of copy-paste headache (this is exactly why the example was in relation, not in controller).

That makes it a bit different. Are you sure you need PHP to process it?

In this case you should create your own Query, ActiveQuery and so on classes, which should emulate missing order or having features.
If your database engine is so specific - you should create specific extension for its usage like it is done for MongoDB, Redis and so on.
For the regular yii\db\* postprocessing feature makes no sense.

I just implemented my post-processing, will the Yii2 core team (how to mention ??) look and merge it, so should I cleanse it of project/company specific stuff and make a PR or module ?
@klimov-paul Yes, I do have mycompany\yii2\db\cassandra, but the ActiveQueryPostProcessTrait will go into just mycompany\yii2\ since it's in no way Cassandra-specific.

but the ActiveQueryPostProcessTrait will go into just mycompany\yii2\ since it's in no way Cassandra-specific.

I don't get. At first you say you need post-processing because you lack 'group' and 'having' features at Cassandra. Next, I advise you place post processing, which will emulate 'group' and 'having' inside your cassandra\Query so it will be consistent with regular db\Query. And now you are telling such emulation has nothing to do with Cassandra.
If this feature does not belongs to your cassandra\Query class as you say, why it should belong to db\Query then?

@mcd-php, you could use the event \yii\base\View::EVENT_BEFORE_RENDER and update your (dataprovider) queries

@klimov-paul It is inspired by Cassandra deficiency but is not tied to Cassandra - if someone will use my trait in any other subclass of Query, it will work OK even without mycompany\yii2\db\cassandra - all it needs are parent::all() and parent::one().

yii\db layer is designed to retrieve the data from the database, not to process it.
If you need to process query result further you should do it at the other place. Allowing Query to do so will inspire bad programming practice.
Still, you are free to publish your trait as extension.


fix:fix the NPE,and reduce once db request when lockkey is null

Ⅰ. Describe what this PR did
1.fix: Fix the NPE when lockkey is null;
2.optimize:  Reduce once db request when lockkey is null;
Ⅱ. Does this pull request fix one issue?

yes.
issue
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #2495 into develop will decrease coverage by 0.02%.
The diff coverage is 0%.

@@              Coverage Diff              @@
##             develop    #2495      +/-   ##
=============================================
- Coverage      51.45%   51.42%   -0.03%
+ Complexity      2664     2662       -2
=============================================
  Files            529      529
  Lines          16956    16960       +4
  Branches        2051     2053       +2
=============================================
- Hits            8724     8722       -2
- Misses          7408     7411       +3
- Partials         824      827       +3

Impacted Files
Coverage Δ
Complexity Δ

...java/io/seata/server/lock/AbstractLockManager.java
62.29% <0%> (-2.12%)
13 <0> (ø)

...n/java/io/seata/rm/datasource/ConnectionProxy.java
25.61% <0%> (-0.44%)
12 <0> (ø)

...o/seata/server/coordinator/DefaultCoordinator.java
54.08% <0%> (-0.52%)
28% <0%> (-1%)

...in/java/io/seata/server/session/GlobalSession.java
85.32% <0%> (-0.46%)
71% <0%> (-1%)


/usr/bin/ldd: line 41: printf: write error: Broken pipe

Seen in https://github.com/PyO3/pyo3/actions/runs/7091337861/job/19300268389#step:8:52
It's probably harmless, thought you might want to see it so you can decide whether to investigate.

Hey @davidhewitt, thanks for the issue
I was able to narrow it down and opened https://github.com/axodotdev/cargo-dist/issues/624 to look for a fix there.

Fixed in https://github.com/CodSpeedHQ/action/releases/tag/v2.0.3


Release Automation, CD

https://github.com/stackstorm/stackstorm-enterprise-ha/tree/gh-pages branch was taken to serve chart archives and index metadata via Github pages. See https://github.com/helm/helm/blob/master/docs/chart_repository.md#github-pages-example for more info how it was configured and CNAMEd as https://helm.stackstorm.com/ repo.
Currently it's all done manually as a temporary/fast way to deliver charts via https://helm.stackstorm.com/
The task here is to automate the CI/CD process with CircleCI. So every Github Release (initiated by engineer) will generate the Helm chart metadata in gh-pages.
Possibly look at https://github.com/sstarcher/helm-release for automating versioning based on git tags.

Slightest part of CI story is done via adding Helm & K8s lint checks: https://github.com/StackStorm/stackstorm-enterprise-ha/pull/25

TODO:
Automate the Helm chart deployment for every release release to Github pages via https://github.com/jupyterhub/chartpress
This is currently done manually.
Example:
https://github.com/opsdroid/helm-chart/blob/25ffce4a0125823b92eca7f3e3415106d1d808c2/ci/deploy.sh#L17

This might be helpful too for further integration:

https://github.com/helm/chart-releaser
https://circleci.com/blog/deploying-documentation-to-github-pages-with-continuous-integration/
https://circleci.com/developer/orbs/orb/pennlabs/helm-tools


Prisma Integration

Prisma is an open source next-generation ORM. Currently, it is not officially integrated with the nestjs-query package. It would be nice and easier for developer to use if we could get some official integration.
Have you read the Contributing Guidelines?
Yes
Describe the solution you'd like
Integration for Prisma ORM
Additional context
Ofcourse I don't expect full integration in one night. But a small start would be very nice. I'm not know much thing yet, but I'm happy to help if u need it.

Could be interesting to add! But to much work for myself as I also don't use / have a project using Prisma.

We were willing to tackle building a Prisma adapter for Nestjs-Query so deeply looked into this. The bottom line is that it's just not possible with Prisma as it stands. The generated code does not emit the metadata needed at runtime in order to enable such an adapter. We ended up rolling a Prisma code generator to generate TypeORM definitions based on our Prisma schema. It wasn't pretty, but it saves us from having to write hundreds of entity classes and keeps up with ongoing changes a lot easier.

Interesting @dvins, I myself now also started using Prisma in a project and wonder: would something basic not work if we only go based on the metadata nestjs-query itself collects for relations?
I think the non relations should not be an issue right? Since you would already need to decorate each field.
We could also, if more info is needed expose @Field/@FilterableField ect from the Prisma adapter package so we can add additional fields the adapter could handle it correctly.

I've been spending on time on this topic, currently using nestjs-prisma-generator instead. In my past experience, creating an abstract for prisma its rather hard because the generated types from the client is particular to the schema, and there isn't a low-level generic exposed.
There is multiple issues/community thread in prisma are tracking this as well. All end up using some form of generator to read prisma schema and generate boilerplate code instead.

I've been spending on time on this topic, currently using nestjs-prisma-generator instead. In my past experience, creating an abstract for prisma its rather hard because the generated types from the client is particular to the schema, and there isn't a low-level generic exposed.
There is multiple issues/community thread in prisma are tracking this as well. All end up using some form of generator to read prisma schema and generate boilerplate code instead.

Spot on, the metadata (outside of the Prisma schema) just does not exist to do this.


any plan for webpack2 teampate

什么时候有webpack2的template呢

https://github.com/vuejs-templates/webpack-simple

It shouldn't be very hard to update to webpack 2 on your project although we'll probably just wait for webpack 2 to became stable to do the update on the templates

Looks like its out now:
https://github.com/vuejs-templates/webpack/commit/49456eb8c53252d6d238cc0e27e3bcfd6732e1a5


add LoadingTableViewDataSource tests

remove dequeueReusable methods from UITableView extension
add LoadingTableViewDataSource tests

Codecov Report

Merging #13 into master will increase coverage by 2.7%.
The diff coverage is 46.15%.

@@            Coverage Diff            @@
##           master      #13     +/-   ##
=========================================
+ Coverage   19.23%   21.93%   +2.7%
=========================================
  Files          22       22
  Lines         364      351     -13
=========================================
+ Hits           70       77      +7
+ Misses        294      274     -20

Impacted Files
Coverage Δ

...ARCH/Helpers/Extensions/UITableViewExtention.swift
0% <ø> (ø)
:arrow_up:

...es/LoadingTableView/LoadingTableViewDelegate.swift
22.22% <0%> (-2.78%)
:arrow_down:

...urces/Modules/Catalog/CatalogTableDataSource.swift
18.18% <0%> (-4.05%)
:arrow_down:

.../LoadingTableView/LoadingTableViewDataSource.swift
100% <100%> (+75%)
:arrow_up:

Continue to review full report at Codecov.

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


Does not work on .svelte files.

This doesn't work on svelte files despite it being supported by emmet. The input box opens, but after typing in the abbreviation, nothing happens. Is there a config option to add support for svelte files that I can't see?

Hey @evwltrs! this plugin doesn't provide completions. It only gives more integration between the https://github.com/olrtg/emmet-language-server/ and neovim. Aside from that, the svelte language server already bundles emmet completion capabilities. So specifically for svelte, you don't need either the emmet language server or this plugin.

I'm not quite sure how to get wrap with abbreviations working on the normal language server. Can you point me in the right direction?

@evwltrs Oh I see what you're saying now 🤔 my bad. I don't know how that would be implemented, as I said the svelte language server already comes with emmet bundled but they don't expose the endpoint that this plugin uses for making that action. This plugin only integrates with the emmet language server because it has the custom endpoint mentioned.
So for now, there's no solution to your problem. But I'll think about it, maybe I find some way to make this work. No promises tho.


Error while generating PDF from markdown using pandoc

$ pandoc --template=pandoc/iclc.latex --citeproc --number-sections iclc2025.md --pdf-engine=xelatex -o iclc2025x.pdf
Error producing PDF.
! Undefined control sequence.
l.323 parameters \out
make: *** [Makefile:16: iclc2025x.pdf] Error 43
In my iclc2025.md i have parts of code in between the code characters that contains strings like "\out", which is the notation for a Symbol in SuperCollider. If i remove the backslash from (some of) these "\out" strings, then the PDF is generated without errors.
Also in the normal text i sometimes have strings starting with a backslash. These also give the same kind of error messages. I think the backslash is the culprit here. I do not know about LaTex but it seems to contain lots of backslashes, so these probably mean something. Or they mean something in a PDF.
Funny though: the HTML and DOCX i can generate with my original md file, which contains the backslashes.
Only the PDF generation gives the error message!
How can i have backslashes in my markdown without interfering with the generation of the PDF?

I think the workaround is to not type \out in your text, but instead wrap it in single backticks so it is rendered as a short code-snippet: `\out`

Is it in larger code blocks? or inline?

In both, and not only \out, but also \panbus or other symbol sometimes trigger the error. But first i will try what Timo suggests.On Sep 18, 2024 08:42, the-drunk-coder @.***> wrote:
Is it in larger code blocks? or inline?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

For me the \out doesn't give an error when using block code with ``` some code ```. I can reproduce the error when \out inline. For me the error is fixed when using `\out`.

I confirm: using \out solves the problem and the PDF is generated without the error.
Thanks!

Op 18-09-2024 09:53 CEST schreef Timo @.***>:
For me the \out doesn't give an error when using block code with some code. I can reproduce the error when \out inline. For me the error is fixed when using \out.
—
Reply to this email directly, view it on GitHub https://github.com/iclc/iclc-templates/issues/5#issuecomment-2357757895, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWOBQYPV37KQFIMIICJRSH3ZXEWRLAVCNFSM6AAAAABOMDZKQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJXG42TOOBZGU.
You are receiving this because you authored the thread.Message ID: @.***>


class_cast_exception when selecting from pg_catalog.pg_stats table

CrateDB version: 4.1.7
Problem description:
I upgraded cluster to version 4.1.7 and execute ANALYZE statement.
Statement executed successfully and table pg_catalog.pg_stats was filled.
But when I trying to read it - I receive error ERROR: SQLParseException: Cannot cast [330мл] to type TEXT (exception raised on StringType.java:96)
I found row and columns, produces this error:
select most_common_vals from pg_catalog.pg_stats limit 1 offset 61
>> ERROR: SQLParseException: Cannot cast [] to type TEXT
select histogram_bounds from pg_catalog.pg_stats limit 1 offset 61
>> ERROR: SQLParseException: Cannot cast [330мл] to type TEXT
Table, produces this error:
CREATE TABLE IF NOT EXISTS "dedup"."catalog_duplication" (
   "id" TEXT,
   "name" TEXT,
   "duplication" ARRAY(OBJECT(DYNAMIC) AS (
      "id" TEXT,
      "kwminus" TEXT,
      "kwplus" TEXT,
      "name" TEXT
   )),
   PRIMARY KEY ("id")
)
CLUSTERED BY ("id") INTO 10 SHARDS

Column, produces this error: duplication['kwminus']
Steps to reproduce:
Sorry, I tried to create a sample, but the error does not reproduce if there are one or two rows in the table.

Sorry that you're running repeatedly into issues with this. We should do a better job testing this with different data sets :(
We'll have a closer look and come up with a fix.
Out of curiousity - what are you trying to do with the statistics?

@mfussenegger
I used query SELECT * FROM pg_catalog.pg_stats to check is statistics collected.
This error doesn’t bother me. I dont use this stats directly.
I created this ticket to help you - maybe this exception hides some other issue? Or something else?
If this behavior is normal - just close the ticket :)
I noticed a performance degradation after upgrading 4.0 -> 4.1. And I began to search the reasons.
I found exception in logs, I found ANALYZE statement in docs, and then I checks table pg_catalog.pg_stats - it was empty.
So I used this select to test - is statistics collected or not. I dont use any data from this table except manual test - table is empty \ table is not empty:)
At now this table is filled. So, I have to wait a few days to check average execution time.

I created this ticket to help you

Thank you, it does help us :)

I noticed a performance degradation after upgrading 4.0 -> 4.1.

Could you share some of the queries and the schema of the tables where you noticed a performance regression?
We run the scenarios in https://github.com/crate/crate-benchmarks nightly to try to detect performance regressions, but it has gaps - so if you've any queries where we could take a closer look at that would be very valuable for us.

@mfussenegger
I have to make a lot of changes in the code to upgrade. So I'm not sure where the problem is.
Here average execution time:

I see performance degradation in 3-5 times after 16-17 april.
I have table with 200k rows (400mb of data)
In table I have 2 array column:
...
is_visible boolean,
category_id array(int),
linked_ids array(int),
rating int
....

And I use query like
SELECT columns_list
FROM table
WHERE
 is_visible AND
 (
   ? = ANY(category_id) OR,
   ? = ANY(category_id) OR,
   ....
   (about 5-15-20 lines here)
 )
  AND linked_ids IS NOT NULL
  AND
 (
    ? = ANY(linked_ids) OR,
    ? = ANY(linked_ids) OR,
    ? = ANY(linked_ids) OR,
    .....
   (about 50-80-100-200 lines here)
)
ORDER BY rating
LIMIT ?
OFFSET ?

I found some optimization - I stopped use prepared statement parameters and started write numeric values directly to SQL query (yes, it is bad) - but it saved some time for me.
I made some other optimizations and for  a now the average query execution time is within the acceptable interval.

But I hope that the collected statistics will help reduce these numbers :)

@shm-dmitry thanks for reporting the issue. The fix will be available in the next 4.1.8 hotfix release.


fixed dropdown on mobile

You're going to have to pull staging, fix merge conflicts then push again.

Npm's bugging, i'll try to install again on my end later


[Question] Reverse the line chart y-axis

Is there any way for the y-axis range to be adjusted? i.e. I'd like for it to start at 100 and have the top value be 1.
Thanks in advance!

For anyone who stumbles on this - Recharts (what's being used under the hood for Tremor) has a reversed parameter for the y-axis: https://recharts.org/en-US/api/YAxis#reversed.