text:
[BUG] SUMBT MultiWOZ_zh results are not reproducible

Describe the bug
I have downloaded the Chinese Bert model and the pre-trained model for MultiWOZ_zh. There is a mismatch in the joint accuracy.
To Reproduce
Steps to reproduce the behavior:

Clone the repository. Complete the installation
Download pre-trained model chinese-bert-wwm-ext for MultiWOZ-zh and store under ./pre-trained-models
Download translation-train model for MultiWOZ-zh and store under ./convlab2/dst/sumbt/multiwoz_zh/pre-trained/pytorch_model.bin
Run python3 evaluate.py MultiWOZ-zh sumbt val
Output as follows:
{'Joint Acc': 0.3455532926001358, 'Turn Acc': 0.9451874481406302, 'Joint F1': 0.8130141242520675}

Expected behavior
The reported joint accuracy is 45.1% for MultiWOZ-zh while the code produces 34.5% instead.
Additional information
I have tried to reproduce the experiment and my numbers are in the range of 35% too. I have reproduced the experiment for English MultiWOZ and the joint accuracy for the same is similar to the one posted on the README.
Thanks

Thanks! We are checking this.

Hi, thanks for point it out! Now the issue has been fixed with the PR above.
BTW, this script is only used for checking the performance of the baseline. The official evaluation script used in DSTC9 are eval_file.py and eval_model.py under convlab/dst/dstc9. You may also want to check these two files.
Feel free to tell us if you have any other questions.

Could you give an overview of how to run the evaluation scripts eval_file.py and eval_model.py?
Using python3 evaluate.py MultiWOZ-zh sumbt val is straightforward.
Is there a similar way to use the eval_file.py or eval_model.py?
I do not understand the directory structure while using eval_model.py

We use eval_file.py and eval_model.py for DSTC-9 evaluation, see https://github.com/ConvLab/ConvLab-2 for details.

Thanks for the reply.
As far as I understand, the gold standard output and the predicted output should be in the format of the state for the dataset. Then eval_file.py can be run on these files.
Is there an example script to convert the outputs from the SUMBT model into the format for eval_file.py?

Hi
I am able to reproduce the results with the evaluate.py file.
Thank you for looking into this!


text:
这个效果是认真的吗？is this result true?

你这个是用large模型还是xlarge模型？

source: gharchive/issue

repo: thu-coai/EVA

license: MIT

license_type: permissive

license_source: github-api


text:
Using Custom Dataset with Different Input Lengths for Model

My input dimensions are [1500, 50, 6] and my label dimensions are [1500, 1]. Can I use this model? If so, could you please explain how to configure it correctly?

Hello, this looks like a classification task, can you provide a more detailed description so that we can help you solve the problem

authors: WenWeiTHU rozhix

repo: thuml/iTransformer


