Fix wrong curand enum names

Discovered during review of #3282

pfnCI, test this please.

Jenkins CI test (for commit 8a0c27bd076193a27050034ebb326255b367c25e, target branch master) failed with status FAILURE.

pfnCI, test this please.

Jenkins CI test (for commit 8a0c27bd076193a27050034ebb326255b367c25e, target branch master) failed with status FAILURE.

pfnCI, test this please.

Jenkins CI test (for commit 8a0c27bd076193a27050034ebb326255b367c25e, target branch master) succeeded!

LGTM!


k8s_* metrics not showing in Digital Ocean K8s

kubeletstats receiver not working as expected.
Error log:
2023-02-22T06:53:05.880Z	error	kubeletstatsreceiver@v0.66.0/scraper.go:80	call to /stats/summary endpoint failed	{"kind": "receiver", "name": "kubeletstats", "pipeline": "metrics", "error": "Get \"http://pool-iytqfvim8-qo0cj:10255/stats/summary\": dial tcp: lookup pool-iytqfvim8-qo0cj on <IP_ADDRESS>:53: no such host"}
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver.(*kubletScraper).scrape
	github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver@v0.66.0/scraper.go:80
go.opentelemetry.io/collector/receiver/scraperhelper.ScrapeFunc.Scrape
	go.opentelemetry.io/collector@v0.66.0/receiver/scraperhelper/scraper.go:31
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).scrapeMetricsAndReport
	go.opentelemetry.io/collector@v0.66.0/receiver/scraperhelper/scrapercontroller.go:211
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).startScraping.func1
	go.opentelemetry.io/collector@v0.66.0/receiver/scraperhelper/scrapercontroller.go:193

Same problem here
Digital Oean K8s
The IP from the error is kube-dns svc:
kube-system                kube-dns                                                          ClusterIP                <IP_ADDRESS>                                           dns:53►0╱UDP dns-tcp:53►0 metrics:9153►0
Errors logs:
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x 2023-09-06T22:25:02.668Z    error    scraperhelper/scrapercontroller.go:213    Error scraping metrics    {"kind": "receiver", "name": "kubeletstats", "data_type": "metrics", "error": "Get \"https://w-pool-uy4qaitgx-y74ag:10250/stats/summary\": dial tcp: lookup w-pool-uy4qaitgx-y74ag on <IP_ADDRESS>:53: no such host", "scraper": "kubeletstats"}                                                      │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).scrapeMetricsAndReport                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x     go.opentelemetry.io/collector/receiver@v0.79.0/scraperhelper/scrapercontroller.go:213                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).startScraping.func1                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x     go.opentelemetry.io/collector/receiver@v0.79.0/scraperhelper/scrapercontroller.go:192                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x 2023-09-06T22:25:32.665Z    error    kubeletstatsreceiver@v0.79.0/scraper.go:68    call to /stats/summary endpoint failed    {"kind": "receiver", "name": "kubeletstats", "data_type": "metrics", "error": "Get \"https://w-pool-uy4qaitgx-y74ag:10250/stats/summary\": dial tcp: lookup w-pool-uy4qaitgx-y74ag on <IP_ADDRESS>:53: no such host"}                                                             │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver.(*kubletScraper).scrape                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x     github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver@v0.79.0/scraper.go:68                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x go.opentelemetry.io/collector/receiver/scraperhelper.ScrapeFunc.Scrape                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x     go.opentelemetry.io/collector/receiver@v0.79.0/scraperhelper/scraper.go:20                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).scrapeMetricsAndReport                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x     go.opentelemetry.io/collector/receiver@v0.79.0/scraperhelper/scrapercontroller.go:210                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).startScraping.func1                                                                                │
│ signoz-k8s-metrics-exporter-k8s-infra-otel-agent-dnl9x     go.opentelemetry.io/collector/receiver@v0.79.0/scraperhelper/scrapercontroller.go:192

Tracking issue: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/22843

@paulohmorais Meanwhile, you can use cAdvisor with otel-collector-metrics instead of kubeletstats receiver. As mentioned: https://github.com/SigNoz/dashboards/issues/13#issuecomment-1589036731

Resolved by https://github.com/SigNoz/charts/pull/380


Monzo Webhook Error - account must be formatted as a uuid (universally unique identifier)

Hi,
I tried setting up the monzo webhook but get this error on heroku, any ideas?
YNAB::Client.create_transaction Response: {"error":{"id":"400","name":"bad_request","detail":"account must be formatted as a uuid (universally unique identifier)"}}

Can you send me the ynab account id environment variable you used?

Can you send me the ynab account id environment variable you used?

I don't think it asked me for one, only

YNAB_ACCESS_TOKEN
YNAB_BUDGET_ID
URL_SECRET

I don't think it asked me for one, only

YNAB_ACCESS_TOKEN
YNAB_BUDGET_ID
URL_SECRET

You will need YNAB_MONZO_ACCOUNT_ID too as per https://github.com/syncforynab/fintech-to-ynab/wiki/import:-Monzo

You will need YNAB_MONZO_ACCOUNT_ID too as per https://github.com/syncforynab/fintech-to-ynab/wiki/import:-Monzo

Do I also need to do the #import section too? I'm not interested in importing old transactions just new ones pushed via the webhook

Do I also need to do the #import section too? I'm not interested in importing old transactions just new ones pushed via the webhook

Do I also need to do the #import section too? I'm not interested in importing old transactions just new ones pushed via the webhook

You don't have to do it if you don't want to :)

Do I also need to do the #import section too? I'm not interested in importing old transactions just new ones pushed via the webhook

You don't have to do it if you don't want to :)

Perfect, thanks very much!

Perfect, thanks very much!

@totalitarian so all sorted? Am I ok to close this?

@totalitarian so all sorted? Am I ok to close this?

Yes please

Yes please


Different window display behavior depending on application focus

On macbook pro "all desktops" view some windows not displayed if focus is not on goki (widgets.go) app, while are displayed if focus is in goki:
Focus not in goki:

Focus in goki:

COMMENT: FWIW, the difference seems to be user-level windows vs. admin-level windows? But I don't believe I have seen than differential display behavior in other applications.

this is a "feature" of macOS -- the dialog windows are considered "minor" and hidden unless app is in focus.


git lfs error while downloading dataset

Below is the error I'm getting while trying to clone the repo:

Cloning into 'DNS-Challenge'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 132377 (delta 0), reused 0 (delta 0), pack-reused 132374
Receiving objects: 100% (132377/132377), 23.95 MiB | 2.25 MiB/s, done.
Resolving deltas: 100% (134/134), done.
Updating files: 100% (132177/132177), done.
Downloading datasets/clean/book_00648_chp_0004_reader_11560_3.wav (992 KB)
Error downloading object: datasets/clean/book_00648_chp_0004_reader_11560_3.wav (a6a917c): Smudge error: Error downloading datasets/clean/book_00648_chp_0004_reader_11560_3.wav (a6a917c0a7fdcdce1147c20a77ef5eeb79ee54ffdd69d4fcb4b13996d978fef5): batch response: Post "https://github.com/microsoft/DNS-Challenge.git/info/lfs/objects/batch": dial tcp: lookup github.com: no such host

Errors logged to D:\TF\DTLN-tfjs\DNS-Challenge.git\lfs\logs\20200716T111635.8111709.log
Use git lfs logs last to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: datasets/clean/book_00648_chp_0004_reader_11560_3.wav: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

Did you ever solve this issue? I'm having a similar problem

Anyone else having it take forever to download the dataset?

Any solutions? I'm having a similar problem too.

Any solutions? I'm having a similar problem too.

@liziru @tvuong123 I managed to solve the issue by cloning via ssh instead of https. Hope this helps.

@liziru @tvuong123 I managed to solve the issue by cloning via ssh instead of https. Hope this helps.


Authorization page

Fix redirect when clicking cancel on authorization page.

Working on this

@consolelogreece I have already created PR on this.


ENG-9000: Fixes third group of broken links

ENG-9000: Fixes third group of broken links

I validated the SM links, but not the CS ones, since they haven't been published yet.

LGTM


Ignore replica errors when applying migrations

CREATE TABLE IF NOT EXISTS still raises errors if replicas exist, like
following:
E           infi.clickhouse_orm.database.ServerError: Replica /clickhouse/prod/tables/noshard/posthog.infi_clickhouse_orm_migrations/replicas/ch1-01 already exists (version <IP_ADDRESS> (official build)) (253)

This ignores these errors.

Note I reverted this - was a bad idea. #5 was the real fix


Clicking VIdeo to Play/Pause doesn't trigger an event

Hi,
playing or pausing the video by simply clicking on it doesn't trigger a state change event.
my Videogular HTML looks like this:
<videogular vg-player-ready="controller.onPlayerReady($API)"  vg-update-time="controller.onUpdateTime($currentTime, $duration)" vg-update-state="controller.onUpdateState($state)" vg-complete="controller.onCompleteVideo()" vg-theme="controller.config.theme">
  <vg-media vg-youtube="rel=1;showinfo=1" vg-src="controller.config.sources"></vg-media>
</videogular>

and the controller's onComplete function is just:
controller.onCompleteVideo = function() {
  console.log("onCompleteVideo");
};

I just tested this out and I can confirm that it works.  I now have onCompleteVideo() executed after the video is done playing.  I recommend merging this fix.

@keckelt can you help me for continue maintaince this project, i don't have time for this.

I'm currently working on my first angularjs application, so I only have
little knowledge here and none about bower and so on.
I guess it's best if I just continue to create pull request when I discover
any issues(?).
Best,
Klaus
Am 12.03.2015 06:33 schrieb "Phạm Ngọc Quang Nam"<EMAIL_ADDRESS>
:

@keckelt https://github.com/keckelt can you help me for continue
maintaince this project, i don't have time for this.
—
Reply to this email directly or view it on GitHub
https://github.com/NamPNQ/bower-videogular-youtube/issues/30#issuecomment-78426468
.

ok, tks you :dancer:


forest_fuzz: Don't mutate immutable fields.

The state machine forest options assume that these fields will never be updated, so the table_mutable for those secondary indexes doesn't have enough space for tombstones.
Fixes https://github.com/tigerbeetledb/tigerbeetle/issues/309 and reveals https://github.com/tigerbeetledb/tigerbeetle/issues/390.

bors r+


Allow array of regexp strings for testRegex

Summary
Resolves https://github.com/facebook/jest/issues/7180
Creating dynamic configurations to include or exclude specific things is difficult because of inconsistency in how config allows specifying inclusions and exclusions.

testRegex allows only a single regexp
testMatch allows an array of globs
testPathIgnorePatterns allows an array of regexps