text:
Merge adjacent SrcSpans (#1)

Now search results combined with empty lines, like this:
$ hgrep main main/hgrep.hs
main/hgrep.hs:(17,1)-(32,31)

17  main :: IO ()

18  main = do
19    IO.hSetBuffering IO.stdout IO.LineBuffering
20    IO.hSetBuffering IO.stderr IO.LineBuffering
21    opts <- parseOpts
22    colour <- detectColour
23    case parseQuery (cmdQuery opts) (cmdRegex opts) of
24      Left er -> do
25        IO.hPutStrLn IO.stderr er
26        exitWith (ExitFailure 2)
27      Right q -> do
28        found <-
29          fmap sum $
30            for (cmdFiles opts) $ \fp ->
31              hgrep (HGrep.PrintOpts colour (cmdLineNums opts)) q fp
32        exitWith (exitCode found)

But after PR #32 is merged this won't be a problem.

👍
This is great, thanks so much for contributing!

@thumphries I'm very sorry for massive refactoring. I moved my version of printSearchResultLocation into new Language.Haskell.HGrep.Internal.Print module renaming it to printSrcSpan  because I want (according to your words):

Export printSrcSpan anywhere and use it from Language.Haskell.HGrep
Implement printSearchResultLocation using printSrcSpan
Do not export printSrcSpan from non-internal modules because as you said you don't want to export ghc-internals.

This results in so many files changed :(

Thank you, I agree with the new structure!

source: gharchive/pull-request

authors: ChShersh thumphries

repo: thumphries/hgrep

license_source: bigquery


text:
Update for Travis CI to test against spark 2.0

Address #359

Well look at that -- awesome! 👍

Well that was straightforward 🎉  thanks @boazmohar ! Can you add a note to the README as part of this PR saying that it works with Spark 2.0.0?

Yep, was very easy. I guess the parts that changed a lot in 2.0 are DataFrame and Dataset not RDD's.

I've been thinking that it would be interesting to see if we could get any speed-ups by switching to DataFrames -- haven't had to play around with it yet though.

I've been thinking that it would be test whether there might be any speed-up in switching things to DataFrames -- though I haven't had any time to play with it.

Yeah agreed @jwittenbach, we should definitely look into that, I think the Dataset API may be what we want to look at. But in the meantime let's merge this in, good to make clear it's working with the latest version.

authors: boazmohar freeman-lab jwittenbach lingerlyn

repo: thunder-project/thunder


text:
Question about relation for each sentence in training/test data.

I have some difficulty figuring out where exactly the relation in each line of train.txt and test.txt
Since each entity pair could have multiple possibilities of relations, how do you label the sentences with the relation of the two entities? From my understanding, the distant supervision would require no exact sentence-level labeled relation. So how are the train.txt and test.txt produced?
Thanks

Your understanding about distant supervision is basically right. It's true that distant supervision requires no exact sentence-level labeled relation.
As for the train/test.txt's production, for example, if there's a triple (head_entity a,relation r, tail_entity b) exists in Freebase, we just label all the sentences (in out corpus) which contain the entity a and b with the relation r. Due to the fact that the same entity pair may contains multiple relations in knowledge graph, one sentence may also contains multiple relation labels. But this may also cause the problem of noisy or even incorrect label. Here are some examples:
For instance, the sentences "Beijing is the city of China" and "Beijing is the capital of China" are both labeled the relation "city_of" and "capital_of" in the distant supervision. But it is obvious that the first sentence describes the first relation and the second sentence describes the second.
For another example, the sentences "Bill Gates loves Microsoft" and "Bill Gates is the founder of Microsoft" are both labeled as relation "founder_of" in distant supervision, but it is obvious that the first sentence doesn't describe any information of the relation.
And that's why we need sentence-level attention to address this problem.

Thanks a lot for the clarification. Now the training and test data are clearer to me.
So basically, If for one entity pair (a, b), there are k possible relations r concerning (a, r, b) existing in Freebase, and have a set of n sentences that contains both a and b, there will be k*n items in the data file for each of this specific pair (a, b). Am I understanding right?

Yes， I think you are right.

你好，我这里有两个疑问
(1)训练的时候对每对关系找到 n个句子组成一个bag，那预测的时候对 (entity_a,entity_b)是否也需要找到n个句子组成一个bag进行预测，只有bag有一个是预测正确的，则说明成立？
(2)那如果不足n个,怎么办呢？

n是不固定的

repo: thunlp/TensorFlow-NRE


text:
web client.   CORS cross domain request problem

Can I add a new restclient (apihost: String = '');
In this way, I can use proxy to the FTX target URL on the client

like this:

I don't know if I have made it clear. I need to add an option to reset the host URL of the API

sry. I find it.             restClientOptions options.

repo: tiagosiebler/ftx-api


text:
"Cython Function or Method" instead of function name in /docs and /redoc

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
# requirements.txt:

anyio==3.5.0
APIFlask==0.12.0
apispec==5.1.1
asgiref==3.5.0
attrs==21.4.0
certifi==2021.10.8
click==8.1.2
decorator==5.1.1
dependency-injector==4.39.1
fastapi==0.75.1
FastAPI-SQLAlchemy==0.2.1
Flask==2.1.1
Flask-HTTPAuth==4.5.0
flask-marshmallow==0.14.0
greenlet==1.1.2
h11==0.13.0
idna==3.3
importlib-metadata==4.11.3
iniconfig==1.1.1
itsdangerous==2.1.2
Jinja2==3.1.1
MarkupSafe==2.1.1
marshmallow==3.15.0
packaging==21.3
phonenumbers==8.12.46
pluggy==1.0.0
psycopg2-binary==2.9.3
py==1.11.0
pydantic==1.9.0
pyparsing==3.0.8
pytest==7.1.1
python-decouple==3.6
pytz==2022.1
sentry-sdk==1.5.8
six==1.16.0
sniffio==1.2.0
SQLAlchemy==1.4.35
starlette==0.17.1
tomli==2.0.1
typing_extensions==4.1.1
urllib3==1.26.9
uvicorn==0.17.6
validators==0.18.2
webargs==8.1.0
Werkzeug==2.1.1
zipp==3.8.0

# application.py:

import uvicorn
from fastapi import FastAPI, Request
from api.core.containers import Container
from api.endpoints.user.router import user
from fastapi.openapi.utils import get_openapi
from fastapi.middleware.cors import CORSMiddleware

def create_app() -> FastAPI:
    app = FastAPI()

    # Register Api Routes
    register_routes(app)

    # Register Database and Container
    register_database(app)

    # Register Open API Docs schema
    register_open_api_schema(app)

    allow_cors(app)

    return app

def register_database(app: FastAPI):
    container = Container()

    db = container.db()
    db.create_database()

    app.container = container

def register_routes(app: FastAPI):
    app.include_router(user, prefix="/api", tags=["user"])

def register_open_api_schema(app: FastAPI):
    openapi_schema = get_openapi(
        title="Test Backend",
        version="0.0.1",
        description="Test build in Python",
        routes=app.routes,
    )

    app.openapi_schema = openapi_schema

def allow_cors(app: FastAPI):
    environment = config("ENV", default="development")

    if environment != "production":
        app.add_middleware(
            CORSMiddleware,
            allow_origins=["*"],
            allow_credentials=True,
            allow_methods=["*"],
            allow_headers=["*"],
        )

app = create_app()

if __name__ == "__main__":
    uvicorn.run("api.application:app", reload=True)

# user.py:

user = APIRouter()

@user.get(
    "/users"
)
def get_all_users(
    auth=Depends(get_api_key),
):
    return True

Description

Function name does not appear in documentation (both /redoc and /docs)
Expected to have function name like:
Get All Users instead of Cython Function or Method
Running service using uvicorn
Running locally with:
uvicorn api.application:app --host localhost --port 8000 --reload
Operating System
Linux
Operating System Details
Fedora 35
FastAPI Version
python -c "import fastapi; print(fastapi.version)"
Python Version
python 3.9.10
Additional Context
Started happening recently. It was working before.

Are you trying to run FastAPI using Cython?
If so it is unlikely to work since Cython doesn't support inspect, which is probably what is being used to determine those function names.
https://cython.readthedocs.io/en/stable/src/userguide/limitations.html#inspect-support
The most obvious solution would be to use CPython.
If you are not using Cython then I am unsure.

No, I am running using uvicorn:
if __name__ == "__main__":
    uvicorn.run("api.application:app", reload = True)

I do not use Cython or CPython (directly on my code). Think that is from Fast Api or other library.

I have a very similar python code that kind of works:
aiohttp==3.8.1
aiosignal==1.2.0
alembic==1.7.6
aniso8601==9.0.1
anyio==3.5.0
APIFlask==0.12.0
apispec==5.1.1
asgiref==3.5.0
async-timeout==4.0.2
attrs==21.4.0
autopep8==1.6.0
base58==2.1.1
bitarray==1.2.2
blinker==1.4
certifi==2021.10.8
charset-normalizer==2.0.12
click==8.0.4
coverage==6.3.2
cytoolz==0.11.2
decorator==5.1.1
dependency-injector==4.38.0
eth-abi==2.1.1
eth-account==0.5.7
eth-hash==0.3.2
eth-keyfile==0.5.1
eth-keys==0.3.4
eth-rlp==0.2.1
eth-typing==2.3.0
eth-utils==1.10.0
fastapi==0.75.0
FastAPI-SQLAlchemy==0.2.1
Flask==2.0.3
Flask-HTTPAuth==4.5.0
flask-marshmallow==0.14.0
frozenlist==1.3.0
greenlet==1.1.2
h11==0.13.0
hexbytes==0.2.2
idna==3.3
iniconfig==1.1.1
ipfshttpclient==0.8.0a2
itsdangerous==2.1.0
Jinja2==3.0.3
jsonschema==3.2.0
lru-dict==1.1.7
Mako==1.1.6
MarkupSafe==2.1.0
marshmallow==3.14.1
multiaddr==0.0.9
multidict==6.0.2
netaddr==0.8.0
packaging==21.3
parsimonious==0.8.1
pluggy==1.0.0
protobuf==3.19.4
psycopg2-binary==2.9.3
py==1.11.0
pycodestyle==2.8.0
pycryptodome==3.14.1
pydantic==1.9.0
PyJWT==1.4.2
pyparsing==3.0.7
pyrsistent==0.18.1
pytest==7.0.1
pytest-cov==3.0.0
python-dateutil==2.8.2
python-decouple==3.6
python-multipart==0.0.5
pytz==2021.3
PyYAML==6.0
requests==2.27.1
rlp==2.0.1
sentry-sdk==1.5.6
six==1.16.0
sniffio==1.2.0
SQLAlchemy==1.4.31
starlette==0.17.1
toml==0.10.2
tomli==2.0.1
toolz==0.11.2
typing_extensions==4.1.1
urllib3==1.26.8
uvicorn==0.17.5
validator==0.7.1
validators==0.18.2
varint==1.0.2
web3==5.28.0
webargs==8.1.0
websockets==9.1
Werkzeug==2.0.3
yarl==1.7.2

I guess that is something related to some library version:

Solved with requirements.txt:
aiohttp==3.8.1
aiosignal==1.2.0
anyio==3.5.0
asgiref==3.5.0
async-timeout==4.0.2
attrs==21.4.0
base58==2.1.1
bitarray==1.2.2
certifi==2021.10.8
charset-normalizer==2.0.12
click==8.0.4
coverage==6.3.2
cytoolz==0.11.2
decorator==5.1.1
dependency-injector==4.38.0
eth-abi==2.1.1
eth-account==0.5.7
eth-hash==0.3.2
eth-keyfile==0.5.1
eth-keys==0.3.4
eth-rlp==0.2.1
eth-typing==2.3.0
eth-utils==1.10.0
fastapi==0.75.0
FastAPI-SQLAlchemy==0.2.1
frozenlist==1.3.0
greenlet==1.1.2
h11==0.13.0
hexbytes==0.2.2
idna==3.3
iniconfig==1.1.1
ipfshttpclient==0.8.0a2
jsonschema==3.2.0
lru-dict==1.1.7
multiaddr==0.0.9
multidict==6.0.2
netaddr==0.8.0
packaging==21.3
parsimonious==0.8.1
pluggy==1.0.0
protobuf==3.19.4
psycopg2-binary==2.9.3
py==1.11.0
pycryptodome==3.14.1
pydantic==1.9.0
pyparsing==3.0.7
pyrsistent==0.18.1
pytest==7.0.1
pytest-cov==3.0.0
python-dateutil==2.8.2
python-decouple==3.6
python-multipart==0.0.5
pytz==2021.3
requests==2.27.1
rlp==2.0.1
sentry-sdk==1.5.6
six==1.16.0
sniffio==1.2.0
SQLAlchemy==1.4.32
starlette==0.17.1
tomli==2.0.1
toolz==0.11.2
typing_extensions==4.1.1
urllib3==1.26.9
uvicorn==0.17.5
validators==0.18.2
varint==1.0.2
web3==5.28.0
websockets==9.1
yarl==1.7.2

Note: The issue still exists on most update version.

Please create a minimal reproducible example, so I can debug. The names are created on Starlette's side.

Same issue, managed to created a minimal example taken from https://python-dependency-injector.ets-labs.org/
fastapi-sqlalchemy.zip
python3 -m venv .venv
source .venv/bin/activate
poetry update

uvicorn webapp.application:app --port 8081

@Kludex, Yes it does.
For me, this happens when I use the "@inject" decorator from the dependency_injector package. However, the correct endpoint description shows up if it is implemented with "async"

Can someone create an example with a single endpoint and minimal way to reproduce it?
I can continue from there.

Yep, what @Kludex said, please create a minimal, self-contained example that can be copy pasted to replicate the problem on this side. 🤓

authors: Kludex OH-ELYADATA iongion jgould22 lcsvcn tiangolo

repo: tiangolo/fastapi


text:
Why fastapi shutdown event doesn't dump my db ?

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Description
I'm deploying an API server (with FastAPI) and a db server (with PostgreSQL) using docker-compose. I defined a shutdown event in the API server:
@app.on_event("shutdown")
def shutdown_event():
    subprocess.call(["bash", "dump_db.sh"])

The bash script dump_db.sh dumps the db in the filesystem of the container that deploys the API server. The dumped file is shared as a volume with the host. So, the host repository that started the containers should get updated dumps on every shutdown of the API server. However, it doesn't happen. Could it be some issue with the shutdown event ? If I understood, it should be triggered when I do docker-compose down , right ?
If I entry in the API server container filesystem (with docker exec -it api bash) and dump the db inside it, the host updates its dump file instantly as well, which proves the idea works.
Example Code
Minimal reproducible example:
https://drive.google.com/file/d/10GD677SDpFaV6ZFOVbc5IKQ8WlPGUJ1m/view?usp=sharing
Steps to reproduce:

docker-compose up

Access the db server using any tool you want (pgAdmin, PyCharm professional etc), the login is username and the password is password. Modify one of the entries of the table testmodel and save your modification.

docker-compose down

Notice the file populated_db.sql of the host isn't updated with the change of step 2.

Steps to show the problem seems to be with FastAPI shutdown event:

docker-compose up

Access the db server using any tool you want (pgAdmin, PyCharm professional etc), the login is username and the password is password. Modify one of the entries of the table testmodel and save your modification.

In a new terminal docker exec -it api bash

bash dump_db.sh in the container terminal that opened in step 3.

Notice the populated_db.sql of the host is updated.

Operating System
Linux (Ubuntu 20.04)
FastAPI Version
0.73.0
Python Version
3.9.12

Turned out the reason was the bash script. I was using it to postpone the launch of the API server to when the db server was fully lauched. After detaching the API server from the db server (launching them with different docker-compose.yml) and putting the launch of the API server directly in the docker-compose.yml was a solution to the problem. Thanks !

If you want to run the API server after the database is launched and ready, you can use a healthcheck in docker-compose file:
services:
  api:
    # ...
    depends_on:
      db:
        condition: service_healthy
  db:
    # ...
    healthcheck:
      test: ["CMD-SHELL", "pg_isready", "-d", "postgres"]
      interval: 5s
      timeout: 5s
      retries: 3

This way you can still launch the API server directly from docker-compose and be sure that db is running.
But I'm not sure if it will solve your problem.

@mbroton Thanks, it solved all my problems !

authors: joaopfg mbroton


text:
Add "FastAPI for Flask Users"

I have added a link to my article FastAPI for Flask Users in the external links section of documentation.

@ycd I've migrated it to the end of the list. Should adhere to the FCFS rule now.

@ycd I've fixed the merge conflicts. Can you look into it now?

Thanks, actually, you don't have to change the order, since your PR is older than the latest one, FYI.

@ycd I've no problems with the ordering. Let's merge it the way it is.

@ycd I've no problems with the ordering. Let's merge it the way it is.

Thanks @amitness ! Great article! :clap: :clap:
And thanks @ycd for the help. :bow: :cake:

authors: amitness tiangolo ycd


text:
🌐 Add Chinese translation for Tutorial - Form - Data

Add request-forms.md

Awesome, thanks @jaystone776! :bow: :clap:
And thanks @waynerv and @Laineyzhang55 for your reviews! :cake: :coffee:


text:
vfrStatementRefreshEvent not documented for vfrFormDefinition (Bugzilla Bug 3053)

This issue was created automatically with bugzilla2github
Bugzilla Bug 3053
Date: 2020-11-04T23:29:50+00:00
From: Tim Crawford <>
To:   @lgao4
CC:   @lgao4
Last updated: 2020-11-10T20:55:36+00:00

Comment 14322
Date: 2020-11-10 20:55:36 +0000
From: @lgao4
Liming takes it.

Comment 14234
Date: 2020-11-04 23:29:50 +0000
From: Tim Crawford <>

Industry Specification: ---
Target OS: ---
Bugzilla Assignee(s): @lgao4

vfrFormDefinition and vfrFormMapDefinition support vfrStatementRefreshEvent [1], but it is not documented in the VFR specification [2].
[1] https://github.com/tianocore/edk2/commit/e2a5feb9d6c468c0ddb0caed258
[2] https://edk2-docs.gitbook.io/edk-ii-vfr-specification/2_vfr_description_in_bnf/211_vfr_form_definition


text:
Add option variableWithKey

Add option variableWithKey:
If enabled, generated document will contain a variable name. e.g. @var mixed $name
neild3r/vscode-php-docblocker#106

Resolved in version 2.1.4


text:
Automate the release process

Write a script to automate a new release, From the dev branch:

run tests and do not go further if a test fail,

then, interactively this script will generate into the cli branch:

a new git tag
a new README.md
SPIR-V shaders instead of GLSL. The goal is to remove glslc dependency.
a build.zig without glslc steps.
archives of prebuilt binaries for different architectures and different profiles

This script will take a mandatory parameter to specify which type of release it is (major, minor, patch).

Nothing goes in the right direction with this issue:

outdated
opened with irrelevant expectations
opened with missing knowledge for the mentioned tools/techs

repo: tiawl/spaceporn

license: Unlicense


text:
Fix the wrong literal of timestamp-format

Signed-off-by: Al-assad yulin.ying@outlook.com
According to the documentation, the special time formatting configuration should be timestamp-format.${columnName} instead of tidb.timestamp-format.${columnName}

It was intentional to rename properties with common tidb prefix like other properties of TiDB connector and builtin connectors of flink.
Could you make a change in README.md to document this change so people know there is such change. And in the old version of connector we can change to read from both new properties with and without prefix. This way people won't be bothered during migration.

There are still some properties without prefix, they were copied from JDBC connector for table sink. When we have builtin global transaction support, all these properties are going to be replaced by different set of configurations. Maybe you can redirect description of those properties to Flink document in README.md.

There are still some properties without prefix, they were copied from JDBC connector for table sink. When we have builtin global transaction support, all these properties are going to be replaced by different set of configurations. Maybe you can redirect description of those properties to Flink document in README.md.

Thanks for your reply, I agree with you that is important to keep the key configuration items compatible in different version, actually i was confused about this recently when writing relevant unit tests.
I'll update this PR with the relevant compatibility code later.

There are still some properties without prefix, they were copied from JDBC connector for table sink. When we have builtin global transaction support, all these properties are going to be replaced by different set of configurations. Maybe you can redirect description of those properties to Flink document in README.md.

Thanks for your reply, I agree with you that is important to keep the key configuration items compatible in different version, actually i was confused about this recently when writing relevant unit tests.
I'll update this PR with the relevant compatibility code later.

In case I didn't make it clear let me rephrase it. We can remove old property in 1.13 and mark old properties deprecated in document and support reading from both properties in 1.11 and 1.12. This project is still in early adoption stage, as long as we make it clear in document, people would like to eliminate debts asap.

with you on that @sunxiaoguang

authors: Al-assad sunxiaoguang

repo: tidb-incubator/TiBigData


text:
App that shows tv static and a channel number in the top right corner

Description
Created a simple app that makes the Tidbyt look like it is showing static on channel 3 of an old TV.

Copilot

🤖 Generated by Copilot at 060b4e6
Summary
📺🌩📡

This pull request adds a new applet called TV Static, which simulates the look of an old TV showing static on channel 3. It consists of two files: manifest.yaml for the applet metadata and tv_static.star for the applet logic.

TV Static applet
Starlark code and manifest
Winter nostalgia

Walkthrough

Create and register a new applet for TV Static (link)
Define the main function to generate and render the static animation and the channel number using the Tidbyt API (link)

I have read the CLA Document and I hereby sign the CLA

repo: tidbyt/community


text:
Added Golf Handicap App

This app allows a user to display their golf handicap information, including low and high handicaps as well as soft and hard caps. The user simply inputs their GHIN/WHS number and their last name. Data is pulled from the GHIN database

.

If you run make lint in the root of the repository, it should fix the lint errors.

Added error handling, and changed the FontAwesome icon to a free icon.
Here's an example render from the error handling code:


text:
ROS2 - GPU acceleration

Adds Support for NvJPEG compression
If no GPU or NvJPEG is available, the implementation falls back to TurboJPEG
Adds support for GPU-based image rectification (NPP)

@amc-nu CC: @drwnz
I appreciate your PR and am sorry for the delay in getting back to you.
Because acceleration functions have been unified into another package, I made another PR, which picks up modifications only for v4l2_camera body on this PR. Because the acceleration-related package included in this PR conflicts with the new package, if possible, I would really appreciate it if you forgive me for closing this PR and moving the new PR for further discussion. :bow:

Sure no problem!
Thank you

Thank you for your understanding!

authors: amc-nu manato


text:
EntityBase “requestSpeedChangeWithConstantAcceleration” and “requestSpeedChange” sometimes will not throw an error

Description
Location: enetity_base.cpp: 305, 394, 457
Function isTargetSpeedReached throws an error from speed_change.cpp:47 if it is provided with an invalid entity name in the speed_change::RelativeTargetSpeed argument.
There are several places in requestSpeedChange functions where isTargetSpeedReached is invoked if-and-only-if continuous == false (early return). This means that an invalid speed_change::RelativeTargetSpeed argument will sometimes result in an error immediately, but sometimes will not.
Note that the error will be thrown eventually anyway (might remove this, as it is not technically an issue).
Solution
This could be changed by inverting the order of statements in the if (!continuous && isTargetSpeedReached(target_speed)) statement. However as noted above, this is only a suggestion and can be removed.

Invalid operation should not be permitted, so if the speed_change::RelativeTargetSpeed called with invalid name, it should throw exception.


text:
Use binary readiness probe for Elasticsearch instead of bash script

The native bash script readiness probe that comes with Elasticsearch uses curl which we've removed because of CVEs, so we've rewritten the readiness probe in golang, compiled it into a binary, and added it to the Elasticsearch image.
Description

For PR author

[x] Tests for change.
[x] If changing pkg/apis/, run make gen-files
[x] If changing versions, run make gen-versions

For PR reviewers
A note for code reviewers - all pull requests must have the following:

[ ] Milestone set according to targeted release.
[ ] Appropriate labels:

kind/bug if this is a bugfix.
kind/enhancement if this is a a new feature.
enterprise if this PR applies to Calico Enterprise only.

/merge-when-ready delete-branch

/merge-when-ready delete-branch

OK, I will merge the pull request when it's ready, leave the commits as is when I merge it, and delete the branch after I've merged it.

OK, I will merge the pull request when it's ready, leave the commits as is when I merge it, and delete the branch after I've merged it.

CI failure looks unrelated at a glance

CI failure looks unrelated at a glance

authors: Brian-McM marvin-tigera matthewdupre

repo: tigera/operator


text:
[docs] Use const where appropriate in JS snippets

My TypeScript compiler complained about the use of let in these snippets, saying e.g.:
 error  'transferErrors' is never reassigned. Use 'const' instead  prefer-const

This PR attempts to fix that in the JS docs

Closed by #2384

authors: batiati michielbdejong

repo: tigerbeetle/tigerbeetle


text:
Support filter's dot notation for arrays

Is your feature request related to a problem? Please describe.
To support more user queries, we need the ability to use "dot notation" in the filter when searching for values in arrays.
Examples:

foo.0.bar.1 - to address the exact array value with the given indexes
foo.bar - to address any array element in foo.*.bar.* arrays

Usage example:
filter = `{"foo.0.bar.1": "hello"}` // the exact array element is "hello"
filter = `{"foo.bar": "hello"}` // any element of `foo.*.bar.*` array is "hello"

Additional context
To support more query pushdown cases in FerretDB.

@garrensmith let's think about this use case as well for filtering on array fields.

Nice. This should be possible with the secondary indexes. We have to change the keybuilder and filter to support nested queries. The part I'm uncertain around is the foo.Position1.bar.Position2 I think that part would have to be done in memory.

Add support for lambda style filtering. There are two examples we can refer to:
duckdb nested functions: https://duckdb.org/docs/sql/functions/nested - list_filter
jsonpath - https://goessner.net/articles/JsonPath/

authors: garrensmith himank kesavkolla rumyantseva

repo: tigrisdata/tigris


text:
Make SizeProvider available for static methods

As a developer I should not need to create an instance of SizeProvider in order to use it. It should be a singleton, built in the initialization of the style lib.
Acceptance criteria

SizeProvider working as a static method.

repo: tiki/style


text:
ref/remove slug

change slugs to ids, small changes to migration script so it could be executed multiple times

autor slug => nuckname/username to discuss

repo: tikitko/blog-server


text:
RawKV API v2 panic

client-go version: v2.0.1-0.20220713085647-57c12f7c64f6
RawKV API v2 panic:
    Test Panicked
    runtime error: slice bounds out of range [4:1]

Stack:
    panic({0x2bc02c0, 0xc0632fc5b8})
        /disk1/home/pingyu/opt/go-1.18/src/runtime/panic.go:838 +0x207
    github.com/tikv/client-go/v2/internal/client.MapV2RangeToV1(0x0, {0xc04567e0e0, 0x1, 0x9}, {0xc04567e0f0, 0x1, 0x9})
        /disk1/home/pingyu/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.1-0.20220713085647-57c12f7c64f6/internal/client/api_version.go:87 +0x21c
    github.com/tikv/client-go/v2/internal/locate.(*CodecPDClientV2).decodeRegionWithShallowCopy(0xc000ab1e70, 0xc0570f9a00)
        /disk1/home/pingyu/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.1-0.20220713085647-57c12f7c64f6/internal/locate/pd_codec_v2.go:107 +0x172
    github.com/tikv/client-go/v2/internal/locate.(*RegionCache).OnRegionEpochNotMatch(0xc000acef70, 0x2d6e9b5?, 0xc029457880, {0xc02e0a3b00, 0x4, 0x2?})
        /disk1/home/pingyu/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.1-0.20220713085647-57c12f7c64f6/internal/locate/region_cache.go:1776 +0x4a5
    github.com/tikv/client-go/v2/internal/locate.(*RegionRequestSender).onRegionError(0xc057287cc8, 0xc029c0cab0, 0xc029457880, 0xc029c18a00, 0xc02b5673f0)
        /disk1/home/pingyu/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.1-0.20220713085647-57c12f7c64f6/internal/locate/region_request.go:1465 +0xca5
    github.com/tikv/client-go/v2/internal/locate.(*RegionRequestSender).SendReqCtx(0xc057287cc8, 0xc029c0cab0, 0xc029c18a00, {0x401e, 0x5, 0xa4}, 0x6fc23ac00, 0x0, {0x0, 0x0, ...})
        /disk1/home/pingyu/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.1-0.20220713085647-57c12f7c64f6/internal/locate/region_request.go:1043 +0x123a
    github.com/tikv/client-go/v2/internal/locate.(*RegionRequestSender).SendReq(...)
        /disk1/home/pingyu/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.1-0.20220713085647-57c12f7c64f6/internal/locate/region_request.go:233
    github.com/tikv/client-go/v2/rawkv.(*Client).sendReq(0xc00051f950, {0x3089430?, 0xc000cf20c0}, {0xc00324e8d0, 0x12, 0x18}, 0x13?, 0x0)
        /disk1/home/pingyu/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.1-0.20220713085647-57c12f7c64f6/rawkv/rawkv.go:678 +0x236
    github.com/tikv/client-go/v2/rawkv.(*Client).CompareAndSwap(0xc00051f950, {0x3089430, 0xc000cf20c0}, {0xc00324e8d0, 0x12, 0x18}, {0x0, 0x0, 0x0}, {0xc0450eaa50, ...}, ...)
        /disk1/home/pingyu/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.1-0.20220713085647-57c12f7c64f6/rawkv/rawkv.go:645 +0x3da
    github.com/pingcap/endless/testcase/rawkv/api_v2.CASLockingWorkload.func1()
        /disk1/home/pingyu/workspace/endless/testcase/rawkv/api_v2/workload.go:184 +0x25c
    golang.org/x/sync/errgroup.(*Group).Go.func1()
        /disk1/home/pingyu/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57 +0x67
    created by golang.org/x/sync/errgroup.(*Group).Go
        /disk1/home/pingyu/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:54 +0x8d

/cc @iosmanthus

repo: tikv/client-go


text:
Could we use Analytics tools to better understand our readers?

Could we use Analytics tools like google or baidu(in China) to better understand our readers?

This would require adding things like cookie disclaimers as well as asking users to opt in to this process due to European GDPR. So our data would be at best wildly imprecise.

authors: AndreMouche Hoverbear

repo: tikv/deep-dive-tikv


text:
one tikv panic after inject network-loss

Bug Report

What version of TiKV are you using?
master
[2022/02/10 10:20:38.539 +08:00] [INFO] [oltp_test.go:94] ["Current version"] [tidb=5.5.0-nightly]
[2022/02/10 10:20:38.607 +08:00] [INFO] [oltp_test.go:94] ["Current version"] [tikv=5.4.0-alpha]
[2022/02/10 10:20:38.671 +08:00] [INFO] [oltp_test.go:94] ["Current version"] [pd=5.5.0-nightly]
What operating system and CPU are you using?
8 core 16G
Steps to reproduce
[2022/02/10 10:20:38.749 +08:00] [INFO] [cmd.go:124] ["Start remote command"] [cmd="sysbench --mysql-user=root --db-driver=mysql --time=0 --report-interval=10 --mysql-db=test --mysql-host=tc-tidb.endless-oltp-tps-603190-1-257 --mysql-port=4000 --threads=64 --tables=32 --table-size=10000000 --mysql-ignore-errors=2013,1213,1105,1205,8022,8027,8028,9004,9007,1062 --rand-type=gaussian oltp_write_only run"] [nodename=benchtoolset]
[2022/02/10 10:31:38.775 +08:00] [INFO] [chaos.go:358] ["fault will last for"] [duration=9m0s]
[2022/02/10 10:31:38.780 +08:00] [INFO] [chaos.go:86] ["Run chaos"] [name=network-loss] [selectors="[endless-oltp-tps-603190-1-257/tc-tikv-3]"] [experiment="{"Duration":"","Scheduler":null,"Loss":"82","Correlation":"25"}"]
[2022/02/10 10:40:38.805 +08:00] [INFO] [chaos.go:151] ["Clean chaos"] [name=network-loss] [chaosId="ns=endless-oltp-tps-603190-1-257,kind=network-loss,name=network-loss-kjhnmgyn,spec=&k8s.ChaosIdentifier{Namespace:"endless-oltp-tps-603190-1-257", Name:"network-loss-kjhnmgyn", Spec:NetworkLossSpec{Duration: "", Scheduler: , Loss: "82", Correlation: "25"}}"]
What did you expect?
all tikv are normal
What did happened?
tikv1 panic
[2022/02/10 02:43:01.566 +00:00] [FATAL] [lib.rs:466] ["called Option::unwrap() on a None value"] [backtrace="   0: tikv_util::set_panic_hook::{{closure}}\n             at home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tikv/components/tikv_util/src/lib.rs:465:18\n   1: std::panicking::rust_panic_with_hook\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/panicking.rs:610:17\n   2: std::panicking::begin_panic_handler::{{closure}}\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/panicking.rs:500:13\n   3: std::sys_common::backtrace::__rust_end_short_backtrace\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/sys_common/backtrace.rs:139:18\n   4: rust_begin_unwind\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/panicking.rs:498:5\n   5: core::panicking::panic_fmt\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/core/src/panicking.rs:107:14\n   6: core::panicking::panic\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/core/src/panicking.rs:48:5\n   7: core::option::Option::unwrap\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/core/src/option.rs:729:21\n      raft::raft::Raft::send_append_aggressively\n             at rust/git/checkouts/raft-rs-42b8049ef2e3af07/f1f95f8/src/raft.rs:877:18\n      raft::raw_node::RawNode::on_entries_fetched\n             at rust/git/checkouts/raft-rs-42b8049ef2e3af07/f1f95f8/src/raw_node.rs:424:21\n      raftstore::store::fsm::peer::PeerFsmDelegate<EK,ER,T>::on_significant_msg\n             at home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tikv/components/raftstore/src/store/fsm/peer.rs:1198:17\n      raftstore::store::fsm::peer::PeerFsmDelegate<EK,ER,T>::handle_msgs\n             at home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tikv/components/raftstore/src/store/fsm/peer.rs:639:49\n   8: <raftstore::store::fsm::store::RaftPoller<EK,ER,T> as batch_system::batch::PollHandler<raftstore::store::fsm::peer::PeerFsm<EK,ER>,raftstore::store::fsm::store::StoreFsm>>::handle_normal\n             at home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tikv/components/raftstore/src/store/fsm/store.rs:789:9\n   9: batch_system::batch::Poller<N,C,Handler>::poll\n             at home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tikv/components/batch-system/src/batch.rs:406:27\n  10: batch_system::batch::BatchSystem<N,C>::start_poller::{{closure}}\n             at home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tikv/components/batch-system/src/batch.rs:572:17\n      std::sys_common::backtrace::__rust_begin_short_backtrace\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/sys_common/backtrace.rs:123:18\n  11: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/thread/mod.rs:477:17\n      <core::panic::unwind_safe::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/core/src/panic/unwind_safe.rs:271:9\n      std::panicking::try::do_call\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/panicking.rs:406:40\n      std::panicking::try\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/panicking.rs:370:19\n      std::panic::catch_unwind\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/panic.rs:133:14\n      std::thread::Builder::spawn_unchecked::{{closure}}\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/thread/mod.rs:476:30\n      core::ops::function::FnOnce::call_once{{vtable.shim}}\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/core/src/ops/function.rs:227:5\n  12: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/alloc/src/boxed.rs:1854:9\n      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/alloc/src/boxed.rs:1854:9\n      std::sys::unix::thread::Thread::new::thread_start\n             at rustc/cfa4ac66c194046f631ce076c75516ecfdeb77ee/library/std/src/sys/unix/thread.rs:108:17\n  13: \n  14: clone\n"] [location=/rust/git/checkouts/raft-rs-42b8049ef2e3af07/f1f95f8/src/raft.rs:877] [thread_name=raftstore-4-0]
[2022/02/10 02:43:04.092 +00:00] [INFO] [lib.rs:80] ["Welcome to TiKV"]

/type bug

/severity Critical

/assign Connor1996

/found automation

/found automation

repo: tikv/tikv


text:
test: raftstore_cases::test_conf_change::test_learner_with_slow_snapshot panic

thread 'raftstore_cases::test_conf_change::test_learner_with_slow_snapshot' panicked at 'assertion failed: `(left == right)`
  left: `2`,
 right: `1`', tests/raftstore_cases/test_conf_change.rs:779:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
             at libstd/sys_common/backtrace.rs:71
             at libstd/sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:207
   3: std::panicking::default_hook
             at libstd/panicking.rs:223
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:402
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:349
   6: integrations::raftstore_cases::test_conf_change::test_learner_with_slow_snapshot
             at tests/raftstore_cases/test_conf_change.rs:779
   7: integrations::__test::TESTS::{{closure}}
             at tests/raftstore_cases/test_conf_change.rs:703
   8: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
   9: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1453
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:635
  10: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102

Given that the current Long Term Support (LTS) versions have resolved this issue, it is now considered outdated and can be safely closed.

authors: LykxSassinator siddontang


text:
snapshot: feedback multi rocksdb

What is changed and how it works?

Issue Number: Close #14436
What's Changed:

Related changes
Check List
Tests

Manual test (add detailed scripts or steps below)

Side effects
Release note
None

/label status/can-merge

/merge

authors: bufferflies pingyu


text:
raftstore-v2: send tablet when offload checkpoint

What is changed and how it works?

Issue Number: Close #14711
What's Changed:

Related changes

PR to update pingcap/docs/pingcap/docs-cn:
Need to cherry-pick to the release branch

Check List
Tests

Unit test
Integration test

Release note
None

/merge

authors: SpadeA-Tang overvenus


text:
storage: Add perf statistics for scan detail

What problem does this PR solve?
Add perf statistics for scan detail, so we can investigate which slow operation of which CF affects the command duration.
The metrics would be like this

What is changed and how it works?
Record perf context diff every time calling next/prev/seek/seek_for_perv of cursor.
Related changes

Need to cherry-pick to the release branch

Check List

Manual test (add detailed scripts or steps below)

Side effects

Performance regression

Consumes more CPU (maybe)

Release note

/bench

/bench

/bench +tpch

/bench +tpch +sysbench +tpcc

@Little-Wallace the results show no noteworthy regression. I think it's acceptable.

Maybe using a single "tombstone" property for all cursor operation (seek + next + ...) is enough for our scenaro? Also do you think it is necessary to use PerfContext API directly, considering that PerfStatisticsInstant::delta() calculates a lot of unused peoperties for this PR?

@breeswish You mean like this?
let before = PerfContext::get().get_internal_delete_skipped_count();
iter.seek();
self.statistatics.seek_tombstone += PerfContext::get().get_internal_delete_skipped_count() - before;

PerfStatisticsInstant::delta() just counts 7 properties, not sure if reducing 7 to 1 would make any great difference. Anyway, it's easy to change, I'll change it later.
    pub internal_key_skipped_count: usize,
    pub internal_delete_skipped_count: usize,
    pub block_cache_hit_count: usize,
    pub block_read_count: usize,
    pub block_read_byte: usize,
    pub encrypt_data_nanos: usize,
    pub decrypt_data_nanos: usize,

/bench +tpcc +sysbench

PTAL @Little-Wallace @breeswish

@Connor1996 Yes, exactly!
Note that now scan details are also send back to TiDB so that it can be recorded in places as Statements and Slow Queries. How about changing kvproto.ScanDetailV2 as well to include this newly introduced metrics? For simplicy consideration, maybe merging xxx_tombstone to tombstone altogether when returning back to TiDB is enough.

@breeswish ScanDetailV2 already includes a field named rocksdb_delete_skipped_count

ping @Little-Wallace @breeswish

/merge

/merge

/test

/merge

/test

/merge


text:
TypeScript declaration is wrong in CommonJS

The .d.ts file exports a default class, which makes TypeScript look for a .default property on the exports object in CommonJS. However, in CommonJS environments, the exports object is set to the class itself. This makes it unusable in Node.js/TypeScript projects.

You can fix by telling rollup to force default export but this will make people need require("x").default but if you don't do this it will happen as soon as someone adds a named export

I think if we want interop it is best to avoid module.exports assignment altogether

@krisselden I agree. Personally, I don't mind having to do .default in Node, but that may be a minority opinion.

Is there a change this being merged in for a new version?

I was really hoping to use this lib in one of my project, because I was sure I could share code between frontend and backend, but I guess I was wrong :(

FWIW this is now solved by typescript with the allowSyntheticDefaultImports option, otherwise the typedef matches the module build

authors: atheros calebboyd jvanoostveen krisselden tomdale

repo: tildeio/route-recognizer

license: mit


text:
Mobile team view broken

The team view on mobile phones currently breaks the employee names and their calendar entries into separate rows/regions making it hard to associate names with calendar entries.

hi @jekuno, the "Team view" page was not supposed to be viewed on mobile devices as it is "hidden" for them.
Please refer to #135 for more information.

Thanks for the info. As soon as the calendar team feed supports a sufficient range (IMHO best would be 1 year back and 1 year ahead, see https://github.com/timeoff-management/application/issues/128#issuecomment-290071334) one can simply integrate the "team view" into the native calendar of the mobile phone so that it indeed isn't needed in the mobile website.

Good argument toward idea you've mentioned in #128. Thank you @jekuno!

authors: jekuno vpp

repo: timeoff-management/application


text:
Better keyboard navigation

If you ask me, using arrow keys for cell navigation is not a good design. I'm very used to using them for text manipulation in an edit field (along with the Shift and Ctrl modifiers), which I can't do with the extension. Hotkeys like Alt + left/right arrows for navigating to the previous/next cell and, most importantly, Alt + up/down arrows for the previous/next row in a column would make a world of a difference for localizing. An additional alternative hotkey like Tab / Shift + Tab for the next/previous cell would also be good.
Also, very important: switching to a new cell should make the cell editable by default without hitting Enter. It speeds up the localization process by a lot.

Hi there, thanks for the suggestion.  I'm relying on an underlying grid component to draw and deliver most functionality here.  I haven't taken a look at this, but would welcome any PRs that might make this work.  In that sense "help wanted" here ;-).

I'm considering switching to this grid: https://grid.glideapps.com/ would this work better for your navigation expectations @Susexe

It's certainly a lot better! Tab navigates to the next column, and Enter to the next row.

It's certainly a lot better! Tab / Shift + Tab navigates to the next/previous column, and Enter to the next row.

authors: Susexe timheuer

repo: timheuer/resx-editor


text:
pliny install on mac with any command segfaults

When running pliny install on mac results in segfault e.g.
zsh: segmentation fault  pliny install add-classic

There is no additional output
To Reproduce
Steps to reproduce the behavior:

Install pliny as per instructions: npm i -g @pliny/cli (pliny --version outputs '0.0.5')
Try to use pliny install e.g. pliny install add-blog ContentDir=content ContentName=Blog
See error: zsh: segmentation fault  pliny install add-blog ContentDir=content ContentName=Blog

Note that pliny install works and puts up a prompt. if you select any option from list it seg faults.
Expected behavior
Command to work and add the template.
Screenshots
If applicable, add screenshots to help explain your problem.
System Info (if dev / build issue):
Output of version command
@pliny/cli/0.0.5 darwin-x64 node-v16.5.0

Fixed in https://github.com/timlrx/pliny/pull/74 and published as 0.0.6

authors: rufuspollock timlrx

repo: timlrx/pliny


text:
Clean up the memory map

So far, we're just providing access to $0000-$8000.  Once the issue of using or not using the kernel has been sorted out, thinking about the memory map would be a good idea.  How should we provide access to other banks?  Attic RAM? etc

One thing that would be nice is moving the base page to the top of memory.  Why?  It would be nice to keep SAVESYSTEM simple (just dumping $2001-HERE to a file with a load address prefix).  With the base page in the middle of the dictionary, a SAVESYSTEM works, but it contains the current base page state so the results are non-deterministic.

Inline dma lists will also cause that issue with SAVESYSTEM

The basepage has been moved.  We've also moved some of the one time initialization code to an area of memory that's discarded after bootstrapping.  There's not much we can do about inline dma lists.


text:
Change content in remark forms occur error

When I modify the content in remark forms. There is frequent occur this error.Refresh is fine and value also changed. (Even I create a new sample project. It's also happened)
react-beautiful-dnd
An error has occurred while a drag is occurring.
Any existing drag will be cancelled.
> Uncaught useRemarkForm(markdownRemark) 'markdownRemark' was not found on the top node of the graphql query

Hi, is the sample project public so we can reproduce this easily? 🙏

Hi, is the sample project public so we can reproduce this easily? 🙏

Yes. I just fast input character in text-area field. Sometimes it happens. But for mine project, It's frequent.

Hey @Sampangpang thanks for the report!
We haven't seen this issue for a while. Could you provide some more information to help us track it down?
Run the following command to get the list of tinacms-package versions in your node_modules:
npm ls | grep tinacms | grep -v deduped

Also, please add as much information about your environment as possible:

Tool
Version

os

node

npm

Maybe how much RAM is in your machine as well.

$ npm ls | grep tinacms | grep -v deduped
gatsby-starter-tinacms@0.1.0 D:\projects\video_wall
+-- gatsby-plugin-tinacms@0.1.16
| +-- @tinacms/core@0.5.0
| `-- tinacms@0.10.0
|   +-- @tinacms/fields@0.1.16
|   +-- @tinacms/icons@0.3.9
|   +-- @tinacms/react-core@0.2.0
|   +-- @tinacms/styles@0.1.0
+-- gatsby-tinacms-git@0.2.14
| +-- @tinacms/api-git@0.4.6
| +-- @tinacms/git-client@0.4.1
+-- gatsby-tinacms-json@0.8.0
+-- gatsby-tinacms-remark@0.6.0
| +-- @tinacms/form-builder@0.2.8
+-- react-tinacms@0.8.1
| +-- @tinacms/core@0.4.4

os:       win10
node:   v12.13.1
npm:    6.12.1
RAM:   16GB
Full Error Info:
react-beautiful-dndAn error has occurred while a drag is occurring.Any existing drag will be cancelled.> Uncaught useRemarkForm(markdownRemark) 'markdownRemark' was not found on the top node of the graphql query1. Check if the 'markdownRemark' attribute is included in the GraphQL query. For example:export const pageQuery = graphql`query BlogPostBySlug($slug: String!) {markdownRemark(fields: { slug: { eq: $slug } }) {...TinaRemark// etc...}}2. If you are using an alias, For example:export const pageQuery = graphql`query BlogPostBySlug($slug: String!) {markdownRemark: markdownRemark(fields: { slug: { eq: $slug } }) {...TinaRemark// etc...}}then you can optionally use the 'queryName' option to specify a new property in place of 'markdownRemark':export const remarkForm(BlogPostTemplate, { queryName: markdownRemark })`👷 This is a development only message. It will be removed in production builds.
__stack_frame_overlay_proxy_console__ @ index.js:2177
index.js:2177 raw ErrorEvent
__stack_frame_overlay_proxy_console__ @ index.js:2177
index.js:1 Uncaught useRemarkForm(markdownRemark) 'markdownRemark' was not found on the top node of the graphql query

1. Check if the 'markdownRemark' attribute is included in the GraphQL query. For example:

export const pageQuery = graphql`
  query BlogPostBySlug($slug: String!) {
    markdownRemark(fields: { slug: { eq: $slug } }) {
      ...TinaRemark
      // etc...
    }
 }

2. If you are using an alias, For example:

   export const pageQuery = graphql`
     query BlogPostBySlug($slug: String!) {
       markdownRemark: markdownRemark(fields: { slug: { eq: $slug } }) {
          ...TinaRemark
       // etc...
       }
    }

  then you can optionally use the 'queryName' option to specify a new property in place of 'markdownRemark':

    export const remarkForm(BlogPostTemplate, { queryName: markdownRemark })
`

index.js:2177 The above error occurred in the <Component> component:
    in Component (created by HotExportedComponent)
    in AppContainer (created by HotExportedComponent)
    in HotExportedComponent (created by PageRenderer)
    in PageRenderer (at json-store.js:93)
    in JSONStore (at root.js:51)
    in RouteHandler (at root.js:73)
    in div (created by FocusHandlerImpl)
    in FocusHandlerImpl (created by Context.Consumer)
    in FocusHandler (created by RouterImpl)
    in RouterImpl (created by Context.Consumer)
    in Location (created by Context.Consumer)
    in Router (created by EnsureResources)
    in ScrollContext (at root.js:64)
    in RouteUpdates (at root.js:63)
    in EnsureResources (at root.js:61)
    in LocationHandler (at root.js:119)
    in LocationProvider (created by Context.Consumer)
    in Location (at root.js:118)
    in Root (at root.js:126)
    in div (created by Context.Consumer)
    in StyledComponent (created by styled.div)
    in styled.div
    in Unknown
    in _default (at app.js:67)

React will try to recreate this component tree from scratch using the error boundary you provided, AppContainer.
__stack_frame_overlay_proxy_console__ @ index.js:2177
index.js:2177 useRemarkForm(markdownRemark) 'markdownRemark' was not found on the top node of the graphql query

1. Check if the 'markdownRemark' attribute is included in the GraphQL query. For example:

export const pageQuery = graphql`
  query BlogPostBySlug($slug: String!) {
    markdownRemark(fields: { slug: { eq: $slug } }) {
      ...TinaRemark
      // etc...
    }
 }

2. If you are using an alias, For example:

   export const pageQuery = graphql`
     query BlogPostBySlug($slug: String!) {
       markdownRemark: markdownRemark(fields: { slug: { eq: $slug } }) {
          ...TinaRemark
       // etc...
       }
    }

  then you can optionally use the 'queryName' option to specify a new property in place of 'markdownRemark':

    export const remarkForm(BlogPostTemplate, { queryName: markdownRemark })
`

__stack_frame_overlay_proxy_console__ @ index.js:2177
index.js:2177 react-beautiful-dndAn error has occurred while a drag is occurring.Any existing drag will be cancelled.> Uncaught useRemarkForm(markdownRemark) 'markdownRemark' was not found on the top node of the graphql query1. Check if the 'markdownRemark' attribute is included in the GraphQL query. For example:export const pageQuery = graphql`query BlogPostBySlug($slug: String!) {markdownRemark(fields: { slug: { eq: $slug } }) {...TinaRemark// etc...}}2. If you are using an alias, For example:export const pageQuery = graphql`query BlogPostBySlug($slug: String!) {markdownRemark: markdownRemark(fields: { slug: { eq: $slug } }) {...TinaRemark// etc...}}then you can optionally use the 'queryName' option to specify a new property in place of 'markdownRemark':export const remarkForm(BlogPostTemplate, { queryName: markdownRemark })`👷 This is a development only message. It will be removed in production builds.
__stack_frame_overlay_proxy_console__ @ index.js:2177
index.js:2177 raw ErrorEvent
__stack_frame_overlay_proxy_console__ @ index.js:2177
react-hot-loader.development.js:2406 Uncaught useRemarkForm(markdownRemark) 'markdownRemark' was not found on the top node of the graphql query

1. Check if the 'markdownRemark' attribute is included in the GraphQL query. For example:

export const pageQuery = graphql`
  query BlogPostBySlug($slug: String!) {
    markdownRemark(fields: { slug: { eq: $slug } }) {
      ...TinaRemark
      // etc...
    }
 }

2. If you are using an alias, For example:

   export const pageQuery = graphql`
     query BlogPostBySlug($slug: String!) {
       markdownRemark: markdownRemark(fields: { slug: { eq: $slug } }) {
          ...TinaRemark
       // etc...
       }
    }

  then you can optionally use the 'queryName' option to specify a new property in place of 'markdownRemark':

    export const remarkForm(BlogPostTemplate, { queryName: markdownRemark })
`

index.js:2177 The above error occurred in the <AppContainer> component:
    in AppContainer (created by HotExportedComponent)
    in HotExportedComponent (created by PageRenderer)
    in PageRenderer (at json-store.js:93)
    in JSONStore (at root.js:51)
    in RouteHandler (at root.js:73)
    in div (created by FocusHandlerImpl)
    in FocusHandlerImpl (created by Context.Consumer)
    in FocusHandler (created by RouterImpl)
    in RouterImpl (created by Context.Consumer)
    in Location (created by Context.Consumer)
    in Router (created by EnsureResources)
    in ScrollContext (at root.js:64)
    in RouteUpdates (at root.js:63)
    in EnsureResources (at root.js:61)
    in LocationHandler (at root.js:119)
    in LocationProvider (created by Context.Consumer)
    in Location (at root.js:118)
    in Root (at root.js:126)
    in div (created by Context.Consumer)
    in StyledComponent (created by styled.div)
    in styled.div
    in Unknown
    in _default (at app.js:67)

React will try to recreate this component tree from scratch using the error boundary you provided, LocationProvider.
__stack_frame_overlay_proxy_console__ @ index.js:2177
index.js:83 Uncaught useRemarkForm(markdownRemark) 'markdownRemark' was not found on the top node of the graphql query

1. Check if the 'markdownRemark' attribute is included in the GraphQL query. For example:

export const pageQuery = graphql`
  query BlogPostBySlug($slug: String!) {
    markdownRemark(fields: { slug: { eq: $slug } }) {
      ...TinaRemark
      // etc...
    }
 }

2. If you are using an alias, For example:

   export const pageQuery = graphql`
     query BlogPostBySlug($slug: String!) {
       markdownRemark: markdownRemark(fields: { slug: { eq: $slug } }) {
          ...TinaRemark
       // etc...
       }
    }

  then you can optionally use the 'queryName' option to specify a new property in place of 'markdownRemark':

    export const remarkForm(BlogPostTemplate, { queryName: markdownRemark })
`

index.js:2177 The above error occurred in the <LocationProvider> component:
    in LocationProvider (created by Context.Consumer)
    in Location (at root.js:118)
    in Root (at root.js:126)
    in div (created by Context.Consumer)
    in StyledComponent (created by styled.div)
    in styled.div
    in Unknown
    in _default (at app.js:67)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
__stack_frame_overlay_proxy_console__ @ index.js:2177
react-dom.development.js:12212 Uncaught useRemarkForm(markdownRemark) 'markdownRemark' was not found on the top node of the graphql query

1. Check if the 'markdownRemark' attribute is included in the GraphQL query. For example:

export const pageQuery = graphql`
  query BlogPostBySlug($slug: String!) {
    markdownRemark(fields: { slug: { eq: $slug } }) {
      ...TinaRemark
      // etc...
    }
 }

2. If you are using an alias, For example:

   export const pageQuery = graphql`
     query BlogPostBySlug($slug: String!) {
       markdownRemark: markdownRemark(fields: { slug: { eq: $slug } }) {
          ...TinaRemark
       // etc...
       }
    }

  then you can optionally use the 'queryName' option to specify a new property in place of 'markdownRemark':

    export const remarkForm(BlogPostTemplate, { queryName: markdownRemark })
`

Mine graphql query is:
export const pageQuery = graphql`
query {
  markdownRemark (
    fields: {
      slug: {
        regex: "/home/"
      }
    }
  )
  {
    html
    fileRelativePath
    rawFrontmatter
    rawMarkdownBody
    frontmatter {
      title
      displayWeatherPanle
      news_api
      region_stock_api
      regionstock_appid
      regionstock_username
      regionstock_password
      city_code
      video_link
      video_replay
      video_replay_interval
      video_timing_switch
      video_timing
      stocklist_api
      stocklist_username
      stocklist_password
      cover_image {
        childImageSharp {
          fluid {
            src
          }
        }
      }
    }
  }
}
`

Awesome! Thanks a lot. That’s quite helpful. Hopefully someone gets a chance to check this out soon.

so i came across this recently while working on it, and solved it by setting TINA_GIT_DEBOUNCE_MS=5000 instead. updating to the latest version of tinacms didn't help in my case. just putting it out here in case it helps.

authors: DirtyF Sampangpang ncphillips panzerstadt

repo: tinacms/tinacms


text:
Bug on getting new labels for learn. [REPLACEMENT ISSUE]

The original issue
Id: 30
Title: Bug on getting new labels for learn.

could not be created.
This is a dummy issue, replacing the original one. It contains everything but the original issue description. In case the gitlab repository is still existing, visit the following link to show the original issue:
TODO

In GitLab by @cfunk1210 on Jun 3, 2020, 11:11
closed

repo: tinker-engine/tinker-engine


text:
Flesh out FileSystemGraph

Finish FileSystemGraph so it can be used for reading and writing to the file system and thus, able to propagate itself up to Gremlin I/O.
--NOTE: SocketGraph? :)

Will not do.

repo: tinkerpop/blueprints


text:
🛑 Marktplatz is down

In bd582a2, Marktplatz (https://mn-marktplatz.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Marktplatz is back up in 9fc5107 after 45 minutes.

repo: tinsever/upptime-mn


text:
Directors/writers not being scraped from any DB (for movies only)

Version: 2.9.13
Build: 2018-07-23 18:42
OS: Mac OS X 10.13.1
JDK: 1.8.0_161 x86_64 Oracle Corporation
What is the actual behaviour?
I may be losing my mind, but I can't seem to get directors or writers to scrape at all anymore for movies, as of the latest version. I did a search and found that there was an earlier issue with this for IMDb, with OMDB recommended as an alternative, but it doesn't work for me regardless of which scraper I use. Curiously, it still seems to work fine for for TV episodes.
What is the expected behaviour?
Self-evident.
Steps to reproduce:
Create a dummy file named "Coco.mp4" and scrape it as a Movie with any scraper, selecting the 2017 film. Obviously, this major release has director and writer metadata in every DB, but I find that it does not show up in the info panels or .nfo files.
Additional
Have you attached the logfile from the day it happened?
tmm_logs.zip

works here, bu I've seen that you DISABLED cast scraping in the settings - and this is the default value for scrapes...

Gah, my bad...didn't realize that cast and major crew both fell under that setting, but it makes plenty of sense. Thanks for the amazingly response.

authors: mlaggner raffishtenant

repo: tinyMediaManager/tinyMediaManager


text:
Refactoring duplicate slice and pad2d, const pad support to pad2d

This PR, refactors pad2d and slice, eventually slice and pad2d does the same thing both can shrink and pad with zeros but they do it with different formatted input. So I have merged them into one in pad2d and used it in slice.
As a result of this PR, pad2d now supports const padding
To sum up, slice and pad2d does the same thing eventually

Changes made in tinygrad/:
------------------------------------------------------------
files                             insertions       deletions
------------------------------------------------------------
tinygrad/tensor.py                         6               8
------------------------------------------------------------
lines added in the tinygrad folder: -2

Where is Tensor.slice actually used? Is it possible just to get rid of it entirely if pad2d essentially does what it does?

Currently it is being used in _pool and in onnx I believe, but remember that it does the same thing with different input so it may require some input formatting to replace slice with pad2d entirely.
For example, Tensor.ones(5).slice(((0,6),)) == Tensor.ones(5).pad2d((0,1))

Want me to migrate all slice to pad2d in this PR or in a seperate PR? Maybe if this gets accepted I can do it in sep PR

Thanks!

authors: ZenginU geohot tinyb0t wozeparrot

repo: tinygrad/tinygrad


text:
_tri not use arange function

Couldnt really provide solid benchmarking as speed is very volatile.
For average this PR, has ~0.37 ms for 256 .triu()
For average prev PR, has ~0.40 ms for 256 .triu()

Changes made in tinygrad/:
------------------------------------------------------------
files                             insertions       deletions
------------------------------------------------------------
tinygrad/tensor.py                         1               1
------------------------------------------------------------
lines added in the tinygrad folder: 0

hmm, not sure about this, it's less readable, and I don't think the small speedup is worth it. Cuz, arange is used the same way for all the other indexing stuff so there it's an easy target to optimize, but _pool is much more varying in its uses.

Yeah, totally agree if arange is optimized for O(N).

authors: ZenginU tinyb0t wozeparrot


text:
Update ddpg

-Update cartpole continuous to gymnasium ( render, and correct output tuple )

fix some crashing issue on tensor
modif the training pipeline to add more hyperparameter
add code for model saving
add code for inference from checkpoint

Need to find some optimize hyperparameter for early convergence, paper hyperparameter require too much compute.

I'm going to close this PR and delete this example from the repo. It doesn't belong in main tinygrad, feel free to create a repo that uses tinygrad.


text:
Generated API typing is not compatible with Store

Describe the bug
import { createStore } from "tinybase";
import fs from "node:fs";
import { createTools } from "tinybase/tools";

export const createTinyStore = () => {
	const tinyStore = createStore().setTablesSchema({
		messages: {
			id: { type: "string" },
			content: { type: "string" },
			sender: { type: "string" },
		},
	});
	return tinyStore;
};

const store = createTinyStore();
const tools = createTools(store);

const name = "tlbase";
const [dTs, ts, uiReactDTs, uiReactTsx] = tools.getStoreApi("tlbase");

fs.writeFileSync(`${__dirname}/${name}.d.ts`, dTs, "utf-8");
fs.writeFileSync(`${__dirname}/${name}.ts`, ts, "utf-8");
fs.writeFileSync(`${__dirname}/${name}-ui-react.d.ts`, uiReactDTs, "utf-8");
fs.writeFileSync(`${__dirname}/${name}-ui-react.tsx`, uiReactTsx, "utf-8");

tlbase.ts contains a function createTlbase. But the Tlbase interface is not compatible with Store typing.
For example when I want to use use tlbase in custom persister
	const persister = createCustomPersister(
		tinyStore,
                ....

I got error:
Type 'Tlbase' is missing the following properties from type 'Store': getTable, getTableCellIds, getRowCount, getRowIds, and 53 more. ts (2345) [43, 3]

Expected behavior
tlbase should have getTable and the other  methods?
Screenshots or Videos

I might have missunderstood this. It seems this is intended to be not compatible?

I should have used tlbase.getStore()

repo: tinyplex/tinybase


text:
Edit User Table Migration

PR to find a better solution for previous sqlite workarounds.

@jasonmccreary Here was the article we referenced in the previous solution:

https://stackoverflow.com/questions/20822159/laravel-migration-with-sqlite-cannot-add-a-not-null-column-with-default-value-n

As we discussed in the other PR (#38), I would like to find a better approach to making this migration without the workarounds.

@pdbreen also discussed it in PR #34

@jasonmccreary Whenever you have time, feel free to push a commit to this PR with another solution. Thank you!

@drewroberts, will do. Should have time this evening.

@drewroberts, simply allowing them to be nullable is the easiest, and most pragmatic, solution considering this package could be added to an existing application with user records. As such, either defaulting or allowing the new columns to be null are the only choices.

...either defaulting the new columns or allowing them to be null are the only choices.

That makes sense. I was hoping I wouldn't have to allow Null values, but I guess I can add application logic to handle that and throw an exception. Thank you, @jasonmccreary

authors: drewroberts jasonmccreary

repo: tipoff/authorization


text:
Set user-select: none on chartjs labels

Removes the effect of selecting the container when toggling the labels.

It is really irritating :)
This one fixes that #29

fixed in #29

authors: btk pkkummermo tipsy

repo: tipsy/github-profile-summary


text:
Support for TCP Header with Host SNI

Hello,
When setting a HostSNI prefix instead of Host on a TCP router (as opposed to HTTP) for something like Nextcloud, the subdomains are not properly scraped for creation. Samples of successful and unsuccessful below. Thanks for any insight!
Compose:
# Local Cloud Storage
  nextcloud:
    image: linuxserver/nextcloud
    container_name: nextcloud
    restart: always
    networks:
      - $TRAEFIK_NETWORK
    security_opt:
      - no-new-privileges
    volumes:
      - ${DOCKERDIR}/nextcloud:/config
      - ${STORAGEDIR}/backups/nextcloud:/data
    environment:
      - TZ
      - PUID
      - PGID
    labels:
      - "traefik.enable=true"
      ## TCP Routers
      - "traefik.tcp.routers.nextcloud-tcp.entrypoints=https"
      - "traefik.tcp.routers.nextcloud-tcp.rule=HostSNI(`cloud.$DOMAINNAME`)"
      - "traefik.tcp.routers.nextcloud-tcp.tls=true"
      - "traefik.tcp.routers.nextcloud-tcp.tls.passthrough=true"
      ## TCP Services
      - "traefik.tcp.routers.nextcloud-tcp.service=nextcloud-tcp-svc"
      - "traefik.tcp.services.nextcloud-tcp-svc.loadbalancer.server.port=443"

# Services & Media Dashboard
  organizr:
    image: organizrtools/organizr-v2
    container_name: organizr
    restart: always
    networks:
      - $TRAEFIK_NETWORK
    security_opt:
      - no-new-privileges
    volumes:
      - ${DOCKERDIR}/organizr:/config
    environment:
      - TZ
      - PUID
      - PGID
    labels:
      - "traefik.enable=true"
      ## HTTP Routers
      - "traefik.http.routers.organizr-rtr.entrypoints=https"
      - "traefik.http.routers.organizr-rtr.rule=Host(`org.$DOMAINNAME`)"
      - "traefik.http.routers.organizr-rtr.tls=true"
      ## Middlewares
      - "traefik.http.routers.organizr-rtr.middlewares=chain-authelia@file"
      ## HTTP Services
      - "traefik.http.routers.organizr-rtr.service=organizr-svc"
      - "traefik.http.services.organizr-svc.loadbalancer.server.port=80"

Organizr log:
today at 8:20 AM container rule value:  Host(`org.domain.com`)
today at 8:20 AM extracted_domains from rule:  [u'org.domain.com']
today at 8:20 AM Found Container: 1319414219a6dbfaf20323092c7b72feff709c17ebb94a020b14202a216e6023 with Hostname org.domain.com

Nextcloud log:
today at 11:33 AM container rule value:  HostSNI(`cloud.domain.com`)
today at 11:33 AM extracted_domains from rule:  []

Hi there - makes sense, We're currently searching for only host at this time, but it should be fairly easy to add support for HostSNI. I'll have something tested and released within the next two days for you.

Added in latest commit. Tagged as 4.2.0 and should be on Docker Hub momentarily.

Thanks. Timely as well due to Traefik v2.2.2 - https://docs.traefik.io/v2.2/migration/v2/#v2x-to-v222
Would you be able to also support HostHeader? ref: https://github.com/containous/traefik/issues/7020#issuecomment-656323180

Should be able to match anything after Host* so we should be ready for 2.2.2 - didn't notice 2.2.2 is out, have been eagerly awaiting it. Let me know if you run into any problems.

Agreed, looks good with the updated Traefik 2.2.2 HostHeader. Thanks!

authors: tiredofit undaunt


text:
Some additional doco

Fixes #30

These added comments are super helpful 😄

authors: avonow huntc

repo: titanclass/yew-chart


text:
other paddings ?

Hi, thank you for the asymmetric tiling script, very good results !
I was wondering about what do other type of padding do ? those defined in https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/conv.py
i.e. reflect and replicate ? Are they useless ?

Also, would it be possible to define tiling for cartographic projection ? with "north/south pole"-like tiling

Essentially each padding type describes how the generation treats the areas "outside" the image.
The default behaviour is "constant" (which I believe matches 'replicate' in that file, where each pixel outside the image is treated as having the same contents as the nearest edge pixel).
'reflect' behaviour is similar, but instead of each outside pixel being equal to the edge pixel, pixels further outside the image match pixels further inside the image, so the outside reflects the contents of the inside.
'zeroes' behaviour treats everything outside the image as black.
'circular' behaviour is what we use for tiling; each pixel outside the image is treated as having the same contents as the corresponding pixel from the opposite side of the image, so the outside wraps around the image contents.
I haven't really seen any uses for the other padding types; in general they will only change the behaviour of the image at edges, not the overall shape. In principle to some extent controlling the padding can let you match the edges of a generated image to existing content, but inpainting already does that in a much more general way.
For non-euclidean projections, unfortunately I don't see a natural way to implement them in SD's current system. It's easy to achieve the east-west tiling, but there's no way to enforce the mapping coming to a point at the top or bottom.
One thing that might be possible in SD's current system is to generate the six faces of a cube map simultaneously, padding each side with the contents of the four adjacent sides? But that would be a very complex task, definitely outside the scope of a simple tiling script like this one,
Thanks.


text:
TLAPM Pb

when compiling the following module:
------------------------------- MODULE Flat_0 -------------------------------
EXTENDS Naturals
LEMMA FLAT_R0 ==
ASSUME NEW P(_)
PROVE ((\A x1 \in Nat: \A x2 \in Nat: P(<<x1,x2>>))
=>
(\A <<st1,st2>> \in (Nat \X Nat) : P(<<st1,st2>>))
)
OBVIOUS
* Modification History
* Last modified Tue Jul 06 14:34:54 CEST 2021 by filali
* Created Tue Jul 06 14:34:22 CEST 2021 by filali
I get the following report:
Oops, this seems to be a bug in TLAPM.
Please give feedback to developers.
Failure("Module.Parser.parse_file")
Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33
Called from M_save.clocking in file "m_save.ml", line 25, characters 16-20
Called from Tlapm.read_new_modules.(fun) in file "tlapm.ml", line 455, characters 8-112
Called from Stdlib__list.fold_left in file "list.ml", line 121, characters 24-34
Called from Tlapm.main in file "tlapm.ml", line 486, characters 20-43
Called from Tlapm.init in file "tlapm.ml", line 513, characters 8-33
version == "1.5.0"
built_with == "OCaml 4.11.1"
tlapm_executable == "/Users/filali/Documents/GitHub/tlapm/bin/tlapm"
max_threads == 8
library_path == "/Users/filali/Documents/GitHub/tlapm/lib/tlaps"
search_path == << "/usr/local/lib/tlaps/"
, "/Users/filali/Documents/GitHub/tlapm/lib/tlaps" >>
zenon == "PATH='/usr/bin:/bin:/usr/sbin:/sbin:/Users/filali/Documents/GitHub/tlapm/bin:/Users/filali/Documents/GitHub/tlapm/lib/tlaps/bin'; zenon -p0 -x tla -oisar -max-time 1d "$file""
zenon version == "zenon version 0.8.4 [a268] 2017-11-14"
flatten_obligations == TRUE
normalize == TRUE

Please give feedback to developers.
Failure("Module.Parser.parse_file")
Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33
Called from M_save.clocking in file "m_save.ml", line 25, characters 16-20
Called from Tlapm.read_new_modules.(fun) in file "tlapm.ml", line 455, characters 8-112
Called from Stdlib__list.fold_left in file "list.ml", line 121, characters 24-34
Called from Tlapm.main in file "tlapm.ml", line 486, characters 20-43
Called from Tlapm.init in file "tlapm.ml", line 513, characters 8-33
version == "1.5.0"
built_with == "OCaml 4.11.1"
tlapm_executable == "/Users/filali/Documents/GitHub/tlapm/bin/tlapm"
max_threads == 8
library_path == "/Users/filali/Documents/GitHub/tlapm/lib/tlaps"
search_path == << "/usr/local/lib/tlaps/"
, "/Users/filali/Documents/GitHub/tlapm/lib/tlaps" >>
zenon == "PATH='/usr/bin:/bin:/usr/sbin:/sbin:/Users/filali/Documents/GitHub/tlapm/bin:/Users/filali/Documents/GitHub/tlapm/lib/tlaps/bin'; zenon -p0 -x tla -oisar -max-time 1d "$file""
zenon version == "zenon version 0.8.4 [a268] 2017-11-14"
flatten_obligations == TRUE
normalize == TRUE
@!!END

This is essentially a duplicate of issue #11. It should be fixed in the next release. For the moment, you have to write
LEMMA FLAT_R0 ==
ASSUME NEW P(_)
PROVE ((\A x1 \in Nat: \A x2 \in Nat: P(<<x1,x2>>))
=>
(\A st \in (Nat \X Nat) : P(<<st[1],st[2]>>))
)
OBVIOUS

authors: FilaliM muenchnerkindl

repo: tlaplus/tlapm


text:
Use a package management tool to capture dependencies

As @agnivade noted in #6 (comment), a package management tool like Poetry (https://poetry.eustace.io) should be used to capture the dependencies in a Pyproject.toml file.

Just paste a reference https://www.python.org/dev/peps/pep-0518/

authors: einverne mebeim

repo: tldr-pages/tldr-bot


text:
Babel 5.8 Support

Is there a version that works with babel 5.8?

Nevermind, found 0.12

repo: tleunen/babel-plugin-module-alias


text:
Export utils to make it easier to make custom components

It would make life much easier if the utils were exported, so you can make custom mdl components.
What's your vision on this?

Good idea :+1: .
I think that mdlUpgrade and MDLComponent should be a public API.

Why would you want to create MDL components?
Every MDL components should be available in this repo. If something doesn't exists in MDL, you can probably create them using a simple basic React way instead of using the mdlUpgrade function.

It's good for better customization, though, we can just leave note in readme about that, something like:
"If some feature is missing you can use MDLComponent/mdlUpgrade to temporarily recreate this functionality and don't forget to submit an issue :-)"
And give some example.
For example, I think that it should be possible to set custom tags everywhere.
Or I want to pass some props to some tag/component and I can't, because it's impossible in current implementation.
We should make that possible by making API public or by documenting how to achieve it (like documenting a hack).

Awesome thanks!

authors: Pagebakers faergeek tleunen

repo: tleunen/react-mdl


text:
Feature request: Cyclic search

I think it would be consistent and convenient if you could make n and N to cycle through searches rather than get stuck on top or bottom.

+1

authors: JikkuJose mMontu

repo: tmux-plugins/tmux-copycat


text:
Add Executor positive tests

Fixes https://github.com/tnagatomi/gh-fuda/issues/2

Tests failed: https://github.com/tnagatomi/gh-fuda/actions/runs/11263507185?pr=1
According to error messages, it might be some problem relating to GitHub authentication.

--- FAIL: TestCreate (0.23s)
--- FAIL: TestCreate/create_labels (0.14s)
executor_test.go:82: Create() error = authentication token not found for host github.com, wantErr false
--- FAIL: TestCreate/create_labels_dry-run (0.09s)
executor_test.go:82: Create() error = authentication token not found for host github.com, wantErr false

Perhaps there is need for replacing client implementations to use more generic http client for testing.

https://github.com/tnagatomi/gh-fuda/pull/1#issuecomment-2403485130 is fixed by 4450ebc.

repo: tnagatomi/gh-fuda


text:
Move TaskCatalogue to file where users can add/edit recipies if they want

Create a file format that handles recipes, so that people can add custom recipes easily.
Examples:
mine dirt from [dirt, grass_block, grass_path]
mine log[acacia_log, birch_log, crimson_log, dark_oak_log, oak_log, jungle_log, spruce_log, warped_log] from [acacia_log, birch_log, crimson_log, dark_oak_log, oak_log, jungle_log, spruce_log, warped_log]; any dimension
mine cobblestone from [stone, cobblestone] with wooden_pickaxe
mine netherrack with wooden_pickaxe; nether

simple planks from CollectPlanksTask; dont automine
simple cobblestone from CollectCobblestoneTask; dont automine

mob gunpowder CreeperEntity

smelt stone from cobblestone; dont automine

recipe2x2 crafting_table from [planks, planks, planks, planks]
recipe2x2 torch from [coal, , stick, ]

recipeSlab cobblestone_slab using cobblestone
recipeStairs cobblestone_stairs using cobblestone
recipeWall cobblestone_wall using cobblestone

tools wooden from planks

alias wooden_pick from wooden_pickaxe

mobCook porkchop PigEntity.class

crop carrot break carrot plant carrot
crop beetroot break beetroots plant beetroot_seeds
crop beetroot_seeds break beetroots plant beetroot_seeds

PROBLEM:
How to deal with stuff like this?
woodTasks("log", wood -> wood.log, (wood, count) -> new MineAndCollectTask(wood.log, count, new Block[]{Block.getBlockFromItem(wood.log)}, MiningRequirement.HAND));

I could manually write those out. For example:
mine acacia_log
mine birch_log
etc...

I think since this is a text based file it wouldn't hurt to add some extra lines and a comment system to make things more legible. We'll stick with that for now.

Will abandon this file idea for a much more descriptive and dynamic version, suggested by solonovamax. That will probably involve a new branch and a massive new adaptive/smart task system.
Also oops duplicate of issue 5, will close this one and add to that one instead.

repo: toccatina/altoclef


text:
feat(report): more report buttons

[x] should be able to report an exchange in exchange cards https://github.com/toctocorg/toctoc/blob/d9b0a8740e2ddb0b30999e10256515ddb01320d5/apps/www/widgets/exchanges/card/index.tsx#L88-L109
[x] should be able to report a question
[ ] should be able to report a answer
[x] should be able to report a profile

See 13b943236e9097331b08958692fe69aa2bb88779
See 7f170916a71df939eabdb17808f4d8306690705f
See ae335c5af461cdf4102a39fc175d35799fac992c

repo: toctocorg/toctoc


text:
Consolidate api lists with abhishekbanthia/Public-APIs

There is another list of public APIs that has a lot of stars: https://github.com/abhishekbanthia/Public-APIs
Should these two efforts be combined?
Related: https://github.com/abhishekbanthia/Public-APIs/issues/154

Hey @styfle, thanks!
This has already been suggested - the answer to the previous issue still stands. 😄
Thanks anyway - look forward to seeing some PRs 👍

authors: mikestreety styfle

repo: toddmotto/public-apis


text:
Add IBM Text to Speech API

Thank you for taking the time to work on a Pull Request for this project!
To ensure your PR is dealt with swiftly please check the following:

[x] Your submissions are formatted according to the guidelines in the contributing guide
[x] Your additions are ordered alphabetically
[x] Your submission has a useful description
[x] The description does not end with punctuation
[x] Each table column should be padded with one space on either side
[x] You have searched the repository for any relevant issues or pull requests
[x] Any category you are creating has the minimum requirement of 3 items
[x] All changes have been squashed into a single commit

Thanks!

authors: NaveenDA jbrooksuk


text:
Win Desktop App 7.4.184 - projects without client issue

Case: 738766

When using Desktop app and having 2 Workspaces, projects from both are now appearing in the same list, while before were separated with a clear label of a Workspace the projects is located. It is kind of confusing, are you planning to fix it? Thanks!

+1

authors: VeljkoTN joseltorres

repo: toggl/toggldesktop


text:
show position

i think ，maybe it should on the left ,like zhihu（知乎）.

你好，在我自己的网站上我也是这么设计的，但因为每个人的论坛布局不一样，放在左边边距会很难让所有人满意，而放在右边至少能保证有位置。
纯样式的东西建议自己用用户css修改

thank u reply,i will try to edit the css.

authors: chengked tohsakrat

repo: tohsakrat/flarum-table-of-content


text:
scss: @mixin text-link の font-size の決め打ちをやめる

改善詳細 / Details of Improvement

https://github.com/tokyo-metropolitan-gov/covid19/blob/74241425ec309001883d0556885738ac3bc51e3b/assets/variables.scss#L76-L83
font-size が決め打ちのため、font-size が異なるリンクに text-link を使用できない

期待する見せ方・挙動 / Expected behavior

決め打ちをやめる
text-link を include するところで font-size も include する

@include font-size
@incude text-link

将来的に include の順番次第でスタイルが変わる可能性があるのが心配
現状は共通のプロパティがないので問題なさそう

mix-in部分だけの話ではないですが、pxを直接指定するのではなくいくつか用意したfont-size(s,m,l,xl等)を指定するようにするとサイト全体の統一感がより出て良いかもしれません。
となるとルール決めが必要になってしまいますが..

@sugiii8 @amotarao

pxを直接指定するのではなくいくつか用意したfont-size(s,m,l,xl等)を指定するようにするとサイト全体の統一感がより出て良いかもしれません。

下記に現在使用されているfont-sizeを書き出してみました。参考にどうぞ！
assets/variables.scss
14px, 16px, 19px, 24px
components/ConfirmedCasesTable.vue
10px, 13px
components/DataSelector.vue
12px
components/DataTable.vue
12px
components/DataView.vue
0.6rem, 1.25rem, 12px, 30px
components/DataViewBasicInfoPanel.vue
0.6rem, 12px, 30px
components/DesktopFlowSvg.vue
14px, 15px, 16px, 18px, 20px, 21px, 22px, 23px, 24px, 25px, 26px, 27px, 35px, 41px, 42px
components/ListItem.vue
0.85rem
components/MetroBarChart.vue
12px
components/NumberDisplay.vue
40px, 60px
components/PageHeader.vue
0.875rem, 1.25rem, 1.875rem
components/SideNavigation.vue
8px, 13px
components/SvgCard.vue
12px
components/TimeStackedBarChart.vue
12px
components/WhatsNew.vue
14px
layouts/error.vue
30px
layouts/Print.vue
13px
pages/about.vue
30px
pages/flow.vue
14px, 20px, 24px, 30px
pages/parent.vue
30px
pages/worker.vue
30px

@sugiii8 @bapex コメントありがとうございます！
#904 CSSカイゼン にも記載していただけるとありがたいですー！（また Issue 分かれる可能性もありますが）

authors: amotarao bapex sugiii8


text:
feat: new extractor

Closes #63
Closes #87

Thanks for your great work Stephan!
I tried the recent version of the cli with the new extractor, and it fails on "Dynamic options" for this line:
throw this.$t(
            'dialog.importUsers.badServerResponse',
            'Invalid response from Server.\nPlease retry later.',
          );

Works OK after removing the \n.
Is this expected?

Another issue, seems like the @tolgee-key comments ignore the specified --default-namespace parameter.

@OrenChapo thanks for reporting, should be fixed in this PR:
https://github.com/tolgee/tolgee-cli/pull/91

repo: tolgee/tolgee-cli


text:
Slow parse times

I haven't done any profiling so this is a rather generic issue, but the parser performance is rather slow. For example:
> function benchmark() {
... var jquery = require('fs').readFileSync('./jquery-1.7.1.js', 'utf-8');
... console.time('parse');
... parser.parse(jquery);
... console.timeEnd('parse');
... }
> benchmark()
parse: 12042ms

I'm surprised because the theoretical performance should be quite high so I'm guessing that high number of object allocations, especially for the deep expression productions (how many nodes does it take to represent a simple string literal?) is hurting performance.

Are you on aim? I've done a lot research regarding this and it's easier to explain there.
Sent from my iPhone
On Feb 4, 2012, at 3:15 PM, James Idereply@reply.github.com wrote:

I haven't done any profiling so this is a rather generic issue, but the parser performance is rather slow. For example:
> function benchmark() {
... var jquery = require('fs').readFileSync('./jquery-1.7.1.js', 'utf-8');
... console.time('parse');
... parser.parse(jquery);
... console.timeEnd('parse');
... }
> benchmark()
parse: 12042ms

I'm surprised because the theoretical performance should be quite high so I'm guessing that high number of object allocations, especially for the deep expression productions (how many nodes does it take to represent a simple string literal?) is hurting performance.

Reply to this email directly or view it on GitHub:
https://github.com/tolmasky/language/issues/18

Sure, my SN is chocoflyer.

authors: ide tolmasky

repo: tolmasky/language


text:
Support for UIStoryboardSegue

Hi,
Is it possible to use an UIStoryboardSegue from a UIButton in Storyboard? It seems that InterfaCSS blocks my segue.
Code:
-(void)loadView
{
    [super loadView];
    self.view = [ISSViewBuilder rootViewWithStyle:@"sliderMainView" andSubViews:^NSArray *{
        return @[self.okBtn = [ISSViewBuilder buttonWithId:@"onboardingOkButton"]];
    }];

}

Well, what seems to happen here is that you are completely replacing
whatever you have set up in the storyboard (including segues) with a
different view hierarchy.
So the question is what your are tying to do here. If you only want to
assign an element id or style class to the views, you can do that directly
in the storyboard (via runtime attributes).
Cheers,
Tobias
On Friday, 16 October 2015, bangerang notifications@github.com wrote:

Hi,
Is it possible to use an UIStoryboardSegue from a UIButton in Storyboard?
It seems that InterfaCSS blocks my segue.
Code:
-(void)loadView
{
[super loadView];
self.view = [ISSViewBuilder rootViewWithStyle:@"sliderMainView" andSubViews:^NSArray *{
return @[self.okBtn = [ISSViewBuilder buttonWithId:@"onboardingOkButton"]];
}];
}
—
Reply to this email directly or view it on GitHub
https://github.com/tolo/InterfaCSS/issues/46.

Hi Tobias,
Using an id was a stupid example. I want to use it as a general style schema.
I was actually unfamiliar with runtime attributes, good stuff!
It works when I set color and font. But when I try to set the frame in my css:
frame: size(auto, 15%).bottom(0); nothing happens.
Is this the way to use this framework? I still want to use some storyboard features but avoid stuff like auto layout.
Best,
Johan

Hi Johan,
You can now (1.3.1) also use properties exposed using IBInspectable (there was a bug that prevented this from working correctly before).
There are basically two ways you can do layout with InterfaCSS:

Use absolute or parent relative rects to set the frame property
Using the slightly more powerful ISSLayout

Regardless of whatever approach you use, keep the following in mind:

Whenever you use a storyboard or xib, make sure to disable stuff that can interfere with layout handled by InterfaCSS (i.e. make sure auto layout is disabled for the storyboard/xib, and disable view autoresizing if not needed).
Using an ISSRootView as the root view of a view controller makes life easier (and is also required for ISSLayout).

Also, have a look at the sample code - that's usually a good place to start and to get inspiration (and then there is also the wiki of course).
/Tobias

Amazing Tobias, truly great work putting this together! The IBInspectable feature was just what I needed.

Thanks, glad you like it! :smiley:

authors: bangerang tolo

repo: tolo/InterfaCSS


text:
[innernet] Update to v1.3.1

Still needs testing

@Eeems made it! :)

@plan5 does this include the new bash completions?

@plan5 does this include the new bash completions?

Ah yes, it does. Should they go to /opt/usr/share/bash-completion/completions/ ?

Ah yes, it does. Should they go to /opt/usr/share/bash-completion/completions/ ?
Edit: There are also completions for elvish, fish, zsh (and powershell), so they need a place, too (except powershell).

I'm not really sure. @LinusCDE I think you've poke around with bash completions, where are our standard locations?

I think the directory mentioned by @plan5 is right (/opt/usr/share/bash-completion/completions/). I think I've added the completions for _opkg there as well, but am not sure whether this is the best way of "extending" bash-completions which provides a lot of helper functions and infra structure found in /opt/usr/share/bash-completions.
I have the draft for opkg completions as a seperate toltec-completions package in #277 . Didn't get to finalize it yet. Any input there is welcome as well and the package should already work for the most common use cases.

Just made #277 read for review. Once that is in, we will also have the bash-completions package to enable innernet completions to work.
You could probably make the package makedepend on that package then. But I don't think that this is a requirement.

Add bash completions

I'll try to look into it next week. If anyone wants to do it before then, you're welcome :)

@plan5 will you be able to add the bash completions anytime soon? I'd be willing to merge without them if you intend to add them as a separate package.

@plan5 will you be able to add the bash completions anytime soon? I'd be willing to merge without them if you intend to add them as a separate package.

Unfortunately I'm not able to work on this right now, hopefully things will slow down again a bit next month. So feel free to merge. I also didn't find time to wrap my head around the right way to provide completions yet
m)

authors: Eeems LinusCDE plan5

repo: toltec-dev/toltec


text:
Schema can't handle more foreign keys from same table

PGSync version: 1.1.28
Postgres version: 13.1
Elasticsearch version: 7.10.1
Redis version: 6.2.1
Python version: 3.7
Problem Description:
Hi. Is there a way to define schema, which would process case, where there are two foreign keys (itemOneID and itemTwoID) from same source table?
Database example:

Expected result:

Sorry this use case is currently not supported. There are plans to support explicit Foreign Key definition which would address this.

This feature has been added to the mater branch (unpublished). See its usage here
Can you try it out and let me know?
@DanielZavacky

@toluaina Hi. It seems to work well. If I'll notice any error related to this functionality, I'll let you know.
Thank you for the quick implementation

authors: DanielZavacky toluaina

repo: toluaina/pgsync


text:
Please delete this repository if you neither open source the code nor fix any issue

Please respect your user, we use this tool because it is recommended on KITTI.
The height and width are swapped in cameraInfo topics. You left comment that was fixed.
But the issue is not fixed at all. This is github, if don't want to open source your tool. Please close this repository. Because we can't fix the issue locally.

You are wasting other people's time

Not an issue at all. But I don't know how to delete the issue.


text:
🛑 Https file mirror is down

In 12aa455, Https file mirror (https://mirror.saiyans.com.ve) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Https file mirror is back up in a7cdd34 after 24 minutes.


text:
distribute with Vim?

there is an issue open in the vim repository, to distribute more colorschemes with Vim. Would you kindly give your permission to distribute this colorscheme with Vim?
(it would help, if it actually supported termguicolor mode, see #66).

see https://github.com/tomasr/molokai/issues/2#issuecomment-139385571

I would still prefer an ACK anyhow.

Sure, no problem from me.

authors: chrisbra justinmk tomasr

repo: tomasr/molokai