So there's no format (regex or glob) that can be used to build an array that works both for including and excluding.
This PR allows testRegex to accept an array of regex strings as well as a string, resolving this problem.
Because this is the first configuration option that's overloaded with more than one valid type, jest-validation has also been enhanced with syntax that allows specifying more than one valid example in configuration.
Test plan

existing unit tests pass (except as expected where internal config changed types)
added unit tests to cover valid and error conditions

Mind opening up a separate PR with the jest-validate changes? I think it mkaes sense as a separate commit in the tree. Please include and update to its readme as well 🙂

I think I need to make a new PR to have it depend on the jest-validate one https://github.com/facebook/jest/pull/7207 that I just created, so closing this.

Hmm. Well, github doesn't seem to treat the new one any differently though I branched it from the #7207. I guess I just don't know how to make a dependent pull request... anyway, this has been replaced with #7209


[BUG] Illegal string offset 'locale'

Version information

Laravel: v5.7.*
Voyager: v1.1.*
PHP: 7.2
Database:5.7

Description

After updating a user, error occurs
 Illegal string offset 'locale'
in vendor\tcg\voyager\src\Models\User.php
Screenshots

Please show us your user-model (app/User.php).
Maybe you are using casts in it which would override our casts.

In my case, you only need to remove the protected $casts = ... section of the code and it worked just like @emptynick suggested :)

You need settings to casts
protected $casts = [         'email_verified_at' => 'datetime',         'settings' => 'json' ];
It's worked on me

@NHNajibullah  pretty simple solution,thanks.

@NHNajibullah pretty simple solution,thanks.

Looks like you guys figured it out. Closing.

Total newbie here! Working through the tutes, but got stuck at this error. Can someone tell me_

how to add the settings to casts?
If that is at all a good idea, because it seems that it will be overwritten on the next update?
Thank you!

This was taken care of in #3909 especially commit https://github.com/the-control-group/voyager/pull/3909/commits/56e72e668a7c124f69172dbac1f12ba3bdad7272
Be aware that this will force you to remove the settings-cast again when upgrading to 1.2


Should LPUSH return the length of the list?

According to the official Redis LPUSH documentation:

Return value
Integer reply: the length of the list after the push operations.

When I use mockredis, the same function returns None.

Check redis-py client test case:
https://github.com/andymccurdy/redis-py/blob/81429b44acff3f238a212a1651241b49cde76c85/tests/test_commands.py#L640
Test indicates the function should return the queue length upon completion.

Anyone able to comment the issue / review the fix?

Now that this is merged, is it possible to get a new version with the fix?


Missing main switch

My enclosure contains some "interrupteur" which are not "disjoncteur" nor "différentiel".
Also, in the same category, "para-foudre" would be welcome.

Ok for "parafoudre"!
Regarding the "interrupteur," @Arnaud73  could you please provide more details about its specific function or type? This information will help me better understand which name and logo would be most appropriate to use.

Here is one example: https://elec44.fr/interrupteurs-modulaires-bipolaires/107166-hager-interrupteur-modulaire-2-poles-63a-ref-sbn263-3250615510211.html
It physically looks like an "interrupteur différentiel" or a "disjoncteur", but it's neither of them: it does not switch off when current is leaking or when current exceeds a specific limit. It is just a "dumb" switch that can be used to switch of power, just like basic switches we find everywhere in a house.
For large enclosures, 2, 3, 4+ rows, it acts like a quick disconnect to switch everything off, especially useful when the "disjoncteur d'abonné" is far away (next to the street for example)


argo-lite: log download failed with error.

Download any workflow log from argo-lite failed with following message:
TypeError: Cannot read property 'split' of undefined
at app.get (/app/dist/main.js:106:47)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at next (/app/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at /app/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
at next (/app/node_modules/express/lib/router/index.js:275:10)
at jsonParser (/app/node_modules/body-parser/lib/types/json.js:109:7)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)

Thanks for catching it! Fixing


from projects import other_project doesn't work in Python3

always gets:KeyError
works in python2.7.10
doesn't work both in python3.3 and python3.4
if  import projects
then help(projects)
in Python3
Help on package projects:

NAME
    projects

PACKAGE CONTENTS

FILE
    /data/python/<projects>

in Python2.7
Help on package projects:

NAME
    projects

FILE
    /data/python/<projects>

PACKAGE CONTENTS

DATA
    __loader__ = <pyspider.processor.project_module.ProjectsLoader object

seems fixed?


Hi，Ask a question about the allocator.

Hi, When I browsed the code about allocator, I found that the allocator used by FrameVector is StdAlloc<char, FrameAlloc>, but the allocate function of StdAlloc calls bs_alloc, and finally calls this,
`static void* allocate(size_t bytes)
{
#if BS_PROFILING_ENABLED
incAllocCount();
#endif
		return malloc(bytes);
	}`

This seems to have nothing to do with FrameAlloc, Is there a problem with my understanding? thank you for your work.

A specialization of MemoryAllocator<T>::allocate() is called, MemoryAllocator<FrameAlloc>::allocate() which internally calls bs_frame_alloc and not malloc.


We are really trying to make 'google-api-python-client' to work

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Hello,
We have been trying to get the python script running in Jupiter Notebooks. We think we came really far but for some reason we can't get it to run properly. There are 2 error messages that I would like to check and get feedback on:

" NameError: name 'file' is not defined". We don't know what it truly means but did a 'work around' declaring
"from pathlib import Path
cwd = Path.cwd()"
before running the script and rename 'file' to 'cwd'. It seem to have fixed the issue but once we run it again. We cot the following error.

The error massage we received is:
usage: ipykernel_launcher.py [-h] [--auth_host_name AUTH_HOST_NAME]
[--noauth_local_webserver]
[--auth_host_port [AUTH_HOST_PORT [AUTH_HOST_PORT ...]]]
[--logging_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
property_uri start_date end_date
ipykernel_launcher.py: error: the following arguments are required: start_date, end_date
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2
Perhaps we need to use the code in the console: python search_analytics_api_sample.py https://www.example.com 2015-05-01 2015-05-30 but also this doesn't seem to do the trick.
Hope somebody can help us out as we really want to use the code and GSC opportunity.
Thanks in advance!!
Cheers,
Jeroen

Hi @jeroenhamel,
Are you able to share more code to allow me to reproduce the error NameError: name 'file' is not defined? Were you running the sample search_analytics_api_sample.py? Please provide as much detail as possible.
Regarding the error from ipykernel_launcher, it looks like it's referring to missing the command line arguments. Please check to make sure that you've provided the necessary arguments. You can also share the code that you're using.  If you're trying to integrate with jupyter notebooks, you may also consider running the python code directly in a jupyter notebook rather than trying to run the sample from command line within the notebook but that would require changing the sample code.

Hi @parthea
Thanks for you for you answer and indeed I was thinking it has likely to do with missing command line arguments as we wanted run it directly in the jupyter notebooks.
This is the code we used:
`from future import print_function
import argparse
import sys
from googleapiclient import sample_tools
Declare command-line flags.
argparser = argparse.ArgumentParser(add_help=False)
argparser.add_argument('property_uri', type=str,
help='https://www.elsevier.com')
argparser.add_argument('start_date', type=str,
help=('Start date of the requested date range in '
'YYYY-MM-DD format.'))
argparser.add_argument('end_date', type=str,
help=('End date of the requested date range in '
'YYYY-MM-DD format.'))
def main(argv):
service, flags = sample_tools.init(
argv, 'searchconsole', 'v1',doc,cwd,parents=[argparser],
scope='https://www.googleapis.com/auth/webmasters.readonly')
request = {
  'startDate': flags.start_date,
  'endDate': flags.end_date,
  'dimensions': ['date']

}
response = execute_request(service, flags.property_uri, request)
print_table(response, 'Available dates')
Get totals for the date range.
request = {
    'startDate': flags.start_date,
    'endDate': flags.end_date
}
response = execute_request(service, flags.property_uri, request)
print_table(response, 'Totals')

Get top 10 pages for the date range, sorted by click count, descending.
request = {
    'startDate': flags.start_date,
    'endDate': flags.end_date,
    'dimensions': ['page'],
    'rowLimit': 10
}
response = execute_request(service, flags.property_uri, request)
print_table(response, 'Top Pages')

Get the top 10 queries in India, sorted by click count, descending.
request = {
    'startDate': flags.start_date,
    'endDate': flags.end_date,
    'dimensions': ['query'],
    'dimensionFilterGroups': [{
        'filters': [{
            'dimension': 'country',
            'expression': 'ind'
        }]
    }],
    'rowLimit': 10
}
response = execute_request(service, flags.property_uri, request)
print_table(response, 'Top queries in India')

Group by both country and device.
request = {
    'startDate': flags.start_date,
    'endDate': flags.end_date,
    'dimensions': ['country', 'device'],
    'rowLimit': 10
}
response = execute_request(service, flags.property_uri, request)
print_table(response, 'Group by country and device')

Group by total number of Search Appearance count.
Note: It is not possible to use searchAppearance with other
dimensions.
request = {
    'startDate': flags.start_date,
    'endDate': flags.end_date,
    'dimensions': ['searchAppearance'],
    'rowLimit': 10
}
response = execute_request(service, flags.property_uri, request)
print_table(response, 'Search Appearance Features')

def execute_request(service, property_uri, request):
return service.searchanalytics().query(
  siteUrl=property_uri, body=request).execute()

def print_table(response, title):
print('\n --' + title + ':')
if 'rows' not in response:
print('Empty response')
return
rows = response['rows']
row_format = '{:<20}' + '{:>20}' * 4
print(row_format.format('Keys', 'Clicks', 'Impressions', 'CTR', 'Position'))
for row in rows:
    keys = ''
    # Keys are returned only if one or more dimensions are requested.
    if 'keys' in row:
        keys = u','.join(row['keys']).encode('utf-8').decode()
print(row_format.format(
    keys, row['clicks'], row['impressions'], row['ctr'], row['position']))

if name == 'main':
main(sys.argv)`
It would be great if we can run python script directly in Jupiter Notebooks.
As mentioned we tried to resolve the issue with file by declaring CWD.
We also updated the start and end date in to:
argparser.add_argument('start_date', type=str,
help=('2020-09-01'))
argparser.add_argument('end_date', type=str,
help=('2020-10-01'))
That however also didn't work.
Please let me know if there is any other info you need that could be helpful.
Thanks again.
Regards,
Jeroen

Hi @jeroenhamel,
Thanks for providing the notebook. It looks like you're not providing arguments as expected. I found a related issue here !94 where a user added the sample to an existing notebook.
I managed to use code from the sample in a colab notebook by following these steps.

Copy the python code from the sample into a cell in a Colab or Jupyter notebook.
Run the following code:

from google_auth_oauthlib import flow
from apiclient.discovery import build

client_id = "X"
client_secret = "X"
scopes = ["https://www.googleapis.com/auth/webmasters.readonly"]
client_config = {
    "installed": {
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "token_uri": "https://accounts.google.com/o/oauth2/token",
        "redirect_uris": ["urn:ietf:wg:oauth:2.0:oob"],
        "client_id": client_id,
        "client_secret": client_secret
    }
}

app_flow = flow.InstalledAppFlow.from_client_config(
    client_config, scopes=scopes
)

credentials = app_flow.run_console()
service = build('searchconsole', 'v1', credentials=credentials)
request = {
  'startDate': '2020-11-01',
  'endDate': '2020-11-20',
  'dimensions': ['query']
}
response = execute_request(service, 'https://domain.com/', request)

Let me know if the above code works.

Hi @parthea ,
Thanks for providing the code. We did the following:

Added the sample in Jupiter notebook and included our client_id, client_secret and updated the domain to contain the correct domain.
Run the code and filled in the authorization code.
we received the following error message:

NameError                                 Traceback (most recent call last)
 in
20
21 credentials = app_flow.run_console()
---> 22 service = build('searchconsole', 'v1', credentials=credentials)
23 def get_all_keywords(service):
24     request = {
NameError: name 'build' is not defined

we run the same code in Google Colab but receive the same error message.
after some investigation we can't seem to figure out what we need to change to resolve the 'build' issue.

If you have any suggestions, please let me know.
Thanks again.
Regards,
Jeroen

Hi Jeroen,
Based on that error, it looks like build was not imported properly. One thing I noticed is that  I incorrectly had from apiclient.discovery import build in my example due to a copy and paste error.  The correct import should be from googleapiclient.discovery import build. I updated my example. Please can you try again and make sure to run from googleapiclient.discovery import build before you run the sample?

Hi @jeroenhamel,
I'm following up to see if you've had a chance try the test again. Please let me know.

@jeroenhamel , I'm going to close off this issue. Please re-open it if you're still having trouble!

Hi @parthea,
First of all I'd like to thank you for all your contribution here. It is working now and we are smiling :-)
When running the code we found that the limit is 25k rows.
So when running the script we run in until the end of the amount of rows. In our case a little over 26k rows for one day of Google Search Console results. When summing the clicks and impressions the amount of the code run via Google Colab is much lower.
Is this something that is known? We are aware that there is a limit per API call but were expecting when running within these limits the data would match.
Thanks again.
Regards,
Jeroen

Hi @jeroenhamel,
I'm glad that it's working! Since this is a question specific to the Search Console API rather than the library google-api-python-client, I would recommend to post the question in the community page here to get help from someone with Search Console API expertise.


Separate method new and create in the notes controller

Right now, we use the new action both to display the form, and to create a new action, To follow rails convention we need to separate the two.
On top of that, the create action does not work.

This issue is fixed, create now works due to this commit: https://github.com/MarkUsProject/Markus/commit/027ea601c0f8a16c3e0b08ccdc6e3f3c65a881bc

Nelle, this can be closed now.

Thanks !


Blank Page Issues on Kindle Colorsoft

Hello,
I have had the new Kindle Colorsoft e-reader for 2 days. When I try to convert mangas with KCC using the CS12 profile, I get a white blank page every few pages. When I go back to the main menu and reopen the manga, the page then loads correctly instead of being blank.
However, this is very annoying as I have to repeat this every few pages. I didn't have this problem with my previous Kindle Paperwhite 7. Is there a workaround for this?
Thank you in advance for the response!

That's concerning. Maybe the colorsoft has a bug?
Try normal jpg.
Try no upscale.

I have tried JPG, no upscale and PNG. Unfortunately, this problem also occurs here.
However, if I turn the pages very slowly, it seems to occur only rarely.


Adds some configuration to tweak how updates are performed:

Allows enabling/disabling of:

Coalesce updates: when receiving updates from the data source while an update is being performed, only the last one will be actually executed.
Fast updates: allows next performBatchUpdate before completion of the previous one
Tracks visible views: keeps track of cells on-screen instead of relying on indexPathsForVisibleItems and indexPathForCell, which are unreliable on fast updates.

[Current coverage][cc-pull] is 64.84%

Merging [#145][cc-pull] into [dev][cc-base-branch] will decrease coverage by <.01%

@@                dev       #145   diff @@
==========================================
  Files            60         60
  Lines          3207       3257    +50
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           2082       2112    +30
- Misses         1125       1145    +20
  Partials          0          0

Powered by Codecov. Last updated by [d87fe40...f5e576a][cc-compare]
[cc-base-branch]: https://codecov.io/gh/badoo/Chatto/branch/dev?src=pr
[cc-compare]: https://codecov.io/gh/badoo/Chatto/compare/d87fe40c90e3e321e13c8a533f45a1fb3786b81e...f5e576a9acf37cd0fccb40562ba4b4aca9ed3279
[cc-pull]: https://codecov.io/gh/badoo/Chatto/pull/145?src=pr


Fixing reloading of rules.

I'm not sure if you guys encountered this but the rules folder was appended twice so I would get something like the following rules/rules/rule_name.yaml where I just wanted rules/rule_name.yaml.
This fixed the problem. Tell me if this works for you guys.

Nice find! This seems to have gone unnoticed for so long because with full file paths, os.path.join will deduplicate the rules folder path.

I've fixed this in another place and fixed a test as well. Closing this PR for #175


[LuckPerms] Failed to init storage implementation

I don't understand why i have this error .. ''[LuckPerms] Failed to init storage implementation'' on MySQL
i have setup

Db
User who have acces to this db and grant him the perms
Setup the config file with the user login info

i don't know what im doing wrong ..

Once again you have left out the most important part - the console errors. Please send them here.

ya sorry im tired
https://hastebin.com/qewedudivi.md

java.lang.NullPointerException: address

Check your config formatting, make sure you've provided an address for the database.

you can take a look i think i have setup all correctly
https://hastebin.com/ebayatosiy.shell

try using just localhost instead of localhost:3306, or, throw it in "quotes"

i have tried to set it just to localhost but same error, nothing change

someone ??? i have this problem for 2 days i ve tried everything the people say me to do but nothing work .....

i want to die i solve my problem by reinstalling the plugin i was on the point to punch someone in the face


Conform grafting auto-resolve feature to latest main

We may revive this later, but ideally this will be solved in graph-node.


bazel: Shift flaky test report to bazel

Signed-off-by: Ryan Northey<EMAIL_ADDRESS>Commit Message: bazel: Shift flaky test report to bazel
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

/lgtm deps

Please merge main and we are good to go.

/lgtm deps


docs(sbb-time-input): re-activate chromatic and cleanup stories

Codecov Report

Merging #2173 (4580d84) into master (ab917b0) will decrease coverage by 18.34%.
Report is 1814 commits behind head on master.
The diff coverage is 30.54%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@             Coverage Diff             @@
##           master    #2173       +/-   ##
===========================================
- Coverage   54.85%   36.51%   -18.34%
===========================================
  Files          49      288      +239
  Lines        1659    10986     +9327
  Branches      406     2395     +1989
===========================================
+ Hits          910     4012     +3102
- Misses        671     6709     +6038
- Partials       78      265      +187

Files
Coverage Δ

...c/components/sbb-action-group/sbb-action-group.tsx
100.00% <100.00%> (ø)

...mponents/sbb-alert-group/sbb-alert-group.events.ts
100.00% <100.00%> (ø)

src/components/sbb-alert/sbb-alert.events.ts
100.00% <100.00%> (ø)

...onents/sbb-autocomplete/sbb-autocomplete.events.ts
100.00% <ø> (ø)

src/components/sbb-card-badge/sbb-card-badge.tsx
100.00% <100.00%> (+11.11%)
:arrow_up:

src/components/sbb-card/sbb-card.stories.tsx
0.00% <ø> (ø)

src/components/sbb-card/sbb-card.tsx
90.00% <ø> (ø)

.../sbb-checkbox-group/sbb-checkbox-group.stories.tsx
0.00% <ø> (ø)

...mponents/sbb-checkbox-group/sbb-checkbox-group.tsx
33.33% <ø> (ø)

src/components/sbb-checkbox/sbb-checkbox.events.ts
0.00% <ø> (ø)

... and 55 more

... and 239 files with indirect coverage changes
:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!


[FEA] Disable Spark UI for integration tests

Is your feature request related to a problem? Please describe.
I recently had a CI job fail because the UI could not bind to the desired port. We don't need a UI when we run the integration tests, especially in CI. It is also a potential security problem if the environment the tests are running in are not set up properly.  We should probably just set spark.ui.enabled to false for our integration test runs by default. Especially if we know that they are running in local mode.

I think the standalone cluster we run for the shuffle tests should also take this config change.

ok, I think we need to config spark.ui.enabled=false.


Invalid command "project_diff_preview"

Description
enter :
:VGit project_diff_preview
Got above errors
Is this command out of date?
Also a few commands not working (no output)
e.g.  VGit buffer_history
My config:
require('vgit').setup()

Is there any field that needs to setup to non-default to allow those commands to be working?

nvim --version output: nvim-0.6.0
Operating system:  Mac

Hi! Sorry for the inconvenience, I pushed some recent commits renaming some commands and made a typo on the command project_diff_preview, it should be fixed now.
Regarding the command buffer_history, it only works when you have a buffer related to a git file. So you have to execute the command while being on the buffer. If that doesn't work let me know!

I think there might be something wired when I lazy load the plugin. If is lazyloaded, some of the commands may not work. I will enable the logs and see what is going on.

Ok, seems related to lazyloading.  It works well now with lazy disabled.


Storage Location on purchase and donation should default to the Default Intake Location

Summary
The storage location on purchases and donations should default to the Default Intake Location specified on the organization
Why
Saves bank time and possible mistakes - especially if the default is not the first in the drop down list.
Details
Recreation
While signed in as<EMAIL_ADDRESS>The default intake location is specified in:  My organization | Edit (about half-way down the page).
The new donation screen can be reached via: Donations | New Donation
The new purchase screen can be reached via: Purchases | New Purchase
Both of these should be defaulted to the default intake location,  if it has been specified.  Otherwise, no default.
Criteria for completion

[ ] behaviour as described above
[ ] automated tests that confirm that behaviour

Hello @cielf
I would like to work on this issue and wanted to clarify the expected behaviour:
when the user loads the form, the Default Intake Location that appears should be whatever value that is specified on the organization and then the user should manually select a different Storage Location where applicable.
Is this correct or is there a different interpretation of how this should behave?
Thanks in advance 🙏🏿

That sounds right -- and that should happen on purchases and donations (note:  the default rules for distribution storage location are different).


Aider don't recognize folder/(variable) pattern

Issue
Aider don't recognize next.js folder/(route-group) pattern
https://nextjs.org/docs/app/building-your-application/routing/route-groups#convention
Version and model info
Aider: 0.61.0

Thanks for trying aider and filing this issue.
Seems to work fine for me?
$ aider
──────────────────────────────────────────────────────────────────────────────────────────────────────────────
Aider v0.62.2.dev
Main model: claude-3-5-sonnet-20241022 with diff edit format, infinite output
Weak model: claude-3-5-haiku-20241022
Git repo: .git with 1 files
Repo-map: using 1024 tokens, auto refresh
Use /help <question> for help, run "aider --help" to see cmd line args
──────────────────────────────────────────────────────────────────────────────────────────────────────────────
> /add folder/(route-group)

Added /Users/gauthier/tmp/new/folder/(route-group) to the chat
──────────────────────────────────────────────────────────────────────────────────────────────────────────────
folder/(route-group)
>

I mean for suggestion

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, I will close it in 7 days.Note: A bot script made these updates to the issue.


RUSTSEC-2020-0095: difference is unmaintained

difference is unmaintained

Details

Status
unmaintained

Package
difference

Version
2.0.0

URL
https://github.com/johannhof/difference.rs/issues/45

Date
2020-12-20

The author of the difference crate is unresponsive.
Maintained alternatives:

dissimilar

similar

treediff

diffus

See advisory page for additional details.

fixed


Changing frequency bands default to avoid including alpha band if user provides a value

This addresses #26. I left the default in, but just made sure that the alpha band would not be included if the user provides a value.

@dengemann merge if happy
can it impact our results with @apmellot ?

I understand that this only produces a bug if you do not pass all bands.

thanks @hubertjb !!


PlaceHolderAPI

PlaceholderAPI got updated -> error when registering placeholders, I got it fixed by using 2.4.0 instead of 2.4.4
https://github.com/PlaceholderAPI/PlaceholderAPI/releases

Resuming development for a bugfix update
Added to TODO

Done in 4.0.0 (relased soon)


Push Fonts (woff2, woff)?

This plugin works great! I noticed it does not apply to fonts such as woff2 and woff. Is this possible?

That would be cool, but WordPress doesn't have a way for themes & plugins to enqueue fonts the way they do with CSS & JavaScript files.
But if you wanted to push a font file yourself, you could use code like (note: this is untested):
function server_push_font_files() {
  $font_src = '/path/to/font.woff';

  // Send the Link header for server push
  header(
    sprintf(
      'Link: <%s>; rel=preload; as=font',
      esc_url( http2_link_url_to_relative_path( $font_src ) )
    )
    , false
  );
}
add_action('init', 'server_push_font_files');

// Add a <link rel="preload"> tag as a fallback
function preload_font_files() {
  $font_src = '/path/to/font.woff';
  printf( '<link rel="preload"  href="%s" as="font">', esc_url($font_src) );
}
add_action( 'wp_head', 'preload_font_files', 99, 1);

Great, thanks! I'll give that a shot.

Hmm, interesting... It does work; however, the fonts end up getting delivered sent three times now. They are pushed right away and then loaded after all of the pushed files twice. One of those extra loads might have to do with your fallback suggestion and the other with how the theme enqueues the font files (I used the FontSquirrel font generator)? If you have any ideas, that'd be great. If not, though, I'll keep playing with it.
Thanks!

In case anyone else ever comes across this, I discovered a non-code way to push fonts/images. See here.


revise esteemer algorithm to reflect causal pathway-based preferences

consider how to address candidates with multiple causal pathways
review moderators, including history, trend slope, and gap size

prepare document and/or slides for lab meeting


Auto add in region to usage stats query with the specified region in the parameter

It seems to me that a rather particular scenario, when the user writes >0.1, selects a region. And we need to automatically add the in region to users query.
Now deepEquals:
    await getBrowsers('>0.1% and <10%, dead', 'FR'),
    await getBrowsers('>0.1% in FR and <10% in FR, dead', 'FR')

[x] Added getQueryWithRegion(query, region) for modify query. Convert popularity expressions to popularity_in_place
[x] Added getQueryFromQueryParsed. It's browserslist.fromParse for browserslist.parse
[x] Added a test to check the query conversion
[x] Return updated query in JSON response

Additionaly

[x] Update test different coverage statistics for another regions
[x] Replace unused alias Global to alt-ww

Bug — Closes #443
https://browsersl.ist/?q=>1%25&region=alt-as

>1% should show the same browsers list on any region value. Otherwise, user will not understand that we change their input.

New idea
https://github.com/browserslist/browsersl.ist/issues/446


All tests are running in each job instead of proper chunks (config returned in config.js file)

Issue:
While running tests on Github Actions I noticed that instead running tests for each chunk in each job it runs all of tests.
Logs shows that chunks are properly divided and split index is different for each job.
I'm returning config as in docs:

(return should be probably moved after all defined tasks, but anyway it should at least start testing chunks).
Cypress version: 13.8.1
Part of log output:
Split 1

Split 2

Here's my yml file:
name: E2E Cypress Tests Develop - Parallel

on:
  workflow_dispatch:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  setup:
    environment:
      name: non-production
      url: ${{ steps.set_environment_related_parameters.outputs.url }}
    runs-on: ubuntu-latest
    steps:
      # Wait for new version of app to be up and running
      - name: Sleep for 1 minute
        run: sleep 60s
        shell: bash

      - name: Checkout code
        uses: actions/checkout@v4
        with:
          repository: "Sample repository name"
          token: ${{ secrets.ACCESS_TOKEN }}
          ref: main

      - name: Setup gmail tester credentials
        run: echo '${{ secrets.E2E_DEV_GMAIL_TESTER_CREDENTIALS_JSON }}' > credentials.json

      - name: Setup gmail tester token
        run: echo '${{ secrets.E2E_DEV_GMAIL_TESTER_TOKEN_JSON }}' > token.json

      - name: Setup nodemailer env
        run: echo "${{ secrets.E2E_DEV_NODEMAILER_ENV }}" >> .env

  prepare:
    environment:
      name: non-production
      url: ${{ steps.set_environment_related_parameters.outputs.url }}
    runs-on: ubuntu-latest
    # explicitly set the output of this job
    # so that other jobs can use it
    outputs:
      matrix: ${{ steps.prepare.outputs.matrix }}
    steps:
      # generate the list using a bash script
      - name: Create matrix ⊹
        id: prepare
        # for reusable workflow, must use the full action reference
        uses: bahmutov/gh-build-matrix@main
        with:
          n: 4 # number of containers to output

      - name: Print result 🖨
        run: echo '${{ steps.prepare.outputs.matrix }}'

  test-split:
    environment:
      name: non-production
      url: ${{ steps.set_environment_related_parameters.outputs.url }}
    needs: [setup, prepare]
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        with:
          repository: "Sample repository name"
          token: ${{ secrets.ACCESS_TOKEN }}
          ref: main

      - name: Print GitHub variables 🖨
        run: npx @bahmutov/print-env GITHUB

      - name: Print GitHub strategy context 🖨
        run: echo '${{ toJSON(strategy) }}'

      - name: Run Cypress tests
        uses: cypress-io/github-action@v6
        with:
          config-file: cypress_config_CI.config.js
          browser: chrome
          record: false
        env:
          CYPRESS_PLAID_CLIENT_ID: ${{ secrets.E2E_DEV_PLAID_CLIENT_ID }}
          CYPRESS_PLAID_SECRET: ${{ secrets.E2E_DEV_PLAID_SECRET }}
          CYPRESS_AUTH0_USERNAME: ${{ secrets.E2E_DEV_AUTH0_USERNAME }}
          CYPRESS_AUTH0_PASSWORD: ${{ secrets.E2E_DEV_AUTH0_PASSWORD }}
          CYPRESS_AUTH0_AUDIENCE: ${{ secrets.E2E_DEV_AUTH0_AUDIENCE }}
          CYPRESS_AUTH0_CONNECTION: ${{ secrets.E2E_DEV_AUTH0_CONNECTION }}
          CYPRESS_AUTH0_URL: ${{ secrets.E2E_DEV_AUTH0_URL }}
          CYPRESS_AUTH0_CLIENT_ID: ${{ secrets.E2E_DEV_AUTH0_CLIENT_ID }}
          CYPRESS_AUTH0_CLIENT_SECRET: ${{ secrets.E2E_DEV_AUTH0_CLIENT_SECRET }}
          CYPRESS_MAILOSAUR_API_KEY: ${{ secrets.E2E_DEV_MAILOSAUR_API_KEY }}
          CYPRESS_MAILOSAUR_SERVER_ID: ${{ secrets.E2E_DEV_MAILOSAUR_SERVER_ID }}
          CYPRESS_DB_SSH_PRIVATE_KEY: |
            ${{ secrets.E2E_DEV_DB_SSH_PRIVATE_KEY }}
          CYPRESS_DB_DST_ADDR: ${{ vars.E2E_DEV_DB_DST_ADDR }}
          CYPRESS_DB_PASSWORD: ${{ secrets.E2E_DEV_DB_PASSWORD }}
          CYPRESS_DB_DATABASE: ${{ vars.E2E_DEV_DB_DATABASE }}
          CYPRESS_RECORD_KEY: ${{ secrets.E2E_DEV_CYPRESS_RECORD_KEY }}
          CYPRESS_STRIPE_SK: ${{ vars.E2E_DEV_STRIPE_SK }}
          CYPRESS_STRIPE_BASIC_PLAN_PRICE_ID: ${{ vars.E2E_DEV_STRIPE_BASIC_PLAN_ID }}
          CYPRESS_STRIPE_PLUS_PLAN_PRICE_ID: ${{ vars.E2E_DEV_STRIPE_PLUS_PLAN_ID }}
          CYPRESS_STRIPE_ENTERPRISE_PLAN_PRICE_ID: ${{ vars.E2E_DEV_STRIPE_ENTERPRISE_PLAN_ID }}
          SPLIT: ${{ strategy.job-total }}
          SPLIT_INDEX: ${{ strategy.job-index }}
          DEBUG: cypress-split

  save-artifacts-on-failure:
    environment:
      name: non-production
      url: ${{ steps.set_environment_related_parameters.outputs.url }}
    needs: test-split
    runs-on: ubuntu-latest
    if: failure()
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Save screenshots on failure
        uses: actions/upload-artifact@v4
        with:
          name: cypress-screenshots
          path: cypress/screenshots

      - name: Save videos on failure
        uses: actions/upload-artifact@v4
        with:
          name: cypress-videos
          path: cypress/videos

  notify:
    environment:
      name: non-production
      url: ${{ steps.set_environment_related_parameters.outputs.url }}
    needs: [setup, test-split]
    runs-on: ubuntu-latest
    steps:
      - name: Send slack failure notification
        if: failure()
        uses: rtCamp/action-slack-notify@v2
        env:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
          SLACK_COLOR: ${{ job.status }}
          SLACK_MESSAGE: "E2E Tests Failed. See details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
          SLACK_USERNAME: "Cypress E2E Tests"

      - name: Send slack success notification
        if: success()
        uses: rtCamp/action-slack-notify@v2
        env:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
          SLACK_COLOR: ${{ job.status }}
          SLACK_MESSAGE: "E2E Tests Passed. See details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
          SLACK_USERNAME: "Cypress E2E Tests"

After moving return to the end of setupNodeEvents it works as expected


add support for postdeploy script - fixes #76

I tested this with the master, echo, and external branches on:
https://github.com/jamesward/cloud-run-button-postdeploy-test
I don't know Go, so this PR might need a lot of help.

needs docs once we are good with the impl.

What do you think of making the script options always a "file" (whose existence we check for at the beginning, so that it doesn't fail ahead of time).
This way, "postdeploy": "cmd arg1 arg2 arg3" maybe won't work, but we will allow executing "postdeploy": "scripts/post-deploy.sh".
Developers will need to make the file executable (+x) and we'd just exec them directly (without needing sh -c).
This sounds like a more bulletproof design to me.

Initially I was trying to not deviate from the app.json spec, but I agree that it would be better to only support a list of filenames.  And since 100% portability of app.json files isn't a goal, we should do what makes the most sense for us.  So I'll update this.

This has been rebased on #88 so we should get that merged first.  Reason for that is that postcreate made more sense than postdeploy since the later put the challenge of not setting things up twice on the author.  Now we can check if the app is being created and if so, run postcreate.  In the future we can also add precreate, postupdate, etc.
Also, I changed it from using scripts since that would have made this incompatible with Heroku app.json.

I'm thinking through how we can have a precreate command that will create a Cloud SQL instance so that the service can startup on first revision with everything it needs.
We need to create a DB password which we can do with a generated secret env var.  Then use that password env var in precreate when we create the Cloud SQL instance.  But we also need to set an env var based on some values from precreate like: CLOUD_SQL_CONNECTION_NAME=$project:$region:$cloudsqlinstance
I'm not sure how to handle that part.
Another related one is something like:
{
  "hooks": {
    "precreate": {
      "commands": [
        "gsutil mb gs://$BUCKET"
      ]
    }
  }
}

We can get BUCKET from the env prompt but I think it needs to have the Project ID in it.  We could make the user enter it, but they've already selected it, so that seems weird.  It might be that we need to expand on the env var generator to enable this use case.
I don't think this requirement blocks this feature but it is something that we should think about.

Here is an example of the output with the set -x:
[ ! ]Running command:
	echo 'GONNA CREATE'
+ echo 'GONNA CREATE'
GONNA CREATE
[ ! ]Running command:
	date
+ date
Fri Jan 10 15:40:18 MST 2020

It is a bit verbose.

ok if you've verified it works we can merge.

Verified to work with: https://github.com/jamesward/nodebars/tree/buttonify

Good to go 👍

Thanks for all your help!


Fix broken release notes link used in CSV

/test istio-operator_unittests

Thnaks @jwendell , this really helped.
$ make clean gen restore-manifest-dates

Would it be useful to have something like htmlproofer in this and other repos to make sure links stay correct?

Would it be useful to have something like htmlproofer in this and other repos to make sure links stay correct?

That will be good to add.

/test istio-operator_unittests

/retest


Chinese Garbled

when i use it, the chinese will be garbled

@JohnnyWongC How do you solve this Chinese garbled problem? 😱

I literally tested that and it works for me. Next step for debugging would be for you to provide a github repo sample with the bug that I could validate didn't work.

I test it,some file can unzip correctly,some file still garbled
test file.zip: https://www.jianguoyun.com/p/DavrLy0Q-c3-BRjQroMB
`c#
protected static void ZipUncompress(string file, string folder)
{
using (var archive = ZipArchive.Open(file))
{
foreach (var entry in archive.Entries.Where(entry => !entry.IsDirectory))
{
entry.WriteToDirectory(folder, new ExtractionOptions()
{
ExtractFullPath = true,
Overwrite = true
});
}
}
}
`

not fixed on version 0.32.2 yet.


malformed package reference in csproj when choosing to install UIExtenderEx

As the subject says, when choosing to install UIExtenderEx the package reference in the csproj is malformed which results in the project being unable to be loaded.
To reproduce, simply create a new project with that option enabled (in my case I had Harmony and MCM also enabled).
The generated line is
<PackageReference Include="Bannerlord.UIExtenderEx" Version="2.3.0 IncludeAssets="compile" />
It's failing to close out the "Version" attribute with a "

Thanks for reporting this! Fixed, will be available soon!


Check kernel approximation

Progress on #177

Coverage remained the same at 26.741% when pulling 771ed63de117e8b424642424bd0a5edf91695a9f on nbgl:master into 2861af76a5aaeda3fe900df724f77b9a4ccc2bbb on chengsoonong:master.


Consider open up console/stdin input actions so other processes like editors can control what tests to run

Clear and concise description of the problem
I run neovim and put my editor in one tmux window and vitest in watch mode in another. Sometimes, when debugging a test, I want to isolate a particular test case meaning I don't want to run all tests just a specific one. What I currently do is to put test.only and hope me writing to the source file does not trigger any other files.
But to properly chose which test to run, I need to change the test selection inside of Vitest's console, type t then select a name in the prompt.
I understand this might sound like a non-issue. But I believe that if I'm right there in the code, with my cursor just under the test. It should be fairly easy to send this information through a socket or something.
Suggested solution
I poked around in packages/vitest/src/node/stdin.ts and saw that most of the code that does this is already here.
What if we made vitest open up a socket during the watch mode that accepted instructions for what tests to run? Essenially do everything that the stdin.ts does except that it gets that information from a socket.
Then I could easily write a plugin in lua for neovim that sends theses instructions sourced from the editor itself.
I would be up for submitting a PR of this.
Alternative
No response
Additional context
I stumbled upon this feature by noticing that .only does not run only the test the whole codebase, only in that particular file.
I chatted with Vladimir about this here
To which I came up with this idea.
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Vitest already opens up a socket connection if you provide --api flag. You can control it with @vitest/ws-client package

I looked at that package briefly and concluded that it probably doesn't work in the way that I would want? Looking at the source it has code for managing test results/on canel/on finish events?
I could be wrong though.

These are events it receives, you need to look at WebsocketHandlers to see the methods you can call.

Looks like you are right. You can probably write a plugin with that. Closing.


Allow escaping arbitrary characters in double-quoted strings

Currently just strings delimited with " " or """ """ only support escaping a limited set of characters - https://just.systems/man/en/chapter_30.html
Most other languages have a syntax for escaping arbitrary Unicode characters.  Having such syntax in just would make some justfiles easier to work with:

Not all valid Unicode characters are printable.  And even within the set of printable characters, some text editors don't always do a good job of displaying some printable Unicode characters.  Representing these characters as sequence of ASCII characters is not subject to such problems.
If you know the escape sequence of a character you want to use, having escape syntax means you can just type the character rather than needing to find the character in a character map and copy+paste.

Additionally, such syntax would be helpful if the recipe attribute suggested in https://github.com/casey/just/issues/647#issuecomment-2329480131 gets implemented.
Thinking about just's backwards-compatibility guarantee, maybe the best syntax would be copying Rust's \u{...}, since it allows a flexible and unambiguous number of hex digits?

This would be great, and I agree that \u{…} is the ideal syntax. It'll require modifying Parser::parse_string_literal, which will be a bit of work to make it process multi-line escape sequences.


Template function thread safety

Hi, this is more of a question than an issue:
Are the template functions returned by the IHandlebars.Compile method thread safe?
On my app startup, I want to compile and cache several template functions and re-use them for requests (with different model values) without having to compile them over and over again.  Is this a supported use case?
Thanks,
Jacob

Hi Jacob.
You can create instance of handlebars with custom configuration.
Custom configuration contains:

Dictionary of Block Helpers*
Dictionary of Helpers*
** Dictionary of Registred Templates**
Expression name resolver*

You can create instance of handlebars with custom configuration.
var configuration = new HandlebarsConfiguration { ExpressionNameResolver = new UpperCamelCaseExpressionNameResolver() };
var handlebars = Handlebars.Create(configuration);

// register helpers
handlebars.RegisterHelper(HandlebarsHelpers.ResourceHelperKey, HandlebarsHelpers.ResourceHelper);

// register templates
handlebars.RegisterTemplate(name, template);

Registration of templates, helpers move to your app startup.
Accessing your templates for rendering:
configuration.RegisteredTemplates.TryGetValue(name, out template);

And you have now your compiled template. :)

Each template is compiled to a (mostly) state-less function. Unless you are doing something like changing the definition of helper on one thread while executing templates that reference the helper on another, you should be thread-safe.

Assuming this answered your question, closing. Feel free to re-open if you still need help.


Support connecting to Fully REST interface via SSL

Fully Kiosk supports connections via https using an SSL certificate as described in https://www.fully-kiosk.com/en/#remoteadmin . It would be useful for this package (as well as the HA integration) to support SSL encrypted sessions to the tablet, with an option to allow SSL self-signed certificates to be used. Right now, it looks like the library supports http connections only, and doesn't work if Fully is configured to use an SSL certificate.

Implemented in https://github.com/cgarwood/python-fullykiosk/pull/14  - published as version 0.0.12


Handle longer form names as like in BPMN editor

Describe the Bug
Longer form names are not handled nicely as like in the BPMN editor. In the BPMN editor we could see the use of ellipsis for long names and tooltip on hovering but not in the form editor.
Steps to Reproduce

Create longer names for any of the Form properties or the form itself.
We could see that the name overflows the text field .

Expected Behavior

We could make use of the same behavior of diagram editor using ellipsis and on hovering the name is displayed in the tooltip.
Environment

OS: [ Windows 10]
Camunda Modeler Version: [4.11.0]
Execution Platform: [e.g. Camunda Platform, Camunda Cloud]

https://user-images.githubusercontent.com/85225325/136403011-d7ada76e-5fe2-44e9-b19d-129f75c2d105.mp4

I think we can simply rely on the new properties panel then. During the design finishing (https://github.com/bpmn-io/bpmn-properties-panel/issues/90) we will ensure titles get cropped correctly.


Translate /addons-and-dependencies/index.md, Ember 5.4

Please assign yourself to the issue or let a comment at the very moment you start the translation.
File: guides/release/addons-and-dependencies/index.md
From Ember: 5.1
To Ember: 5.4
diff --git a/guides/addons-and-dependencies/index.md b/guides/addons-and-dependencies/index.md
index 92a485b87..f47c65b1f 100644
--- a/guides/addons-and-dependencies/index.md
+++ b/guides/addons-and-dependencies/index.md
@@ -15,7 +15,7 @@ is an addon that allows you to use SASS/SCSS in your applications. You can insta
 ember install ember-cli-sass

-This will modify your `package.json` (and `package-lock.json` or `yarn.lock`), typically bringing in other dependencies. Some addons will also add
+This will modify your `package.json` (and `package-lock.json` or `yarn.lock` or `pnpm-lock.yaml`), typically bringing in other dependencies. Some addons will also add
 additional files to your projects when relevant.

 There are many addons that cover all kinds of use cases. For more detail, as well as examples of what addons can do,

It was a good first issue but I prefer to take it now and work on something up to date to improve the catchup script.


Make {value_t,view_t} visitors work

For consideration only.
Those changes are required to build cocaine-framework-native.
Also, question: does value_t::~visitor_t have to be part of visitor interface? Because blackhole never holds or frees visitor objects itself, so it seems virtual destructor should not be required.

Current coverage is 82.21%

Merging #96 into master will increase coverage by +0.63% as of b16df6b

@@            master     #96   diff @@
======================================
  Files           55      55
  Stmts         1151    1119    -32
  Branches         0       0
  Methods        130     130
======================================
- Hit            939     920    -19
  Partial          0       0
+ Missed         212     199    -13

Review entire Coverage Diff as of b16df6b

Uncovered Suggestions

+0.63% via ...detail/sink/file.hpp#32...38
+0.63% via src/registry.cpp#70...76
+0.54% via src/wrapper.cpp#19...24
See 7 more...

Powered by Codecov. Updated on successful CI builds.

Thanks! I'll check in 10-20 minutes.

Also, question: does value_t::~visitor_t have to be part of visitor interface? Because blackhole never holds or frees visitor objects itself, so it seems virtual destructor should not be required.

I think it has to, because a User can destroy visitors via interface pointer.

Merged manually in fdaa1a9286d1ed27c8255b234dbea9b55a36ae62 and 0d87d30a4da38717e11fe1b2c3020c4e6b66b5c7


Commenting Out Default Auth

This is pending a custom class write for authentication classes.

Closing in favor of #432


SAP Cloud Platform Git Repository

Hi,
For UI5 projects it's possible to integrate the WebIDE to a repository in the SAP Cloud Platform like this:

I was wondering If someone already used this Git Server in the SCP to manage ABAP code via abapGit?

I tested it some years ago, it worked back then, but not currently using it

Hi @Sdfraga
We use SCP Git Service for backups (background mode) without any problems!
For several reasons for development we use github.

Thanks for the feedback @bigld and @larshp .
I am currently using Azure to manage my developments. Like github, the management of issues on those tools are quite good and SCP Git Service seems weeker for that purpose for example.
So for your development workflow process you use github and then you use SCP just to create backups of your repos is it?
Can you explain me what is your main purpose with that setup?
Maybe it could be interesting to create a page in the documentation with Scenarios where we could share how do we use the abapGit for the development process..?
What do you think?

see https://blogs.sap.com/2017/05/07/abap-using-git-for-safety-and-transparency/

also have https://github.com/larshp/abapGit/issues/2087 open

Thank you @larshp
In fact #2087 already takes care of the "Scenario" suggestion. Nice.
Regarding SCP Git Service, I will give it a run and check if I could use it.


Bug: semantic ui not displaying icon

Hi,
According to documentation semantic ui made a complete port from font awesome 4.7.0. In this version there is an icon named cog, you can see it below:
http://fontawesome.io/icon/cog/
BUT for some reason semantic ui is not displaying this icon. ALL OTHER ICONS from FONT AWESOME that I could test are displaying correctly! Just this icon cog. The icon "cogs" is working fine but the icon "cog" is not. Below is the simplest example showing that this icon is not working. I display 3 icons, 2 are ok an one is not (which is the "cog").
http://quemfazsite.com.br/temp/criar-site123.php
Or I am doing something wrong again? I wouldnt be surprised with so many mistakes I already made here with semantic ui git.

can you try setting icon instead? it's the same icon afaik.

I could try the setting icon, not problem, I was not aware of it. BUT if you say in the documentation you did a complete port (exactly as stated there), it should be complete port. It took to me at least 15 or 20 minutes to realize the icon I wanted was not in the icon set semantic ui said ported from font awesome.
Anyway, I think this solution is again a tweak, just like most of the others solution you good guys posted to me in many other threads I opened. If this is not a complete port it should be said that some icons are missing or that they are already implemented in the semantic ui own's icon set

instead of visiting Font-Awesome website, kindly refer to Semantic-UI docs which will provide you with whatever your needs.
You can find All Icons in the Icon Docs, no need to visit Font-awesome website imho.

Thanks my friend, next time I will not check anymore fontawesome website!

I didn't mean to be rude but you could atleast check the official docs
before creating an issue which is totally unrelated to the framework
itself.
On Sep 7, 2017 8:51 PM, "batata004"<EMAIL_ADDRESS>wrote:

Thanks my friend, next time I will not check anymore fontawesome website!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Semantic-Org/Semantic-UI/issues/5710#issuecomment-327832845,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AS3FbWZOelqqhprO_Ey8AhaGLP0OoIf3ks5sgAnhgaJpZM4PD_Wv
.

No no, you were not rude, I even clicked the +1 in your answer!  You should remove:
"Semantic includes a complete port of Font Awesome 4.7.0"
And replace it with:
"Semantic includes icons from Font Awesome 4.7.0 but their names may be different"

This is still the case. In documentation it is specified:
Semantic includes a complete port of Font Awesome 5.0.8 designed by the FontAwesome team for its standard icon set.
Some of the icons I wanted to use from Font Awesome set are not available in Semantic UI. Can the docs be updated to specify this? The current definition is misleading and disappointing. I expected that I could use ANY icon from Font Awesome collection but that is not the case.

@Djuka SUI does in fact include a complete port of Font Awesome 5.0.8, keep in mind Font Awesome is currently up to 5.0.13


Interpolation with Named Paramters

I am trying to run a query using named parameters like this:
select
*
from
some_table
where
client like @CLIENT_NAME

The @ symbol appears to be the correct syntax based on the docs here but when I run this with this adapter like this:
queryTerm := "test"
rows, err := stmt.QueryContext(ctx, sql.Named("CLIENT_NAME", queryTerm))

I get Error: [42703] Column "CLIENT_NAME" does not exist

The argument parsing looks really similar to what Godror is initially doing to pull out arguments but then later it checks the name field and binds appropriately.
It seems like the Vertica adapter is binding the values here and isn't checking for a name in the argument. Does that switch need to be modified to append the right data to the message?

Thanks for the feature request. As it is, the Vertica wire protocol doesn't support server-side binding of named parameters (only positional). The client-side driver could be made to mimic this behavior in Vertica with a map of named arguments and their indices in the statement, then forcing an interpolation.
Although this is not on the roadmap today, I've added it to the backlog. However, if you wish to contribute an implementation, please make sure to sign the CLA.

I might be willing to take a stab at emulating the behavior since it would be really useful for my use case but could you elaborate on what you mean about it not supporting server-side binding of named parameters?
The docs here have this example:
SELECT customer_name, customer_address, customer_city, customer_state
FROM customer_dimension WHERE customer_state = @STATE;

it seems like @STATE is a named parameter, not just a positional argument in this case.

I'll have to ask @tomwall to explain that side further.

The Vertica wire protocol support server-side binding of positional parameters (i.e. prepared statements), this means the driver sends the query (using ? as parameter placeholder) and parameter values separately to the server. The server would parse the query, bind parameter values and execute the query. The limitation is server-side binding does not allow executing multiple commands per call. But the advantage is it prevents SQL injection attacks.
Client-side binding of parameters means the driver takes the query (using ? as parameter placeholder) and parameter values, combines them into a single query string, and then send this string to the server directly. This is under the risk of SQL injection, but it allows you to execute multiple commands per call.
The syntax for parameter placeholders depends on Go drivers standard, not ADO.NET's standard, does Golang recommend using the at sign (@) or a colon (:) character for named parameters?
Therefore, I think there are two kind of ways to implement named parameters:

Add a wrapper of server-side binding: convert parameter values into a positional ordered parameter set; replace named parameter placeholders (@ or :) in the query with ?.
Add Client-side binding of named parameters. (Optional) Add SQL injection check.

As far as I know, the Go sql package is neutral about what parameter syntax to use. Here is the issue where the feature was added. The oracle package uses : for all parameters, be it :1, :2 or :client, :environment.
Are you saying that the ADO.NET adapter is just emulating named arguments? I hadn't noticed before that the parameter docs I linked are under the ADO portion of the documentation. If we're emulating I would very much prefer to go with option 1 and convert the named arguments into positional arguments and then let the Vertica database handle interpolating the parameters in. I'm working with user input for some of my parameters and I'm not confident I could write a SQL injection check resilient enough to handle all possible edge cases.
Unfortunately that will probably require writing some kind of sql parser to correctly locate the arguments and replace them.
The goal would be to write a query like:
select
col1, col2
from
table_a a
join table_b b on b.a_id = a.id
  and client = :client
  and domain= :domain
join table_c c on c.b_id = b.id
  and client = :client
  and domain :domain
where a.client = :client
and a.domain = :domain
and c.filter = :filter

and call it with:
conn.Query(
  queryString,
  sql.Named("client", client"),
  sql.Named("domain", domain),
  sql.Named("filter", filter)
)

For whatever reason Vertica doesn't propagate the filter clause through the joins so we can't write the above as:
select
col1, col2
from
table_a a
join table_b b on b.a_id = a.id
  and b.client = a.client
  and b.domain= a.client
join table_c c on c.b_id = b.id
  and c.client = b.client
  and c.domain b.client
where a.client = :client
and a.domain = :domain
and c.filter = :filter

Using the latter query structure leads to a query plan that may never complete while the former completes in a couple of seconds. Unfortunately, with positional arguments only the call on the Go side is going to look like:
conn.Query(
  queryString,
  client,
  domain,
  client,
  domain,
  filter,
  client,
  domain,
...
)

and that's a maintenance nightmare.

Have verified with @tomwall that the ADO.NET driver emulates named parameters in the manner I mentioned.

That's good to know, thank you. For consistency with the existing docs it might be best to continue their @param_name syntax for named parameters.

I have some code for this ready once #62 merges.

Thanks, @mlh758 . #62 is now merged.


RFC: What about onLongPress, onDoubleTap?

I could add more parameters, but then the function signature would change on the builder which is breaking. I could also make a class to hold all the various types of taps but that's also breaking:
AsyncButtonBuilder(
  child: Text('Click Me'),
  onPressed: () async {
    await Future.delayed(Duration(seconds: 1));
  },
  onLongPressed: () async {
    await Future.delayed(Duration(seconds: 1));
  }
  builder: (context, child, callback, _) {
    return TextButton(
      child: child,
      onPressed: callback.onPressed,
      onLongPressed: callback.onLongPressed
    );
  },
),

Dunno.
Another non-breaking option would to make a factory version with all the different types of presses. Not really the cleanest solution though.

Hi, nice library! I wish we found it a week ago, we've just published something very similar (https://github.com/apexlabs-ai/progress_builder) but we did take a slightly different approach.
Perhaps we can exchange ideas.
I was thinking about supporting multiple actions as well, but I guess then it would make more sense to use a Cubit or Bloc, as you get more complexity you may not want to have inside your UI.
Nice work though!

Thanks !  Of course, I'd be happy to share ideas.
Concerning needing a more complicated state management, I feel as though this package shouldn't obstruct anyone from doing that on their side. This package so far is only concerned in moving UI around so I personally don't feel as I need anything more than setState under the hood.
As for the issue, from inkwell there are a lot of pointer events to possibly account for:
GestureTapCallback? onTap,
GestureTapCallback? onDoubleTap,
GestureLongPressCallback? onLongPress,
GestureTapDownCallback? onTapDown,
GestureTapCancelCallback? onTapCancel,
ValueChanged<bool>? onHighlightChanged,
ValueChanged<bool>? onHover,

I wonder where I draw the line. Personally would not consider anything after onTapDown. This reminded me however that we might be able to do something similar with nested builders to get the same functionality:
AsyncButtonBuilder(
  child: Text('Click Me'),
  onPressed: () async {
    // for presses
    await Future.delayed(Duration(seconds: 1));
  },
  builder: (context, child, onPressed, _) {
    return AsyncButtonBuilder(
      child: child,
      onPressed: () async {
        // for long pressed
        await Future.delayed(Duration(seconds: 1));
      },
      builder: (context, child, longPressed, _) {
        return TextButton(
          child: child,
          onPressed: onPressed,
          onLongPress: longPressed,
        );
      },
    );
  },
),

I would rename onPressed to callback to be generic but that looks reasonable. I'm still favoring adding new properties though instead of nesting which inevitably leads to a MultiProvider kind of situation and I don't think that's possibly for function types. Talking about builders I just had the realization this whole package could be a nifty hook as well.
final buttonHandler = useAsyncButton(myCallback, child);

// Then add these to the UI
// buttonHandler.child
// buttonHandler.callback


players with purely numeric ids use the tp command

If the player id is a pure number, using the tp command on the console will display This command can only be used in the game.
/tp 1121 64.5 66 64.5
"1121" is the username.
plugin seems to take numbers id as coordinates.

Closing as won't fix for now


model: Globally set the JSON property naming strategy to snake-case

Remove individual JsonProperty annotations in turn as it is too easy to
forget them. For Kotlin properties where JsonProperty annotation indeed
had been forgotten, use a JsonAlias to accept camel-case names for
backwards-compatibility.

This change is

@mnonnenmacher, any idea why the deserialization of resolved_revision in the first ScanResultContainerTest does not work?


Can run Applio in amd gracphic card?

Can I train a voice model using an amd gracphic card in Applio .is there the same setup or any other setup to do
Someone give me a solution

Use google colab or rocm


show caption example

This closes https://github.com/fastai/nbdev/issues/96
Shows instructions on how to add captions to images

/preview


Add Identifiable literal to AasIdentifiables

We missed a literal from the final version of the book.
Used:

aas-core-codegen 58b16d9

Related to https://github.com/aas-core-works/aas-core-meta/issues/131.

@sebbader this is a change in enumeration literals, so I suppose you need to re-generate your code as well.


Updates to Brave 5.11.1 and backfills tests

some hints to clean this up welcome!

sorry was waiting for brave 5.11 as it drifted tests. finishing now

https://github.com/openzipkin/brave/pull/1138

I'm happy to leave this with the TODOs for now as they aren't critical. Merge when happy and thanks for the help!

> Task :core:shadedTest FAILED

new version of brave syncing to central now.. wait a tick before merge, por favor!

No worries. :-) Let me push a few more commits before then.

ready when you are!

there's no more fuzz. We can take the assigning status code for an error thing offline.

one of the appveyor failures is a maven connection reset

actually both of the failures are connection reset, but hey 2/4 ain't bad in baseball!

Thanks a lot, @adriancole !

thanks for all the help with this, folks. I love that you care!


There are some HentaiFoundry links that are not working after attempted (Some work some don't)

Ripme version: v1.7.57

Java version:  Version 8  Update 91

Operating system: Wind 10

Exact URL you were trying to rip when the problem occurred:

Exact URL you were trying to rip when the problem occurred:

Please include any additional information about how to reproduce the problem:

Please include any additional information about how to reproduce the problem:

Expected Behavior
Some links doesn't work. It said; "Failed to Load after # attempted" with these Hentai Foundry link:
https://www.hentai-foundry.com/pictures/user/Akiru
https://www.hentai-foundry.com/pictures/user/Axsens
(maybe some more)
Actual Behavior

I can't reproduce this. Both urls work fine for my on 1.7.57

@TTPython If this is still an issue comment and I'll reopen this


Improve multipart features to support more than files

Feature Request
Description
I am interacting with a CMS API that requires uploading a document alongside some JSON metadata.
I can easily do that with cURL as seen below, but the only solution found with Fuel seems a hack and requires storing the metadata in a temporal file.
curl "https://$api_hostname/v1/documents" \
-X POST \
-H 'Content-Type: multipart/form-data' \
-H "Authorization: Bearer $token" \
-H "Document-Store: $doc_store" \
-F metadata="{
    \"description\": \"Test document\",
    \"nested_array\": [{...}.{...}]
	};type=application/json" \
-F file=@file_path)

The only way I got this to work with Fuel is using the httpUpload like this:
    val url = "..."
    val (request, response, result) = url.httpUpload(
//            parameters = listOf("metadata" to """{"description":"test document from Kotlin"};type=application/json""")
    )
            .dataParts { request, url ->
                listOf(
                        DataPart(File("src/main/resources/rust-logo-blk.svg"), "file"),
                        DataPart(File("src/main/resources/doc.json"), "metadata", "application/json")
                )
            }
            .header("Authorization" to "Bearer $token")
            .header("Document-Store" to docStore)
            .responseString()

    println(request.cUrlString())
    if (response.statusCode == 201) {
        println(String(response.data))
    }

Using the commented line with parameters fails because Fuel sets the content type as text\plain and the service complains.
Proposed Solution
As a quick approach, extend DataPart to support other things that are not files. That would fix the problem.
As a mid/long-term approach, to offer a more cleaner/simple solution. I'd propose to extend the httpPost method to support sending multipart data elements.
To enable multipart we could add a method to set the content-type, or a fluent method multipart(), or check if the user has set the header "Content-type" with header().
    val (request, response, result) = url.httpPost(listOf(
            "metadata" to DataPart("""{"description":"test document from Kotlin"}""", "application/json"),
            "file" to DataPart(File("resources/rust-logo-blk.svg"))))
            .header("Content-Type" to "multipart/form-data")
            .header("Authorization" to "Bearer $token")
            .header("Document-Store" to docStore)
            .responseString()

Alternatives I've considered
Extending httpUpload() is an option, but imho the more we divert from raw HTTP, the more confusing it becomes for users to adopt Fuel.
Additional context

Very similar to #479 and overlaps. Let me close this and have that issue track ALL new features, as it already has more than 2 features to track.

Very similar to #479 and overlaps. Let me close this and have that issue track ALL new features, as it already has more than 2 features to track.

Sorry, there was some issue with GitHub and issues did not appear.


Crashes Upon Entering The Nether with BetterNether Mod

When this mod is installed with the BetterNether mod the game will crash upon entering the nether. I can image this is due to the two of them competing for the generation of the nether dimension. Is there a possible workaround for this or something that could be implemented to prevent this mod from doing any changes to the nether dimension? Thanks in advance and this is by far the best terrain generation mod out there.

Send a log. We don't change anything in the Nether. Also provide information about what platform you are on, mod version(s), etc.

BetterNether mod

I think you're on the wrong repo my man

wait nvm, only read half the issue. Brain moment.

Windows 10 64bit
Minecraft 1.16.4
Mods:
Fabric API 0.31.0
BetterNether 5.0.4
Terra 5.3.0 BETA shaded-mapped
`---- Minecraft Crash Report ----
// There are four lights!
Time: 5/12/21 2:40 PM
Description: Feature placement
java.lang.ClassCastException: net.minecraft.class_3754 cannot be cast to com.dfsek.terra.fabric.generation.FabricChunkGeneratorWrapper
at com.dfsek.terra.fabric.generation.PopulatorFeature.generate(PopulatorFeature.java:25)
at com.dfsek.terra.fabric.generation.PopulatorFeature.method_13151(PopulatorFeature.java:18)
at net.minecraft.class_2975.method_12862(class_2975.java:55)
at net.minecraft.class_2988.method_30384(class_2988.java:23)
at net.minecraft.class_2988$$Lambda$4871/799724854.accept(Unknown Source)
at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:419)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at net.minecraft.class_2988.method_12892(class_2988.java:22)
at net.minecraft.class_2988.method_13151(class_2988.java:14)
at net.minecraft.class_2975.method_12862(class_2975.java:55)
at net.minecraft.class_1959.method_8702(class_1959.java:373)
at net.minecraft.class_2794.handler$zhk000$customPopulate(class_2794.java:1039)
at net.minecraft.class_2794.method_12102(class_2794.java)
at net.minecraft.class_2806.method_12151(class_2806.java:89)
at net.minecraft.class_2806$$Lambda$1841/1332929420.doWork(Unknown Source)
at net.minecraft.class_2806.method_12154(class_2806.java:219)
at net.minecraft.class_3898.method_17225(class_3898.java:568)
at net.minecraft.class_3898$$Lambda$4780/1974291437.apply(Unknown Source)
at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
at net.minecraft.class_3898.method_17224(class_3898.java:562)
at net.minecraft.class_3898$$Lambda$4777/1794531578.apply(Unknown Source)
at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952)
at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
at net.minecraft.class_3900.method_17634(class_3900.java:58)
at net.minecraft.class_3900$$Lambda$4721/1593539047.run(Unknown Source)
at net.minecraft.class_3846.method_16907(class_3846.java:94)
at net.minecraft.class_3846.method_16900(class_3846.java:137)
at net.minecraft.class_3846.run(class_3846.java:105)
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Server thread
Stacktrace:
at com.dfsek.terra.fabric.generation.PopulatorFeature.generate(PopulatorFeature.java:25)
at com.dfsek.terra.fabric.generation.PopulatorFeature.method_13151(PopulatorFeature.java:18)
at net.minecraft.class_2975.method_12862(class_2975.java:55)
at net.minecraft.class_2988.method_30384(class_2988.java:23)
at net.minecraft.class_2988$$Lambda$4871/799724854.accept(Unknown Source)
at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:419)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at net.minecraft.class_2988.method_12892(class_2988.java:22)
at net.minecraft.class_2988.method_13151(class_2988.java:14)
at net.minecraft.class_2975.method_12862(class_2975.java:55)
-- Feature --
Details:
Id: minecraft:decorated
Config: < class_2986 [terra:flora_populator | [minecraft:nope net.minecraft.class_3113@30ab5029]] >
Description: < class_2988 [minecraft:decorated] >
Stacktrace:
at net.minecraft.class_1959.method_8702(class_1959.java:373)
-- Generation --
Details:
CenterX: 2
CenterZ: -1
Seed: -3651862908279395871
Biome: net.minecraft.class_1959@6076d6d4
Stacktrace:
at net.minecraft.class_2794.handler$zhk000$customPopulate(class_2794.java:1039)
at net.minecraft.class_2794.method_12102(class_2794.java)
at net.minecraft.class_2806.method_12151(class_2806.java:89)
at net.minecraft.class_2806$$Lambda$1841/1332929420.doWork(Unknown Source)
at net.minecraft.class_2806.method_12154(class_2806.java:219)
-- Chunk to be generated --
Details:
Location: 2,-1
Position hash: -4294967294
Generator: net.minecraft.class_3754@25be5b0d
Stacktrace:
at net.minecraft.class_3898.method_17225(class_3898.java:568)
at net.minecraft.class_3898$$Lambda$4780/1974291437.apply(Unknown Source)
at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
at net.minecraft.class_3898.method_17224(class_3898.java:562)
at net.minecraft.class_3898$$Lambda$4777/1794531578.apply(Unknown Source)
at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952)
at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
-- Player being ticked --
Details:
Entity Type: minecraft:player (net.minecraft.class_3222)
Entity ID: 125
Entity Name: Bubbaguy1234
Entity's Exact location: 259.91, 64.17, -30.26
Entity's Block location: World: (259,64,-31), Chunk: (at 3,4,1 in 16,-2; contains blocks 256,0,-32 to 271,255,-17), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Entity's Momentum: 0.00, 0.08, 0.00
Entity's Passengers: []
Entity's Vehicle: ERROR NullPointerException: null
Stacktrace:
at net.minecraft.class_3222.method_14226(class_3222.java:494)
at net.minecraft.class_3244.method_18784(class_3244.java:219)
at net.minecraft.class_2535.method_10754(class_2535.java:232)
at net.minecraft.class_3242.method_14357(class_3242.java:173)
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:882)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:811)
at net.minecraft.class_1132.method_3748(class_1132.java:91)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:670)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257)
at net.minecraft.server.MinecraftServer$$Lambda$4616/1507954859.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
-- System Details --
Details:
Minecraft Version: 1.16.4
Minecraft Version ID: 1.16.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 969774624 bytes (924 MB) /<PHONE_NUMBER> bytes (2048 MB) up to<PHONE_NUMBER> bytes (2048 MB)
CPUs: 8
JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Fabric Mods:
betternether: Better Nether 5.0.4
fabric: Fabric API 0.31.0+1.16
fabric-api-base: Fabric API Base 0.2.1+9354966b7d
fabric-biome-api-v1: Fabric Biome API (v1) 3.1.1+ca58154a7d
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.5+ca58154a7d
fabric-command-api-v1: Fabric Command API (v1) 1.1.0+f9b3753b7d
fabric-commands-v0: Fabric Commands (v0) 0.2.2+ca58154a7d
fabric-containers-v0: Fabric Containers (v0) 0.1.11+9354966b7d
fabric-content-registries-v0: Fabric Content Registries (v0) 0.2.1+ca58154a7d
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.3+ca58154a7d
fabric-dimensions-v1: fabric-dimensions-v1 2.0.6+9354966b7d
fabric-entity-events-v1: Fabric Entity Events (v1) 1.0.3+ca58154a7d
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.2+ca58154a7d
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.1+ca58154a7d
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.6+ca58154a7d
fabric-item-api-v1: Fabric Item API (v1) 1.2.1+ca58154a7d
fabric-item-groups-v0: Fabric Item Groups (v0) 0.2.3+ca58154a7d
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.4+9354966b7d
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.1+ca58154a7d
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.2.1+ca58154a7d
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.2+ca58154a7d
fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.3+ca58154a7d
fabric-models-v0: Fabric Models (v0) 0.2.1+ca58154a7d
fabric-networking-api-v1: Fabric Networking API (v1) 1.0.1+ca58154a7d
fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.8+ca58154a7d
fabric-networking-v0: Fabric Networking (v0) 0.3.2+ca58154a7d
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.9.4+9354966b7d
fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.2+ca58154a7d
fabric-particles-v1: Fabric Particles (v1) 0.2.4+ca58154a7d
fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.4+ca58154a7d
fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.1+ca58154a7d
fabric-renderer-indigo: Fabric Renderer - Indigo 0.4.4+ca58154a7d
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 2.2.1+ca58154a7d
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.5+ca58154a7d
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.13+ca58154a7d
fabric-rendering-v0: Fabric Rendering (v0) 1.1.2+ca58154a7d
fabric-rendering-v1: Fabric Rendering (v1) 1.5.1+ca58154a7d
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.2+ca58154a7d
fabric-screen-api-v1: Fabric Screen API (v1) 1.0.0+c045166c7d
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.5+9354966b7d
fabric-structure-api-v1: Fabric Structure API (v1) 1.1.4+ca58154a7d
fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.1.1+ca58154a7d
fabric-textures-v0: Fabric Textures (v0) 1.0.6+ca58154a7d
fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.6+ca58154a7d
fabricloader: Fabric Loader 0.11.2
java: Java HotSpot(TM) 64-Bit Server VM 8
minecraft: Minecraft 1.16.4
terra: Terra 5.3.0-BETA+fd48f5f1
Player Count: 1 / 8; [class_3222['Bubbaguy1234'/125, l='ServerLevel[New World]', x=259.91, y=64.17, z=-30.26]]
Data Packs: vanilla, Fabric Mods
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fabric'`
For some extra context, the game runs just fine right until you go through the portal. The world type is terra default and all of that generates fine. The game crashed during the loading world screen or whatever it is when you go through the portal. Any idea as to the cause?

Fabric Loader 0.11.2

Looks like for some reason BetterNether is using our PopulatorFeature in the nether. In 5.3.1 and above, this will simply fail silently rather than crash. Update your Terra version.

So this comes with a new issue. There is no crashing upon entering the nether, but the nether is severely messed up.
This happens even when the world type is set to default. Certain biomes in the nether (seemingly only the vanilla ones) generate very weirdly.

Here you can see we are in a vanilla soul sand valley and it looks okay but to the right something weird is happening with grass blocks

Here in this weird area, the biome is considered a terra biome. The weird part is that some normal Minecraft biomes spawn fine, the better nether biomes spawn fine, but these weird grass-covered terra biomes also spawn

Here you can see it's not just soulsand valley
This does not happen with the Terra mod alone and it also does not happen with the better nether mod alone, it has something to do with the two interacting like I think you said.
Is there any way to get around this?

Weirdly enough after some more exploring, it seems like in these biomes the ( soul sand / gravel / soul soil ) has been turned into grass...

Here the top outcrop is entirely grass however under the lava there is dirt that abruptly changes to gravel. There is no biome change here and in a way, this shows that something is happening where dirt is replacing gravel.

But soul sand and does still spawn sometimes....

Last one for the night,

Here's a transition between the two

https://github.com/paulevsGitch/BetterNether/blob/1f229eeb50a8c3d8133e333993b7e300b727ef61/src/main/java/paulevs/betternether/registry/BiomesRegistry.java#L139-L158
Looks like BetterNether is just iterating over the biome registry and shoving all the Nether biomes it sees into the Nether, even ones that weren't there before it injected its own. That's something they definitely shouldn't be doing, unless they have a very good reason to be doing it.

Gotcha,
Is there any reasonable way around this even if it’s a hack job. These two mods would go so well together in a world.

Not so much a hack, but just remove the Terra nether pack, so Terra never registers the Nether biomes in the first place.
delete the pack, then disable dump-default in Terra's config.yml

Okay will give it a try, thanks a lot man.

I've deleted the nether pack and set dump-default to false but still no avail
Do I need to somehow update the jar after making these changes because after hopping back in Minecraft I can still create a world with the type Terra:NETHER - Additinoally if it's any help the terra:nether world type works perfectly fine, everything look great aside from of course the betternether biomes.

Found a solution, betterNether was automatically adding the terra biomes to its biome pool so in the config of betternether the chance of these weird biomes spawning can be set to zero. Hope this helps anyone else who is trying to play with the two of these mods


nuxi upgrade 3.7.0 throws  ERROR  spawnSync /bin/sh ENOENT

Environment

Operating System: Linux
Node Version:     v20.6.0
Nuxt Version:     3.7.1
CLI Version:      3.7.3
Nitro Version:    2.5.2
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
Downgrade from nuxt 3.7.1 to 3.7.0
Describe the bug
I'm trying to downgrade nuxt, but it is throwing an error
Additional context
No response
Logs
nuxi upgrade 3.7.0
ℹ Package Manager: yarn 3.6.3                                                                                8:10:57 AM
ℹ Current nuxt version: 3.7.1                                                                                8:10:57 AM

✔ Would you like to recreate node_modules and 3.7.0/yarn.lock to fix problems with hoisted dependency versions and ensure you have the most up-to-date dependencies?
Yes
ℹ Recreating node_modules and 3.7.0/yarn.lock. If you encounter any issues, revert the changes and try with --no-force                                                                                8:11:06 AM
ℹ Installing latest Nuxt 3 release...                                                                                8:11:06 AM

 ERROR  spawnSync /bin/sh ENOENT                                                                                8:11:06 AM

  at Object.spawnSync (node:internal/child_process:1124:20)
  at spawnSync (node:child_process:876:24)
  at execSync (node:child_process:957:15)
  at Object.run (node_modules/nuxi/dist/chunks/upgrade.mjs:76:5)
  at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.57fa43de.mjs:1644:5)
  at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.57fa43de.mjs:1638:7)
  at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.57fa43de.mjs:1756:7)

 ERROR  spawnSync /bin/sh ENOENT

I've tried to manually delete yarn.lock. Now I'm getting
 ERROR  Cannot detect Package Manager in /home/user/workspace/myproject/3.7.0                                                                                8:15:16 AM