Plural Forms (Localisation)

I want to translate plural forms but _n('string', 'plural form', number, "text-domain") is not supported,
is there any way to use plural forms?

Hi @marcelkussin - this is related to #412 and will be resolved soon.


[ZoneTelechargement] Update URL

The bridge now shows links to the new URL.
It keeps the old one internally to bypass the Robot protection on the
new URL.

Thanks @sysadminstory !


Add susarla nikhilesh to contributors list

This is a practice of how to contribute to open source community.

Hi  @susarlanikhilesh, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


@conda-forge-admin please add bot automerge

@conda-forge-admin please add bot automerge

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/ansible-base-feedstock#3.


Added chapter 13 - data visualizations

Added chapter 13 - data visualizations

Added chapter 13 data visualizations to main


User/purifoypaul/rs5 packaged com activation

Plumb packaged com clsid to LRP for CoCreateInstance
Fix CreateChannelRequest to work with new UDK fixes
Added logic to parse the correct IBackgroundTaskInstance in packaged/unpackaged scenarios

This PR needs to be rebased but I wanted to post a current functioning version of RS5 for packaged. Affected files are

PushNotificationManager.cpp
GetNotificationEventArgs.h
externs.h
+PushBackgroundTaskInstance.cpp/h
platform.cpp (clsid plumbing)
NotificationListener/Manager.cpp


Delete and add tags Mudo token

I'm submitting a ...
[ ] bug report
[ x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary

Hi. It seems Solflare doesn't want to upload token name and picture because token tag is NFT? Also if you can delete my tags and add:
"social-token",
"community-token"
Thank you

please link a PR

PR #13693
Also added https instead http

merged


Add alphabet recognition project using pre-trained VGGNet

Is your feature request related to a problem? Please describe.
dataset = kaggle alphabet recognition dataset
model = VGGNet
Describe the solution you'd like
pre-trained models, VGGNet and fine-tune them on your alphabet recognition task. Transfer learning allows to benefit from models trained on large datasets like ImageNet and adapt them to your specific problem.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@lakshmishreea122003  - you can go ahead! We are assigning you 21 days for this project, after which it will be assigned to someone else if not completed. All the best!
Name the file as: algorithm_dataset.ipynb and link it in the readme of the labeled directory as algorithm - dataset.


[mongo_proxy]potential heap_buffer_overflow with untrusted buffer when onData()

Since the docs of mongo_proxy shows it is still an alpha version and doesn't allow untrusted input now, I think it is not a security issue, so I post it here.
An invalid input/untrusted input can cause heap_buffer_overflow if the buffer contains a "string" which doesn't end with \0.
std::string BufferHelper::removeString(Buffer::Instance& data) {
  int32_t length = removeInt32(data);
  if (static_cast<uint32_t>(length) > data.length()) {
    throw EnvoyException("invalid buffer size");
  }

  char* start = reinterpret_cast<char*>(data.linearize(length));
  std::string ret(start);
  data.drain(length);
  return ret;
}

For example, in the failed test case, length=16 and start should be a string with length=16, however, if it doesn't end with \0, when executing std::string ret(start), there will be heap_buffer_overflow.
A possible fix is to replace this line with std::string ret(start, length) which makes sure the length is explicitly specified.
(the code is here: https://github.com/envoyproxy/envoy/blob/master/source/extensions/filters/network/mongo_proxy/bson_impl.cc#L104)
The issue and test case can also be found here: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24961&sort=-opened&can=1&q=proj%3Aenvoy status%3DNew

@jianwen612  Could you please provide steps to reproduce this bug? I would like to take a look on it.


Add workflow to automate binary releases

Closes #17

ibc-rs is using taiki-e/upload-rust-binary-action for release artifacts.
I would love to create a PR, if you think it is alright.


Weird state look when making a time graph view bigger

When resizing a time graph component to make it bigger, the new rows that are shown have some extra states or fillers or something. See the following screenshot

A quick bisect shows the problem arrived at commit e421d81 , but it may be due to updates in the timeline-chart that happened

@abhinava-ericsson  @muddana-satish  maybe you'll have an idea?

I will have a look into it. Thanks for reporting.

@tahini Do you have a trace where I can reproduce this issue consistently. I tried with several traces and none of them have this issue.

I can reproduce consistently here with any trace... on linux/firefox. It's when resizing the view from the bottom right handle.
Here's a screencast of it

@tahini I've uploaded a patch in the timeline-chart https://github.com/theia-ide/timeline-chart/pull/100#issue-556886419 repo that fixes issue #209. Could you please verify that this pull request also fixes this issue that you've reported? Thanks Bernd

@tahini I've uploaded a patch in the timeline-chart https://github.com/theia-ide/timeline-chart/pull/100#issue-556886419 repo that fixes issue #209. Could you please verify that this pull request also fixes this issue that you've reported? Thanks Bernd

It is fixed, thanks!

It is fixed, thanks!

Great, thanks for verifying.

Great, thanks for verifying.


Update local provisioner base image

It's old

/assign

Do you mean centos:7 base image in Dockerfile? For security?
Latest centos image is 7.5.1804, and latest centos:7 is same as it. We can rebuild current provisioner images to use latest version, but perhaps we need to do it manually.

Oh ok, maybe it's a matter of pushing a new container image to update to the latest centos:7

I was also thinking if we want to consider using a slimmed down base image and only installing the necessary packages we need.

+1
I'll try to switch to alpine, it's based on busybox but includes a package manager apk, easier to use.

I think kubernetes org actually discourages alpine.  This is what they recommend: https://github.com/kubernetes/kubernetes/tree/master/build/debian-base

OK, I'll look at it.

/area local-volume


replaced weak with secondary since weak was deprecated

What:

Replaced weak with secondary to remove the deprecation warning in Accordion -> components -> Description
Why:

Closes issue #205

How:

Replaced weak with secondary in the Text component of Description

Checklist:

[x] Ready to be merged

Changelog
[1.18.1]  (2022-02-03)
Bug Fixes
replaced weak with secondary since weak was deprecated [782cc36]
closes [#205]


components: make version field required

Closes #2260

potentially multiple docs and all quickstarts need to be updated with the version field in component file.
Should CLI also be updated?

potentially multiple docs and all quickstarts need to be updated with the version field in component file.
Should CLI also be updated?


Creating an account linked to a record should be time-limited

A user should only be able to create an account using the redirect page within a time limit (ideally configurable). Otherwise if someone has the record ID for an application for aid record they can manually plug it into the redirect page and create an account associated with it to view and change the personal information on the record.
We should do this by introducing a new table in the AirTable, which will track each Record ID received and a timestamp for when it was received. This has the added benefit of being able to confirm we have received an application even when our synced table hasn't updated yet. This will require that the frontend call a route from the redirect page passing the record ID to the backend, who will create a record in this new table.
Tasks required for completion:

[x] New table created in AirTable
[ ] New route in backend for adding entries to said table
[ ] Frontend calls this new route on the redirect page, passing the record ID
[ ] Backend limits linking a new account to a record to a configurable number of minutes since the timestamp

Note that the AirTable table will have a field that will automatically generate the timestamp when the record is recorded, so we don't need to generate that, but we should be aware of differences in format/time zone.

Table created. These are the formatting options we have for the timestamp.

I'm closing this issue as we are transitioning away from account creation via redirect. It can always be reopened if needed.


kaccum error

Dear Togo
I have installed the recent phono3py update according to new instructions. But I received the following error when calling kaccum (or phono3py-kaccum):
Traceback (most recent call last):
File "~/miniconda/envs/phono3py/bin/phono3py-kaccum", line 7, in
exec(compile(f.read(), file, 'exec'))
File "~/run/phono3py/scripts/phono3py-kaccum", line 7, in
from phonopy.interface import read_crystal_structure
ImportError: cannot import name 'read_crystal_structure' from 'phonopy.interface' (~/run/phonopy/phonopy/interface/init.py)
I am completely unfamiliar with conda installation but does this conda installation requires setting $PYTHONPATH? I have noticed it does not copy anything to ~/miniconda/envs/phono3py/lib/python3.7/site-packages just an egg.info referring to ~/run/phonopy/phonopy
Any help would be highly appreciated since I completely removed my older version ;).
Kind regards,
MK

Thanks. This is a bug that kaccum didn't follow the recent update of phonopy. I fixed it, see https://github.com/atztogo/phono3py/commit/39a91213c1c5c8103a851a9972edbd58c5dc69a2.
This fix is already in master branch and released soon.

I will close this issue.


[BUG] : When we click on facing an issue buttton it shouls scroll to top

Describe the bug
When we click on facing an issue button it would be nice if on redirection to contact us page, it would also scroll up to the page so user get to know that they have been redirected.
To Reproduce
Steps to reproduce the behavior:

Go to Home page and scroll to bottom
Click on facing an issue
3 See error

Expected behavior
It should scroll up
Screenshots
None
Additional context
Add any other context about the problem here.

Hi @PranotiPD You can work on this bug. You are assigned this issues.


No sign-in button & Docs update (storageBucket)- "Not enabled Firebase Storage"

Hi,
I'm following the docs precisely (https://codelabs.developers.google.com/codelabs/firebase-web/#) but I keep arriving at the error:
I am not able to see a "Sign-in" button (despite it being in the HTML).
Here is the parts I added to main.js in case there were any errors there (seeing as parts of the document snippets of code ended in ... somewhat confusing...):
FriendlyChat.prototype.initFirebase = function() {
  // Shortcuts to Firebase SDK features.
  this.auth = firebase.auth();
  this.database = firebase.database();
  this.storage = firebase.storage();
  // Initiates Firebase auth and listen to auth state changes.
  this.auth.onAuthStateChanged(this.onAuthStateChanged.bind(this));
};

FriendlyChat.prototype.signIn = function() {
  // Sign in Firebase using popup auth and Google as the identity provider.
  var provider = new firebase.auth.GoogleAuthProvider();
  this.auth.signInWithPopup(provider);
};

FriendlyChat.prototype.signOut = function() {
  // Sign out of Firebase.
  this.auth.signOut();
};

FriendlyChat.prototype.onAuthStateChanged = function(user) {
  if (user) { // User is signed in!
    // Get profile pic and user's name from the Firebase user object.
    var profilePicUrl = user.photoURL;
    var userName = user.displayName;
  }};

  FriendlyChat.prototype.checkSignedInWithMessage = function() {
  // Return true if the user is signed in Firebase
  if (this.auth.currentUser) {
    return true;
  }};]

SEPERATE ISSUE/NOTE:
Initially I kept getting the error:
You have not enabled Firebase Storage prior to importing the firebase SDK
I looked at my script, and it seems there is no value for "storageBucket"
The FIX If I go to the firebase console>Auth>Web Setup (at the top), it generates a snippet of code which includes a storageBucket.
This storageBucket code was only generated once I enabled a sign-in method on Auth.
You should update the docs to this affect.

Thanks for repporting. Actually the storage bucket should always be there the first time you generate copy the snippet so this seems like a bug. I'll report this to the Firebase storage team so that they improve the auto-provisioning. Sorry about this!

No problem. Please update regarding the sign-up button.
The notes were a little confusing at 5 (Install the Firebase Command Line Interface). Do I just "install" (npm install -g firebase-tools) or do I need to "deploy" also?
Both ways still have the no-sign up button issue. And yes I've enabled Google in the Auth section of the console.

AH yes that's because you deleted what was inside of FriendlyChat.prototype.onAuthStateChanged whereas you should only add the 2 lines at the top of the existing code (just replace the TODO). I'll try to make this clearer in the instructions thanks!

And for firebase tools you don't need to run firebase init. I'll also add something in the instructions about this...

Also the same applies to checkSignedInWithMessage you should just add the lines and replace the TODO.

I changed the error message (for that storageBucket bug) and updated the text in the codelab to make it clearer that you need to add and not replace the function in some cases. Thanks for the report!

hey @yarnball could you give us your Project ID? We'd like to see what happen in our backend that caused you not to have the storageBucket created properly.


Run test against PyTorch nightly on Travis CI

Install PyTorch nightly build on CI test.
Update requirements

Unblocks #531

What is the support policy for Python 3 versions?

Note PyTorch 1.6.0 (master branch) has dropped support for Python 3.5.

We should eventually decide on whether we want to keep using travis at all, but that is a discussion for another time. :)

Note PyTorch 1.6.0 (master branch) has dropped support for Python 3.5.

Adding reference to internal discussion confirming this.


Fix Scalar link in website docs

:disappointed:
Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[x] I've included a screenshot or gif (if applicable)
[x] I have tested the web demo (if applicable):

Using newly built examples: app.rerun.io
Using examples from latest main build: app.rerun.io
Using full set of examples from nightly build: app.rerun.io

[x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
[x] If applicable, add a new check to the release checklist!

PR Build Summary
Docs preview
Examples preview
Recent benchmark results
Wasm size tracking

was this not caught by linkinator?

was this not caught by linkinator?

It pointed to an existing thing -- just not the correct thing :sob:


Use fpm logo

@1984logo Do you have a source for the logo we can work with (svg, ...), I would make a start and incorporate it in the fpm documentation as favicon and sidebar logo.
Also, I plan to include a page on the logo itself and how it should be used in the design section.
From https://github.com/fortran-lang/fpm/discussions/380#discussioncomment-2079206

@awvwgk Sure, let me prepare the final files. I just posted an update there
https://github.com/fortran-lang/fpm/discussions/380#discussioncomment-2134852.
If it is confirmed, I will prepare them.


Adds opengraph partial to slim header

Developer
Why are these changes being introduced:
There are two current problems with our use of OpenGraph headers on the WordPress network:

The themes don't currently always include the headers, because one template doesn't call for that partial.
The og_description tag uses the default behavior by WordPress, which is to truncate the description at 55 words.

As a result of these changes, our attempts to harvest site content in TIMDEX are hamstrung in some cases (content that uses that header, and content that is very long).
Relevant ticket(s):
https://mitlibraries.atlassian.net/browse/pw-60
How does this address that need:

The slim header which previously did not include the opengraph partial now does.
We define a custom length for the description of 100 words - (instead of the initially-proposed 9,999 words).

Document any side effects to this change:

These changes make our pages heavier in bandwidth terms, because we are including two copies of the body in every HTML response.
There may yet be other needed changes to our OpenGraph implementation, depending on the evolving needs of the TIMDEX harvester - but that is more accurately described as "future work to do" or "problems not yet solved" rather than "side effects caused by this change".

Stylesheets

[x] Any theme or plugin whose stylesheets have changed has had its version
string incremented.

Secrets

[ ] All new secrets have been added to Pantheon tiers
[ ] Relevant secrets have been updated in Github Actions
[ ] All new secrets documented in README
[x] No secrets are implicated by this change

Documentation

[ ] Project documentation has been updated
[x] No documentation changes are needed

Accessibility

[ ] ANDI or Wave has been run in accordance to
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)

Stakeholder approval

[x] Stakeholder approval has been confirmed
[ ] Stakeholder approval is not needed

Dependencies
NO dependencies are updated
Code Reviewer

[ ] The commit message is clear and follows our guidelines
(not just this pull request message)
[ ] The changes have been verified
[ ] The documentation has been updated or is unnecessary
[ ] New dependencies are appropriate or there were no changes

Okay @JPrevost and @ghukill - I've pushed an update to this work that sets the maximum length of og:description to be 100 words. I think this is a good choice for the moment - if we get to the point of writing these descriptions ourselves (rather than just auto-generating by truncating the page content), then we'll be in a better position to pick a meaningful limit.


SD1.5 text encoder model link broken in readme

The link https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/main/text_encoder is broken, looks like runwayml removed the models, I haven't tried the Powerpaint version yet, is this necessary? if so then looks like it needs to be fixed, I don't have the model.

Yes, Runway deleted their HuggingFace and GitHub repos. I've updated link to some mirrors.


fix: Dropdown set focus when an item is selected.

Hi Thang, I am thinking of whether we can use the ref to track the elements. Using plain JS code to get element might cause issue in the virtual dom.

I talked with Thang  and we might need to create a spike to handle the issue, since the GoAInput might not forward the ref.


[BUG] Proxies being mismatched on AsyncSession requests

Hey again, found another weird bug. You'll need a list of proxies to reproduce (@yifeikong  - I can send you some on like tg or w/e if needed), but basically it seems that after the first request on each instance of the AsyncSession, they all start to use the first instance's proxy. It's probably best explained by example, so here's some code and what it output for me:
from curl_cffi import requests
import json, asyncio
from collections import OrderedDict
from itertools import cycle

with open('proxy_list.txt', 'r') as temp_file:
	proxies = list(OrderedDict.fromkeys([line.rstrip('\n') for line in temp_file]))

formatted_proxies = []
for prox in proxies:
	splitted = prox.split(':')
	formatted_proxies.append(f"http://{splitted[2]}:{splitted[3]}@{splitted[0]}:{splitted[1]}")
proxy_pool = cycle(formatted_proxies)

async def test():
	async def do_req(sess, proxy):
		session_proxies = {"https":proxy,"http":proxy}
		r = await sess.get("https://httpbin.org/ip", proxies=session_proxies, impersonate="chrome110")
		proxy_1 = r.json()['origin']
		r = await sess.get("https://httpbin.org/ip", proxies=session_proxies, impersonate="chrome110")
		proxy_2 = r.json()['origin']
		return proxy_1, proxy_2

	tasks = []
	async with requests.AsyncSession() as s:
		for i in range(5):
			p = next(proxy_pool)
			tasks.append(do_req(s, p))
		results = await asyncio.gather(*tasks)
	print("RESULTS:")
	i = 0
	for res in results:
		i += 1
		print(f"#{str(i)}: 1st Request: {str(res[0])} | 2nd Request: {str(res[1])}")

policy = asyncio.WindowsSelectorEventLoopPolicy()
asyncio.set_event_loop_policy(policy)
asyncio.get_event_loop().run_until_complete(test())

Running this code produces output that looks something like:
#1: 1st Request: XXX.XXX.82.225 | 2nd Request: XXX.XXX.82.225
#2: 1st Request: XXX.XXX.92.220 | 2nd Request: XXX.XXX.82.225
#3: 1st Request: XXX.XXX.95.128 | 2nd Request: XXX.XXX.82.225
#4: 1st Request: XXX.XXX.83.56 | 2nd Request: XXX.XXX.82.225
#5: 1st Request: XXX.XXX.87.59 | 2nd Request: XXX.XXX.82.225

As you can see, the first request on each instance uses the correct proxy, but the second request always uses the first instance's proxy. Any idea what might be happening?
Python version: 3.9.6
curl_cffi version: 0.5.2 (getting the error code 60 issue that we're already discussing in another thread on 0.5.3 so I downgraded for now)
cffi version: 1.15.1
Note after some more testing:
If you create a new AsyncSession for every iteration rather than use it as a context manager, the problem doesn't occur and the second request will use the same proxy as the first (see code below)
for i in range(5):
	p = next(proxy_pool)
	tasks.append(do_req(requests.AsyncSession(), p))
results = await asyncio.gather(*tasks)

As you can see, the first request on each instance uses the correct proxy, but the second request always uses the first instance's proxy. Any idea what might be happening?

I'm still not sure what's wrong under the hood. It seems that different requests are reusing un-reset curl instances, but I can not reproduce it, even on 0.5.2.

If you create a new AsyncSession for every iteration rather than use it as a context manager, the problem doesn't occur and the second request will use the same proxy as the first (see code below)

For each AsyncSession, a lifo queue of curl instances is created, if you are using different sessions for different coroutines, it's guaranteed that the requests make in each coroutine will not share the same curl instance.

Could you please try using 0.5.3 with session.get(..., verify=False) to see if this still persists?

I found an exact same issue as you described, which is unfortunately left unanswered... My current guess is curl_multi will mess up when reusing proxified connections.
However, There are two options we can add to avoid this issue, CURLOPT_FRESH_CONNECT and CURLOPT_FORBID_REUSE.
By using either of these options, a new connection will be created for each request, which is not suitable for normal requests because of the performance drain, but for crawling websites with proxies in bulk, it does not add more overhead since we are using different proxies already.

@jjsaunier I see your points here. When using sessions, I presume two things are handled automatically:

Cookies are set and send like browsers.
Connections are cached and reused.

If we were not using proxies, the situation is simpler and there is no ambiguity. But with proxies, should the connection be considered the same if they share

the same host, or
the same host + proxy

I'm not sure what requests or httpx implement Session.request(..., proxies=...), which, I think, is how most users would expect to happen.

I just checked both requests and httpx's docs. It turns out that they do differ on this matter.
For httpx, there is no proxies parameter for Client.request. You can only set proxies when initializing the Client instance, which is the way @jjsaunier suggested.

async request(self, method, url, *, content=None, data=None, files=None, json=None, params=None, headers=None, cookies=None, auth=, follow_redirects=, timeout=, extensions=None)
No proxies here.

For requests, it does support mutating proxies in the context of a session, and it behaves as expected.

request(method, url, params=None, data=None, headers=None, cookies=None, files=None, auth=None, timeout=None, allow_redirects=True, proxies=None, hooks=None, stream=None, verify=None, cert=None, json=None)

I did a little experiment to verify it.

Details
brew install tinyproxy

cat proxy1.conf

Port 8964
Listen <IP_ADDRESS>
Timeout 601
Allow <IP_ADDRESS>
AddHeader "X-Proxy" "alpha"

cat proxy2.conf

Port 8965
Listen <IP_ADDRESS>
Timeout 600
Allow <IP_ADDRESS>
AddHeader "X-Proxy" "beta"

tinyproxy -d -c proxy1.conf
tinyproxy -d -c proxy2.conf

Two proxies listening on two different ports and add two different header to distinguish from each other.
import requests

s = requests.Session()

r = s.get("http://httpbin.org/headers", proxies={"http": "http://localhost:8964"})
print(r.json())

r = s.get("http://httpbin.org/headers", proxies={"http": "http://localhost:8965"})
print(r.json())

s.close()

Results:
{'headers': {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'Host': 'httpbin.org', 'User-Agent': 'python-requests/2.28.2', 'X-Amzn-Trace-Id': 'Root=1-643919ef-5dbdc737332d075e3057c7a8', 'X-Proxy': 'alpha'}}
{'headers': {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'Host': 'httpbin.org', 'User-Agent': 'python-requests/2.28.2', 'X-Amzn-Trace-Id': 'Root=1-643919f0-3b710d137382a925180be5a8', 'X-Proxy': 'beta'}}

It's also the same behavior if you use curl_cffi.requests.

Yes, both approaches are acceptable,  strict vs. relaxed. The relaxed one has some downsides explained below
Additionally to automatic stuff, the hop-by-hop header Connection must be set to keep-alive to tell the next hop to keep the connection open instead of closing after the response.
I think session + proxy change should not be possible, adding cookie_jar on request (where each request can reuse this jar to keep and retrieve cookies from it) and not enabling proxy mutation while in session. It's still easy to control cookies. It also avoids keeping a lot of connections (the kernel will or the upstream will timeout them via /proc/sys/net/ipv4/tcp_keepalive_time) - each proxy mutation will open a new keep-alive connection (at the library level, there is no way to know if the user will issue more request with the same proxy or mutate it to close the previous)

I was planning to take another look at this, but somehow it's gone. I tested it on the latest version 0.5.6, and it seems that the issue no longer exists. My guess is that the "reset curl options" behavior introduced in previous version is the fix.
Anyway, here is my test script and result, feel free to reopen this if it still persists on your side.
┬─[ubuntu@VM-0-10-ubuntu:~/repos]─[07:44:19 PM]
╰─>$ python aio_mis.py                                                                                (curl)
RESULTS:
#1: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#2: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#3: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#4: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#5: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
┬─[ubuntu@VM-0-10-ubuntu:~/repos]─[07:44:29 PM]
╰─>$ python aio_mis.py                                                                                (curl)
RESULTS:
#1: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#2: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#3: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#4: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#5: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
┬─[ubuntu@VM-0-10-ubuntu:~/repos]─[07:44:38 PM]
╰─>$ python aio_mis.py                                                                                (curl)
RESULTS:
#1: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#2: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#3: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#4: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#5: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
┬─[ubuntu@VM-0-10-ubuntu:~/repos]─[07:44:40 PM]
╰─>$ python aio_mis.py                                                                                (curl)
RESULTS:
#1: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#2: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#3: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#4: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#5: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
┬─[ubuntu@VM-0-10-ubuntu:~/repos]─[07:44:48 PM]
╰─>$ python aio_mis.py                                                                                (curl)
RESULTS:
#1: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#2: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#3: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#4: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#5: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
┬─[ubuntu@VM-0-10-ubuntu:~/repos]─[07:44:50 PM]
╰─>$ python aio_mis.py                                                                                (curl)
RESULTS:
#1: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#2: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#3: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#4: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>
#5: 1st Request: <IP_ADDRESS> | 2nd Request: <IP_ADDRESS>

script
import asyncio
from curl_cffi import requests
from itertools import cycle
import random

with open("proxy_list.txt", "r") as temp_file:
    proxies = [line.rstrip("\n") for line in temp_file]
    random.shuffle(proxies)

# print(proxies)

proxy_pool = cycle(proxies)

async def test():
    async def do_req(sess, proxy):
        session_proxies = {"https": proxy, "http": proxy}
        r = await sess.get("https://ipinfo.io/", proxies=session_proxies)
        # print(proxy, r.text)
        proxy_1 = r.json()["ip"]
        r = await sess.get("https://ipinfo.io/", proxies=session_proxies)
        # print(proxy, r.text)
        proxy_2 = r.json()["ip"]
        return proxy_1, proxy_2

    tasks = []
    async with requests.AsyncSession() as s:
        for i in range(5):
            p = next(proxy_pool)
            # p = random.choice(proxies)
            tasks.append(do_req(s, p))
        results = await asyncio.gather(*tasks)
    print("RESULTS:")
    i = 0
    for res in results:
        i += 1
        print(f"#{str(i)}: 1st Request: {str(res[0])} | 2nd Request: {str(res[1])}")

asyncio.run(test())


feat(tutorial): complete step 2

Closes #
{{short description}}
Changelog
New

{{new thing}}

Changed

{{change thing}}

Removed

{{removed thing}}

Looks good!  I've marked your step 2 as completed.


Extend build action timeout

What type of PR is this?
/kind cleanup
/kind flake

What this PR does / why we need it:
Build action sometimes takes longer than 20 mins, and fails CI.
In order to fix it, this PR extends timeout to 40 mins.
Which issue(s) this PR fixes:
None
For reference: https://github.com/kubernetes-sigs/cri-tools/pull/1146#issuecomment-1536919496

Special notes for your reviewer:
Does this PR introduce a user-facing change?

NONE

Thank you!

when we see the PR takes to long to be validated, build can be split by OS version or we can split crictl and critest to be processed in separate jobs. But looks OK for now
/lgtm

https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/
macos-10.15 platform has been deprecated.
I'm not sure why it can be run until recently, but it seems the reason why the macos job wasn't picked by runner.
I changed it to macos-11.


Fix: defining template_params cause Exception

template_params works only when defined as a list.
The loader code raises an Exception when this is a dict (which is coherent with the way test parameters are defined).
This works:
anta.tests.stp:
  - VerifySTPMode:
      mode: mstp
      template_params:
        - vlan: 100

This does not work:
anta.tests.stp:
  - VerifySTPMode:
      mode: mstp
      template_params:
        vlan: 100

Traceback:
Traceback (most recent call last):
  File "/home/mtache/.pyenv/versions/anta/bin/anta", line 8, in <module>
    sys.exit(cli())
  File "/mnt/lab/projects/anta/anta/cli/cli.py", line 87, in cli
    anta(obj={}, auto_envvar_prefix="ANTA")
  File "/home/mtache/.pyenv/versions/3.9.16/envs/anta/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/mtache/.pyenv/versions/3.9.16/envs/anta/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/mtache/.pyenv/versions/3.9.16/envs/anta/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mtache/.pyenv/versions/3.9.16/envs/anta/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mtache/.pyenv/versions/3.9.16/envs/anta/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mtache/.pyenv/versions/3.9.16/envs/anta/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/mtache/.pyenv/versions/3.9.16/envs/anta/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/mnt/lab/projects/anta/anta/cli/check/commands.py", line 53, in table
    results = check_run(
  File "/mnt/lab/projects/anta/anta/cli/check/utils.py", line 52, in check_run
    asyncio.run(main(results, inventory_anta, tests_catalog, tags=tags), debug=False)
  File "/home/mtache/.pyenv/versions/3.9.16/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/home/mtache/.pyenv/versions/3.9.16/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/mnt/lab/projects/anta/anta/runner.py", line 55, in main
    coros.append(test[0](device=device, template_params=template_params).test(eos_data=None, **test_params))
  File "/mnt/lab/projects/anta/anta/models.py", line 139, in __init__
    self.instance_commands.extend(
  File "/mnt/lab/projects/anta/anta/models.py", line 141, in <genexpr>
    command=tpl.template.format(**param),
TypeError: str.format() argument after ** must be a mapping, not str

We should also support different input formats for template_params.  For VLANs, it would be nice to be able to enter:
template_params:
  vlans: "2-4094"

We could also add something like:
template_params:
  vlans: "10,20-100"

Same goes for tests with VRFs.
Thanks


RectangleShape2D shape slightly broken

Godot version
4.0.beta1 mono
System information
KDE Neon 5.25
Issue description
The polygon for RectangleShape2D is slightly broken

I saw this was a issue on the non mono versions in alpha also.
Steps to reproduce
Create a CollisionShape2D with a RectangleShape2D
Minimal reproduction project
Doesn't need it I only changed these settings in my project

Duplicate of #56320.


Rows per page Option 200 does not work

[ ] Rows per page option 200 at the bottom of the page does not work.

Action Item - Ensure Rows per page option 200 is working where applicable.
@steph-sing

@rykahsay Can you please provide me with the update for this ticket and the estimated time to address it?

The library I am using does not allow me to go more than 100, so I have fixed it as shown

reflected in ARGOS. closing ticket


Alias/metrics InfluxDB from different devices don't show up on the "apply to metrics" of mapping tap.

Hi,
I'm trying to use flowcharting for a office floorplan with data per room, example temperature. I use an InfluxDB. All rooms have same sensors and report the same.
For every room I use 1 query "from" to select CO2 and "where" to select the sensor ID and give it an alias.

But when I use "apply to metrics" I will only see the first room. It seems the different "where" queries are not recognized.  Also if I don't specify an alias it will only give me the option "device_frmpayload_data_CO2.mean" in the "apply to metrics" drop down.
Do I do something wrong? Or is this as expected? Maybe there is a work around by modifying the data in Grafana?

Issue can be closed, it's working fine. I had no data for one of the aliases for the resent time. After changing the time frame of the measurements second and third alias showed and could be selected.


Update to Go 1.20 (and trim the dependency tree)

Which issue this PR addresses:
Chore -- upgrade to 1.20
What this PR does / why we need it:
Updates ARO to build on Go 1.20. Also updates a few very old deps (I'll pull this out into a different one)
Test plan for issue:

Is there any documentation that needs to be updated for this PR?

/azp run ci

/azp run e2e

supersceded by https://github.com/Azure/ARO-RP/pull/3385


[feature request] typescript when has Scheduling Workflows and Child Workflows

see the docs https://docs.hatchet.run/sdks/go-sdk/child-workflows, i am not found Scheduling Workflows and Child Workflows in typescript sdk

Hey @maobase, this is available in the Typescript SDK. There are Typescript examples here: https://docs.hatchet.run/home/features/child-workflows.
We're working on the docs, thanks for flagging that this is confusing.


Add unit tests

This is a first pass at adding unit/integration tests. Let me know if I can expand or improve them.
Signed-Off-By: Robert Clark<EMAIL_ADDRESS>

@roclark This looks pretty great to me!


Error when using Move/Duplicate To

Tested versions
Engine version: Godot Engine v4.4.dev4.official (36e6207bb48fafd43b98a458d0c461ad982b4e68)
System information
Godot v4.4.dev4 - Pop!_OS 22.04 LTS on X11 - X11 display driver, Multi-window, 2 monitors - Vulkan (Forward+) - dedicated Quadro P1000 (nvidia; 560.35.03) - Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 threads)
Issue description
Godot crashes when trying to copy a file to another location using the Move'/Duplicate To option in the FileSystem.
This is the error I get:
ERROR: Task '_update_scan_actions' already exists.
   at: add_task (editor/progress_dialog.cpp:173)

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.4.dev4.official (36e6207bb48fafd43b98a458d0c461ad982b4e68)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7c0f70e42520] (??:0)
[2] /usr/local/bin/godot() [0x1588dd0] (??:0)
[3] /usr/local/bin/godot() [0x158b9c3] (??:0)
[4] /usr/local/bin/godot() [0x4215a28] (??:0)
[5] /usr/local/bin/godot() [0x25ec59c] (??:0)
[6] /usr/local/bin/godot() [0x2602c93] (??:0)
[7] /usr/local/bin/godot() [0x2606159] (??:0)
[8] /usr/local/bin/godot() [0x52ee92] (??:0)
[9] /usr/local/bin/godot() [0x184fe53] (??:0)
[10] /usr/local/bin/godot() [0x16677c1] (??:0)
[11] /usr/local/bin/godot() [0x1589215] (??:0)
[12] /usr/local/bin/godot() [0x158bf78] (??:0)
[13] /usr/local/bin/godot() [0x4264c7d] (??:0)
[14] /usr/local/bin/godot() [0x26060fc] (??:0)
[15] /usr/local/bin/godot() [0x52ee92] (??:0)
[16] /usr/local/bin/godot() [0x41c2fa] (??:0)
[17] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7c0f70e29d90] (??:0)
[18] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7c0f70e29e40] (??:0)
[19] /usr/local/bin/godot() [0x43af1a] (??:0)
-- END OF BACKTRACE --
================================================================

Steps to reproduce
Right click in one file in the FileSystem section and chose Move/Duplicate To option. Then select another location in the dialog and chose Copy on the options below. Godot crashes completely.
Minimal reproduction project (MRP)
I'm using an empty 2D project with just a few folders and files, nothing special.

I can't reproduce on windows.
Godot v4.4.dev4 - Windows 10.0.19045 - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated AMD Radeon RX 580 2048SP (Advanced Micro Devices, Inc.; 31.0.21921.1000) - AMD Ryzen 5 3600 6-Core Processor (12 threads)


Implement basic mesh preview if no thumbnail found

Great addon! The QoL improvement is already helping me a lot :)
I may put more time into this yet, but here's a basic implementation of generating a scene preview for added components.
It uses similar code to the C++ implementation of thumbnail preview generation from the MeshLibrary resource. It uses EditorInterface.make_mesh_previews to generate a thumbnail texture, and saves it as a png alongside the component scene file. For now, this is a very basic shallow search of the scene file's scene tree for MeshInstances or MultiMeshInstances to search for meshes. The depth of the search is configurable via the preview_depth variable. The generation can be disabled via the generate_previews bool. This is not an expensive or extensive search, it just gets child nodes repeatedly until it runs out.
Ideally, this functionality would be configurable via the addon's UI dock, but I made this basic change to see if it was possible a week or so ago, and haven't yet had the time to work on that.
Since this basically just takes the first mesh found and generates an image from it, it's not a very sophisticated preview, but gives at least some initial visual reference over the included default icon. Example:

Where the "Barrier" scenes are various combinations of walls:

And the floor scene is a, well, floor:

So as you can see, the preview isn't entirely representative of the scene (or even vaguely, depending on the scene, I guess), but it's a start to making the workflow of the addon a bit smoother.

Great stuff, thanks for looking over it - let me know if I can make any other changes.
Yeah, the whole thing could be generalised a bit to support 2D and 3D scenes, I haven't worked with 2D in a while so didn't really try it, but I imagine it's possible through a similar method?

I guess one option would be to change the mesh's material during icon generation to disable any face culling, assuming it's material back/front culling that's the issue there. Don't know if that would cause more issues than it's worth but it seems doable.

That is an error in the asset pack, that was a warning to not to search for an issue with it. Also, Kenney already fixed it for me :)

Edit: I forgot to mention, in component_view.gd there is a var editor_plugin:EditorPlugin which appears to be set by the plugin.gd on entering the tree. However when I tried to use that variable for the preview generation, by clicking the "Update" button in the addon panel, editor_plugin is null. Hence this hack:

If you edit the script while the plugin is running then it will be null, it is non-issue during normal use. Reloading the plugin (disable then enable again) fixes it. plugin.gd won't run to reset it when you reload component_view.gd, hence the null.

Great stuff, thanks for looking over it - let me know if I can make any other changes.

Feel free to, I think I'll take the branch as is then do some refactoring before the final merge.

Yeah, the whole thing could be generalised a bit to support 2D and 3D scenes, I haven't worked with 2D in a while so didn't really try it, but I imagine it's possible through a similar method?

For 2D, check if the is something convertible to a texture (texture rect, texture button, sprite, color rect, maybe controls if we feel fancy) then resize that texture appropriately. (upscale if too small, downscale if too large)

Just as a heads up: apparently you can add new settings to the "editor settings" menu, but everything you do is effectively permanent.

@lewiji this branch has my modifications to it, I do not want to push into yours. Added the configs that I wanted as project settings.
https://github.com/Frontrider/Godot-Component-Browser/tree/feature-mesh-preview

And I'll also state why I used project instead of editor settings:
Editor settings are global. When you create a new one it will permanently write into your global editor_data/editor_settings.tres, and will show up everywhere even if the plugin is not installed (you also can not change that setting ever in any capacty). That is not my desire as you may or may not want the thumbnails to be exported, as it can be good for either an exported level editor, or say an in-game codex. But if you only use those for the editor, then you absolutely must not have them in the exported pck.

I got it mixed up with code I did not intend to merge yet, will try again when that's sorted out.


Fixed react  lifecycle methods warning

fix: adding “UNSAFE_” prefix to react  lifecycle methods.

@puviz this library is unmaintained almost 2 years, please refer to new lib npm @react-google-maps/api

@puviz this library is unmaintained almost 2 years, please refer to new lib npm @react-google-maps/api

@JustFly1984 thank you for your suggestion

I ran the command
npx react-codemod rename-unsafe-lifecycles

to fix this issure, but im still getting the warnings.  How did you accomplish this? thanks.

@barrard this library is unmaintained more than two years and will never be updated. Please refer to our rewrote and updated version: @react-google-maps/api

@JustFly1984  Thanks for your work on this new library.  It seems to be missing MarkerWithLabel which I want to use.

@barrard If you need it, your PR is welcome, you can create a new package in our repo, and I will publish it and update the main library, just copy marker-clusterer, and replace the code inside the copy


[WFLY-19346] Make 'org.wildfly.security.elytron-http-oidc' module public

Issue: https://issues.redhat.com/browse/WFLY-19346
Make 'org.wildfly.security.elytron-http-oidc' module public

More information about the wildfly-bot[bot]

Before changing the modules we should check the generate JavaDoc and ensure all of these classes get listed as public API and with that double check they are suitable to be classed as public API

Hi @darranl, Do you mean https://wildfly-security.github.io/wildfly-elytron/documentation/api/upstream/org/wildfly/security/http/oidc/package-summary.html ? I can not really tell all of them. but I can see downstream user want to use OidcConfigurationServletListener which is public class.

@soul2zimate @darranl I think this PR should be closed and the issue should be analyzed / discussed somewhere else, e.g. in JIRA comments, zulip, wildfly-dev etc. Then open a PR when there's agreement on what should be exposed as public and how.

I was actually following @fjuma's suggestion in https://issues.redhat.com/browse/EAPSUP-1470.
Hi Elytron team, let me know if you need further discussion. then I will close this PR.

I was actually following @fjuma's suggestion in https://issues.redhat.com/browse/EAPSUP-1470.
Hi Elytron team, let me know if you need further discussion. then I will close this PR.

@soul2zimate I had mentioned there that we should make the module public but we do still need to check the JavaDoc first and ensure all of these classes get listed as public API and verify that they are suitable to be public API.

Sorry, @soul2zimate if my last comment came off a brusque. I have no complaints that you opened this. It just seems clear that from the comments it needs discussion that's better done elsewhere. Every now and then I dream of getting the PR queue in a manageable state. :)

sure @bstansberry  @fjuma  I am closing this one. will reopen once we have an agreement. Thanks.


Fixes attribute "mkPython" missing due to going one "mach-nix" too deep in the packages set value for "mach-nix"

Also a few small cosmetic changes that may make reading the code a bit easier, in my opinion.

Wait... No it doesn't. I'll fix this up and create another request.


the music was interrupted

Please describe your problem in as much detail as possible:
I open music from my bot but the music cuts out and when I check it I don't get any error. I think there is a bug in your module or I don't know.
Further information:

DisTube version: 4.04
discord.js version: 14.7.1
Node.js version: 18.13.0
Operating system: Windows

Discord recently did a new update that is causing this issue
Message Link: https://discord.com/channels/613425648685547541/697138785317814292/1080623873629884486

Temporary fix for distube v4 is here:
https://github.com/umutxyp/MusicBot/issues/97#issuecomment-1452607414

discordjs/discord.js#9185
Not related to distube


[enhancement] Move the code generator logic to a dockerfile

Why?
Based on the current open issues, lots of users are having a hard time making the code generation script to work correctly for their projects. The current implementation is a bash script that heavily depends on:

go envs should be correctly populated to shell
location of the codebase should be $GOPATH/src/github.com/kubernetes/sample-controller
maintaining a vendor directory, if using go modules

How?
Docker supports exporting build artifacts to the host machine via buildkit. We can leverage this feature. This will also make verifying codegen in CI pipelines very easy. Sample dockerfile:
# hack/Dockerfile.update-codegen

# Usage: docker buildx build --file hack/Dockerfile.update-codegen -o . .

FROM golang:1.17 AS build
WORKDIR /go/src/github.com/kubernetes/sample-controller
RUN go get<EMAIL_ADDRESS>COPY . .
RUN bash<EMAIL_ADDRESS>all \
    github.com/kubernetes/sample-controller/pkg/generated github.com/kubernetes/sample-controller/pkg/apis samplecontroller:v1alpha1 \
    --go-header-file<EMAIL_ADDRESS>
FROM scratch
COPY --from=build /go/src/github.com/kubernetes/sample-controller/pkg pkg

I would be happy to make a PR or give more clarity on the idea if required.

/close


Use reflection for version field output

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This makes the version output more flexible without risking to forget a field to print.
Which issue(s) this PR fixes:

None
Does this PR have test?
None

Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

None

/retest

/retest


GitHub Actions failing with commenting to PR

Expected Behavior
Actions bot should post Netlify deploy preview comment.
Current Behavior

Action fails.
Context
#70

Confirmed. This is a netlify-cli issue. We should use Netlify's API directly. Working on fix.

The issue is that Github secrets (which we use to store the Netlify Auth Token) are not available in the Github actions workflow when a pull request from a fork is triggered.
This is a security precaution, so that an attacker cannot exfiltrate the secrets by just triggering a pull request with a specially crafted modified workflow.
I will have to think about implementing an alternative mechanism to achieve deploy previews for non-orgarnization members (members without READ access to repository secrets). Suggestions are welcomed.


Add support for dash and dot notation

We have a case where our tags are currently denoted with a release candidate (rc) and a version of that rc.
I've added support for the dot notation of the rc that we have, and also included a test.
Edit: Should also resolve #475

Hi @zackheil - any chance of a merge? Sorry for the direct ping, it seems like you're the only contributor on this repo.


Lots of errors when building a book PDF with typst

Description
As a part of #1002 I tried to build my multi-page book as a PDF with Typst, but I ran into a ton of errors for what seem like unsupported directives and such. I'm not doing anything too crazy in that report, but there are likely some things I'm using that may not yet be supported, like {card} objects.
I used the following command to capture some of the error output:
myst build --typst > tmp.txt 2>&1

And the content of tmp.txt is full of stuff like:
help: error occurred while importing this module
   ┌─ _build/temp/mystvtpp1H/my-document.typ:37:9
   │
37 │ #in
clude "my-document-year3.typ"
   │          ^^^^^^^^^^^^^^^^^^^^^^^

error: expected comma
   ┌─ _build/temp/mystvtpp1H/my-document-year3.typ:83:22
   │
83 │ - We created and hired for five new role
s on our team (links to descriptions of each below):
   │
   ^

Issues to resolve

[ ] https://github.com/executablebooks/mystmd/issues/964
[ ] https://github.com/executablebooks/mystmd/issues/963
[ ] https://github.com/executablebooks/mystmd/issues/962
[x] https://github.com/executablebooks/mystmd/pull/999

I think almost all of the errors are gone after using:

https://github.com/executablebooks/mystmd/pull/999

However I'm still getting a weird error with typst + latex around defining an "abstract":
⛔ myst.yml 'parts' missing required key: abstract (at myst.yml)

And I'm seeing an empty "abstract" section at the top of the document.

The template you are using requires an abstract. :) And we don't have more templates yet...!
You can add the key in your frontmatter, have a title abstract for a section or add a block.

Hmm, I did have this in my first page:
# Title

+++ {"part": "abstract"}
Abstract content

+++

but it wasn't getting picked up

For the frontmatter, it's not clear to me where I put it. Do I put it in myst.yml under the project: key? The table in the docs seems to suggest that it is not picked up at the project level:

In addition, when I put the following frontmatter in the first page of my book I get the same error:
parts:
  abstract: |
    Testing!

Can you point me to a branch to see where your export is defined (is it on a single page)? The abstract key is page only (in the frontmatter at the top of a document). If you are exporting in multi-doc mode, I am not actually sure how parts are treated, that is still very much evolving. The current typst template is only really designed for single articles/pages.

A few links:

Here's the typst config I've tried: https://github.com/2i2c-org/report-czi-2021/blob/68633fb9d5680429fb3ed10af9e3a576d42993e6/myst.yml#L27-L30
Here's the first page w/ the abstract part defined: https://github.com/2i2c-org/report-czi-2021/blob/main/main.md#2i2c-grant-report-overview

It is sounding to me like the abstract issue is not actually a "bug" it is more like a feature request: "Typst support for multi-page documents."

I opened a few PRs and created a new example of a typst-book:

https://github.com/2i2c-org/report-czi-2021/pull/2
https://github.com/2i2c-org/report-czi-2021/pull/3
https://github.com/rowanc1/typst-book

Yes, figuring out parts in multi-export is a feature request. Hopefully the report examples are illustrative of where to put the frontmatter, I think we need clearer docs on this as the reference is hard to understand?
The la-preprint typst report template also has a bunch of changes that I haven't got to to improve some of the title block rendering. We published a "pubmatter" about a month ago with a ton of improvements:
https://github.com/typst/packages/pull/373
But haven't worked it back into the templates yet because the publish took time and I lost steam on that thread. 🧵
If you can advise on some places where we can improve the docs to make this clearer that would be really helpful.

I think for the parts and front-matter, the easiest thing is just to have a lot of examples in the docs, just saying "here's an example of defining an abstract in the page's frontmatter" and "here's an example of defining the abstract in the myst.yml file" would probably have been enough for me.

I think that there should be a good typst-book template that works, is really good and our community supports. That is the template that is likely most appropriate for your content and the linked repo is my start at that, I wasn't implying for you to develop a template, although that too is possible of course.
Hoping to get the book template better in the coming weeks, and that should work out of the box for your content.
Myst can link to any local template or a template in a git repo that is not managed by us. The PR just points to my start of a template via the git repo.

ah ok cool I see - I thought you were using the book-template as like a "here's how you should have built a template yourself with typst" example.
So how about from here on I use your typst-book template and use that report to drive feature dev there?

Sure that works -- the repo is only 2 commits and 2 hours old for the record, so please calibrate expectations! But the extra eyes and thinking will help shape it. :) When it is a bit more mature and ready for wider feedback we can transfer it over to myst-templates, or whenever is appropriate if we start making issues over there.

yeah for sure - I'm just proposing this in the name of dogfooding in order to drive cycles of development and enhancement. It already looks nice to me though!

As the PDF can now be build without errors, I am going to close this issue in favour of more specific follow ups. Feel free to reopen it @choldgraf if you fee that there is more to do on this issue.


[Error: skus is required for Android purchase]

Description
So whenever I cam calling the  "getProducts"-Method , i receive the error:
' [Error: skus is required for Android purchase]'
const {
    connected,
    products,
    currentPurchase,
    getProducts,
    requestPurchase,
    finishTransaction,
  } = useIAP();

  // so first I am calling within a useContext - this part works fine (i am receiving data etc. for that item)
  await getProducts({skus: items});

// and afterwards, when i chose to buy
await requestPurchase({sku: product.productId}); // whenever i call this, i receive the error

Expected Behavior
No error. Show the google-pay window.
Environment:

react-native-iap: newest version
react-native: newest version
Platforms (Android Emulator + Xiaomi Poco Pro 2 Device):

Problem solved:
I had to pass the parameter skus instead of sku. And it has to be an array!
example:
await requestPurchase({skus: [product.productId]});


SUBMARINE-189. [SS] Add submarine server architecture doc

What is this PR for?
Add submarine server architecture doc
What type of PR is it?
[Documentation]
Todos
See TODO label
What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-189
How should this be tested?
https://travis-ci.org/jiwq/hadoop-submarine/builds/601922439
Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

Could you paste the link of the google doc in the description so that we can edit or comment directly? @jiwq

I drafted a google doc here to help design the generic job spec and REST API easily. Please share your thoughts. @jiwq @liuxunorg @yuanzac
https://docs.google.com/document/d/1kd-5UzsHft6gV7EuZiPXeWIKJtPqVwkNlqMvy0P_pAw/edit?usp=sharing

@tangzhankun Thanks for your reviewing. I had paste the link in the description and addressed all the comments. About the design of the generic job spec and REST API, I'll comment in the google doc.

Thanks @jiwq for the contribution and @tangzhankun, @liuxunorg for the review.

Thanks @jiwq for the contribution and @tangzhankun, @liuxunorg for the review.


Backport/7.x/rest spec runner

gens code to 7.x of elasticsearch
backport of #4352
Introduce null handling of dictionary values on 7.x (bug fix IMO @russcam @codebrain)
7.x has tests with multiple skip version ranges this is now handled as well (needs forward port)

clients-ci is happy merging this in


How to set custom password as default?

Hey there. Im stuck on this issue  -.-
I try to set up an custom password by default for admin login. I try different things.
I try to curl the url domain.tld/webmail/?admin and i try to wget the url that rainloop generate the needed files like application.ini. Then i try to set the admin user and pw. But i cant get rainloop generate the files over bash cli.
So i try to modify the Application.php like this:
RAINLOOP_ADMIN_PASSWORD=$(password)
RAINLOOP_ADMIN_USER=$(username)
find /etc/nginx/html/${MYDOMAIN}/ -name 'Application.php' -exec sed -i "s/array('12345')/array('${RAINLOOP_ADMIN_PASSWORD}')/" {} \;
find /etc/nginx/html/${MYDOMAIN}/ -name 'Application.php' -exec sed -i "s/array('admin', 'Login and password for web admin panel')/array('${RAINLOOP_ADMIN_USER}', 'Login and password for web admin panel')/" {} \;

But if i run the url domain.tld/webmail/?admin there is ni application.ini. So i think i forgett a step to change but do not find the part.
in the Application.php is the right user and pw seen:
'admin_login'				=> array('4VIkEnsd', 'Login and password for web admin panel'),
'admin_password'			=> array('XCNOPX9GYGFMhAKzHPG0LE9794rml2jq'),

Maybe anyone can help me to imprive the security and set up a custom password for my users.
Thank you

I have the same question when trying to do a scripted install with an initial domain and a custom password. This seems to be difficult, as /data/data/default/configs/application.ini is only generated after visiting domain.tld/webmail/?admin and manually entering the default domain.
Additionally the password needs to be hashed by the script. Did you find a solution for this?

You can figure this out yourself...

grep for admin_password recursively across the source code
notice references like this:
app/libraries/RainLoop/Config/Application.php:          return $this->Set('security', 'admin_password', \md5(APP_SALT.$sPassword.APP_SALT));
indicating the use of an md5 hash and a salt stored in a variable named APP_SALT
continue grepping recursively for APP_SALT, notice it's defined in include.php:
define('APP_SALT', md5($sSalt.APP_PRIVATE_DATA_NAME.$sSalt));
notice references to salt.php within include.php:
@file_put_contents(APP_DATA_FOLDER_PATH.'SALT.php', $sSalt);
locate salt.php:

find . -iname salt.php
./data/SALT.php
#SKIP TO HERE IF LAZY
6. copy both application.ini and SALT.php, to $WEBROOT/data/default/configs and $WEBROOT respectively.

Thank You! I try it in a few days


[Bugfix] Fix mv partition sync issues

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

If no partition is specified when creating mv, after the base table delete partition, the mv does not delete the partition synchronously.
after base table add partition, the partition mapping relationship is not added to mv if partition exist in mv.

[FE PR Coverage check]
:heart_eyes: pass : 21 / 25 (84.00%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/scheduler/MvTaskRunProcessor.java
15
18
83.33%

:large_blue_circle:
com/starrocks/catalog/MaterializedView.java
6
7
85.71%

run starrocks_admit_test


Requests to API for custom metric inconsistant

When making a request to the API for a custom metric, requests are being dropped:
kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/test-ns/pods/*/tasks_count" | jq .
{
  "kind": "MetricValueList",
  "apiVersion": "custom.metrics.k8s.io/v1beta1",
  "metadata": {
    "selfLink": "/apis/custom.metrics.k8s.io/v1beta1/namespaces/test-ns/pods/%2A/tasks_count"
  },
  "items": [
    {
      "describedObject": {
        "kind": "Pod",
        "namespace": "test-ns",
        "name": "pg-service",
        "apiVersion": "/__internal"
      },
      "metricName": "tasks_count",
      "timestamp": "2018-06-22T07:24:13Z",
      "value": "31"
    }
  ]
}
 ~ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/test-ns/pods/*/tasks_count" | jq .
Error from server (NotFound): the server could not find the metric tasks_count for pods
 ~ kubectl  get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/test-ns/pods/*/tasks_count" | jq .
Error from server (NotFound): the server could not find the metric tasks_count for pods
 ~ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/test-ns/pods/*/tasks_count" | jq .
Error from server (NotFound): the server could not find the metric tasks_count for pods
 ~ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/test-ns/pods/*/tasks_count" | jq .
Error from server (NotFound): the server could not find the metric tasks_count for pods
 ~ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/test-ns/pods/*/tasks_count" | jq .
{
  "kind": "MetricValueList",
  "apiVersion": "custom.metrics.k8s.io/v1beta1",
  "metadata": {
    "selfLink": "/apis/custom.metrics.k8s.io/v1beta1/namespaces/test-ns/pods/%2A/tasks_count"
  },
  "items": [
    {
      "describedObject": {
        "kind": "Pod",
        "namespace": "test-ns",
        "name": "pg-service",
        "apiVersion": "/__internal"
      },
      "metricName": "tasks_count",
      "timestamp": "2018-06-22T07:24:57Z",
      "value": "31"
    }
  ]
}

This seems to result in the HPA not finding the metric:
 kubectl describe hpa task-service
Name:                                task-service
Namespace:                           test-ns
Labels:                              <none>
Annotations:                         kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"autoscaling/v2beta1","kind":"HorizontalPodAutoscaler","metadata":{"annotations":{},"name":"task-service","names...
CreationTimestamp:                   Thu, 21 Jun 2018 07:26:48 -0700
Reference:                           Deployment/task-service
Metrics:                             ( current / target )
  "tasks_count" on pods:  <unknown> / 20
Min replicas:                        1
Max replicas:                        10
Conditions:
  Type           Status  Reason               Message
  ----           ------  ------               -------
  AbleToScale    True    SucceededGetScale    the HPA controller was able to get the target's current scale
  ScalingActive  False   FailedGetPodsMetric  the HPA was unable to compute the replica count: unable to get metric tasks_count: unable to fetch metrics from API: the server could not find the metric tasks_count for pods
Events:
  Type     Reason               Age                  From                       Message
  ----     ------               ----                 ----                       -------
  Warning  FailedGetPodsMetric  6m (x1149 over 17h)  horizontal-pod-autoscaler  unable to get metric tasks_count: unable to fetch metrics from API: the server could not find the metric tasks_count for pods
  Warning  FailedGetPodsMetric  1m (x960 over 17h)   horizontal-pod-autoscaler  unable to get metric tasks_count: no metrics returned from custom metrics API

This usually happens if your Prometheus collection interval is longer than the rate or discovery intervals, or something similar.

I went through the tutorial at https://github.com/stefanprodan/k8s-prom-hpa to double check the work and I am seeing the same errors, though the HPA is able to read the targets:
k get hpa
NAME         REFERENCE               TARGETS     MINPODS   MAXPODS   REPLICAS   AGE
podinfo      Deployment/podinfo      850m / 10   2         10        2          7d

kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/pods/*/http_requests" | jq .
{
  "kind": "MetricValueList",
  "apiVersion": "custom.metrics.k8s.io/v1beta1",
  "metadata": {
    "selfLink": "/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/pods/%2A/http_requests"
  },
  "items": [
    {
      "describedObject": {
        "kind": "Pod",
        "namespace": "default",
        "name": "podinfo-6b86c8ccc9-67t27",
        "apiVersion": "/__internal"
      },
      "metricName": "http_requests",
      "timestamp": "2018-06-26T22:57:28Z",
      "value": "850m"
    },
    {
      "describedObject": {
        "kind": "Pod",
        "namespace": "default",
        "name": "podinfo-6b86c8ccc9-nm7dd",
        "apiVersion": "/__internal"
      },
      "metricName": "http_requests",
      "timestamp": "2018-06-26T22:57:28Z",
      "value": "850m"
    }
  ]
}

kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/pods/*/http_requests" | jq .
Error from server (NotFound): the server could not find the metric http_requests for pods

k describe hpa podinfo
#truncated output
Events:
  Type     Reason               Age                 From                       Message
  ----     ------               ----                ----                       -------
  Warning  FailedGetPodsMetric  24m (x43 over 45m)  horizontal-pod-autoscaler  unable to get metric http_requests: unable to fetch metrics from API: the server could not find the requested resource (get pods.custom.metrics.k8s.io *)
  Warning  FailedGetPodsMetric  4m (x8650 over 7d)  horizontal-pod-autoscaler  unable to get metric http_requests: unable to fetch metrics from API: the server could not find the metric http_requests for pods

My Prometheus collection interval:
- job_name: kubernetes-pods
  scrape_interval: 1m
  scrape_timeout: 10s
  metrics_path: /metrics

and the  custom-metrics-apiserver-deployment config:
 - name: custom-metrics-apiserver
        image: quay.io/coreos/k8s-prometheus-adapter-amd64:v0.2.0
        args:
        - /adapter
        - --secure-port=6443
        - --tls-cert-file=/var/run/serving-cert/serving.crt
        - --tls-private-key-file=/var/run/serving-cert/serving.key
        - --logtostderr=true
        - --prometheus-url=http://running-ocelot-prometheus-server/
        - --metrics-relist-interval=30s
        - --rate-interval=5m
        - --v=10

Do have something misconfigured?

So I bumped my metrics-relist-interval to 90s and no longer seeing the error.  I was using the Prometheus Helm Chart which has the pod scrape interval set to 1m and making sure both metrics-relist-interval and rate-interval were above the Prometheus scrape interval resolved the issue.
- --metrics-relist-interval=90s
- --rate-interval=5m

Is there any guidance on what are good values for metrics-relist-interval and rate-interval?
Would it be valuable to give an error message that might point folks in the right direction for this type of misconfiguration, if they believe the value should be listed?

@DirectXMan12 : i have my relist interval set to same as the prometheus scrape interval i still face the issue(metrics keep disappearing) sometimes i get the metrics while sometimes i get empty resources at "kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1
{"kind":"APIResourceList","apiVersion":"v1","groupVersion":"custom.metrics.k8s.io/v1beta1","resources":[]}"
custom-metrics-apiserver-deployment  config:
args:
- --secure-port=6443
- --tls-cert-file=/var/run/serving-cert/serving.crt
- --tls-private-key-file=/var/run/serving-cert/serving.key
- --logtostderr=true
- --prometheus-url=http://prom-global-svc.monitor:9090/prom/global
- --metrics-relist-interval=1m
- --v=10
- --config=/etc/adapter/config.yaml
And prometheus config:
global:
  evaluation_interval: 1m
  scrape_interval: 15s
  scrape_timeout: 5s

Could you please suggest me on this


bring back drag and drop in windows 11 officially

Description of the new feature / enhancement
will be great if Drag & Drop to the Taskbar from windows 10 is available in windows 11. Currently using a git from "https://github.com/HerMajestyDrMona/Windows11DragAndDropToTaskbarFix".
Scenario when this would be used?
Using Drag & Drop to the Taskbar officially will be great and power users need this. it will save a lot of time. The git i currently using "https://github.com/HerMajestyDrMona/Windows11DragAndDropToTaskbarFix" has some bugs as it takes some time to work.
Official Drag & Drop to the Taskbar via power toys will be better i hope
Supporting information
current workaround for Drag & Drop to the Taskbar feature in windows 11 : https://github.com/HerMajestyDrMona/Windows11DragAndDropToTaskbarFix

What version of Windows do you use? It it added in an update a while ago.

/needinfo


Allow checking just visibility without respect to idleness

Previously the now() method existed that returned true if the state was 'active' and false if it was 'idle' or 'hidden'. But sometimes I'd like to be able to just check visibility without regard to idleness.
The documentation of the now method was also misleading, and I've modified it to clarify its behaviour.
Note: I'm CoffeeScript-illiterate and simply ran coffee -cm ifvisible.coffee to compile this after a fresh install of CoffeeScript through Node. I got a map file with a different file name, so just deleted the old one and rolled with it. Let me know if I've screwed up in some way.

the name ifvisible.isVisible is sort of confusing. I saw your need and and updated the now method. now it's smart and can check agains given status codes. such as
if ( ! ifvisible.now('hidden')) {
   ...
}

I also updated the docs. Thanks


[bn] Ready glossary page for vanilla Docsy

Sync with en #45937
Current glossary page | Preview glossary page

/lgtm


Logo

Hello. I am a graphic designer. I want to volunteer support for open source projects. If you want, I can design a logo for you. What do you say?  I can design.

Hello,
Can you make something for the logo using the mule or with the existing OpenEBS logo? Your choice. Thanks.

Of course sir.


[#132736941] introduce dashboard for datadog overview

What
Introduce dashboard for PaaS monitor overview
We are using Smashing to provide a dashboard.
We chose this as it is already in use by Verify, it seems simplest and easiest out of
existing tools, and it is easy to read at a distance.
We add service:foo_env tags to all monitors. We were advised to do this by Datadog since the
service prefix is treated differently from most tags and allows the filter in the UI to work properly.
We deploy the new dashboard to the prod env in the main pipeline.
There's a temporary commit to allow the reviewer to see the thing work in dev if they want to.
How to review
To run the dashboard locally,
cd tools/paas_dashboard
bundle install
DD_API_KEY=<api key> DD_APP_KEY=<app key> bundle exec smashing start

The keys can be retrieved from the integrations -> api section of the datadog webui.
The dashboard by default looks for monitors with service tags for prod_monitors, staging_monitors, master_monitors - it won't find any until after this is merged.
You can play with the dashboard by deploying the branch and running the code locally with
a modification in tools/paas_dashboard/jobs/datadog.rb to target different service tags.
Review https://github.com/alphagov/paas-team-manual/pull/70 at the same time.
Once you're happy and merged, on the mac-mini terminal, do something like:
curl https://github.com/dsingleton/frame-splits/archive/gh-pages.zip > frame-splits.zip
unzip frame-splits.zip
google-chrome ./frame-splits/build.html

Figure out how you want to display the various dashboards we have.
You should probably use the local frame-splits for the concourse pipeline split as well.
Who can review
Not @benhyland or @saliceti - perhaps @paroxp could take a look ;)

I just had a response from Datadog which advises that we should use the manual filtering workaround we already adopted. They point to the silenced key notify_no_data fields for a more refined determination of what is or is not triggered - we could adjust this so we don't display warnings on non-triggered 'No Data' monitors.
They also promise to improve the api docs.


[3.0] Fix #8704, unify error message

issue no #8704

Codecov Report

Merging #8794 (7f064f1) into 3.0 (675aead) will decrease coverage by 0.18%.
The diff coverage is 66.66%.

@@             Coverage Diff              @@
##                3.0    #8794      +/-   ##
============================================
- Coverage     63.89%   63.71%   -0.19%
+ Complexity      313      312       -1
============================================
  Files          1151     1156       +5
  Lines         48381    48652     +271
  Branches       7294     7288       -6
============================================
+ Hits          30914    30998      +84
- Misses        14088    14246     +158
- Partials       3379     3408      +29

Impacted Files
Coverage Δ

.../java/org/apache/dubbo/config/ReferenceConfig.java
82.22% <ø> (+1.37%)
:arrow_up:

...ubbo/registry/client/ServiceDiscoveryRegistry.java
81.75% <66.66%> (-0.25%)
:arrow_down:

...ring/context/event/DubboAnnotationInitedEvent.java
66.66% <0.00%> (-33.34%)
:arrow_down:

...nfig/spring/extension/SpringExtensionInjector.java
56.66% <0.00%> (-30.84%)
:arrow_down:

...ubbo/config/spring/status/SpringStatusChecker.java
55.00% <0.00%> (-29.22%)
:arrow_down:

...ng/transport/dispatcher/all/AllChannelHandler.java
68.96% <0.00%> (-20.69%)
:arrow_down:

...ng/transport/dispatcher/WrappedChannelHandler.java
47.82% <0.00%> (-19.57%)
:arrow_down:

.../apache/dubbo/config/bootstrap/DubboBootstrap.java
53.40% <0.00%> (-16.39%)
:arrow_down:

...ring/context/DubboSpringInitializationContext.java
60.86% <0.00%> (-14.14%)
:arrow_down:

...ache/dubbo/remoting/transport/AbstractChannel.java
75.00% <0.00%> (-12.50%)
:arrow_down:

... and 142 more

Continue to review full report at Codecov.

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

pls fix conflicts

pls fix conflicts

done, thanks


Add system tests for calicoctl pool command

Right libcalico, apologies.  They are just hardcoded, yes, in calico_ctl/node.py.  I've updated my PR to have the values defined as values in node.py, at the very least, and removed the defaults.py since it is unnecessary right now.


electron: plugin is adding __dirname in preload file after compilation

Environment
Description
This is issue is happening when using the plugin for electron  with electron-forge.
An unexpected __dirname is written in the source file and cause to the renderer process to fail as it's configured with nodeIntegration: false.
What version are you running? Etc.

package
version

electron
21.2.2

electron-forge
6.0.0

@sentry/webpack-plugin
1.20.0

typescript
4.8.x

Steps to Reproduce

GIVEN you're creating a BrowserWindow with the webPreference nodeIntegration set to false
THEN you're creating a new exposable api calling ipcRenderer in the file preload.ts
IF you import some other files using ipcRenderer in the file preload.ts
THEN as a result the plugin is adding __dirname to target some /native_modules

Here's our plugin's config:
    new SentryWebpackPlugin({
      url: process.env.SENTRY_URL,
      org: process.env.SENTRY_ORG,
      project: process.env.SENTRY_PROJECT,
      authToken: process.env.SENTRY_AUTH_TOKEN,
      include: '.webpack/renderer',
      urlPrefix: '~/.webpack/renderer',
      dist: `desktop-distribution-${pkg.version}`,
      release<EMAIL_ADDRESS>      dryRun: isDev,
    }),

Expected Result
What you thought would happen.

Everything working as it was before using the plugin.
Please note without the plugin everything is fine, the reference to "__dirname + "/native_modules/";  is only added when using the plugin.
Please also note when using the plugin if every calls to ipcRenderer is in the file preload.ts then everything is okay surprisingly and __dirname is not added.

Also our webpack configuration has well the config:
  {
    test: /native_modules\/.+\.node$/,
    use: 'node-loader',
  },
  {
    test: /\.(m?js|node)$/,
    parser: { amd: false },
    use: {
      loader: '@vercel/webpack-asset-relocator-loader',
      options: {
        outputAssetBase: 'native_modules',
      },
    },
  },

Actual Result
The preload script fails completely with:
VM4 sandbox_bundle:93 ReferenceError: __dirname is not defined

What actually happened. Maybe a screenshot/recording? Maybe some logs?

Webpack compilation result (preload.js):

Thanks a lot for your help 🙏🏻

@timfish could you take a look and help investigate?

I have a feeling that this is unrelated to our plugin tbh. It may seem like it's the Sentry plugin because the __dirname is very close to the code we inject but we don't inject any __dirname. Can everybody confirm that this is an issue even after removing the plugin from their pipeline?

Hi @lforst 👋🏻
Thanks for you answer 🙏🏻
However as described in the description:

Please note without the plugin everything is fine, the reference to "__dirname + "/native_modules/"; is only added when using the plugin.

Meaning in our case I only see the reference to __dirname in the webpack compilation result when the sentry plugin is added. If not I don't see any reference.
But could it be possible based on what you say that it's the combinaison of @sentry/webpack-plugin and @vercel/webpack-asset-relocator-loader at the same time which could be the source of the issue? 🤔
Thanks

That's correct. It's detecting that sentry-cli is using precompiled binary and it's moving it around.
See https://github.com/electron/forge/blob/main/packages/plugin/webpack/test/AssetRelocatorPatch_spec.ts which has assertions around it.
And here's what's doing injection https://github.com/electron/forge/blob/e5fc3037340b5bce6f0ba496e92c397ca4803c4f/packages/plugin/webpack/src/util/AssetRelocatorPatch.ts#L47

And here's what's doing injection https://github.com/electron/forge/blob/e5fc3037340b5bce6f0ba496e92c397ca4803c4f/packages/plugin/webpack/src/util/AssetRelocatorPatch.ts#L47

Just reading this code and it felt familiar and then realised I wrote it. It's some not pretty hacks to get the vercel loader working with Electron + Forge.
What I find strange here is that the error is being throw at all. The preload context has full access to node.js, even when node integration is disabled so __dirname should be defined!
Is the webpack config for the preload scripts fully configurable in Electron Forge now? I didn't used to be but I saw a PR merged recently. You almost certainly don't want to be using the Vercel loader with your preload scripts unless you're loading native modules there.
With a basic repository that reproduces the issue I could probably give more guidance.
I'll look into it next week since I'm not sure I've tried all these dependencies together before.

I tried a basic Electron Forge app with:

webpack
preload
Sentry webpack plugin

I don't see any __dirname injected into the preload scripts.
Are you using native modules in the preload scripts?
I would need a minimal reproduction repository to look any further but it's unlikely this has anything to do with any of the Sentry dependencies.

Closing this issue for cleanup. Please re-open if this still applies. Thanks!


feat: Use opentelemetry instead of opencensus

looks like this broke the integration test
2022/02/14 10:46:59 backend closed: http: Server closed
2022/02/14 10:47:01 backend closed: http: Server closed
--- FAIL: ExampleNewIntegration (1.61s)
got:
signal: killed
cel-6: wrong response:
        unexpected status code. have: 200, want: 401
        unexpected value for header Content-Type. have: [application/json; charset=utf-8], want: []
        unexpected value for header Cache-Control. have: [public, max-age=3600], want: []
        unexpected body.
                have: {"message":"pong"}
                want:
want:
signal: killed
FAIL
FAIL    github.com/devopsfaith/krakend-ce/tests 4.799s
FAIL
make: *** [test] Error 1

it's probably because we remove the token revoking handler

I intend to add it back because we may ultimately use it, I just ran into some weird go module conflicts and wanted to be able to test my changes.


download, request: add timeout keyword argument

This puts a total timeout on how long a request can take using the CURLOPT_TIMEOUT_MS or CURLOPT_TIMEOUT libcurl options. Closes https://github.com/JuliaLang/Downloads.jl/issues/70.

It's probably time to move to GitHub Actions (unless you want to ask for OSS credits to Travis)

Codecov Report

Merging #71 (28660b8) into master (0704288) will decrease coverage by 0.61%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
- Coverage   91.16%   90.55%   -0.62%
==========================================
  Files           5        5
  Lines         419      413       -6
==========================================
- Hits          382      374       -8
- Misses         37       39       +2

Impacted Files
Coverage Δ

src/Curl/Curl.jl
100.00% <ø> (ø)

src/Curl/Easy.jl
93.49% <100.00%> (+0.28%)
:arrow_up:

src/Downloads.jl
83.87% <100.00%> (ø)

src/Curl/utils.jl
71.42% <0.00%> (-26.08%)
:arrow_down:

src/Curl/Multi.jl
95.76% <0.00%> (+4.23%)
:arrow_up:

Continue to review full report at Codecov.

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


How to install ?

D11. I compiled all the packages. No error.
After that I try 'install' of the 2 design time packages and I get this error ...

Are you using: SvgIconImageList\Packages\D11\SVGIconImageListGroupPackages.groupproj ?
Try to close/reopen IDE then first "build" dcl packages and then "install".
Do you have also Image32 library already installed?

Probably its was a problem with Skia4Delphi sources and dll, try with latest version.


Update supautils.conf.j2 | exempted net and logging variables

What kind of change does this PR introduce?
Modified supautils configs
What is the current behavior?
Allowed 3 new variables to be updated:

pg_net.batch_size
pg_net.ttl
log_lock_waits

What is the new behavior?
Allows users to configure pg_net variables (other than database) and gives users permission to log locks that last for more than 1s
Additional context
Add any other context or screenshots.

Hm, wait. Is this config applicable now that we use the Nix build?

@samrose It doesn't look like the settings in supautils.conf are being applied (maybe only a local thing) but
postgres=# set pg_net.ttl = '1s'
ERROR:  parameter "pg_net.ttl" cannot be changed now

is that the correct location for supautils config?
does it apply locally?

@samrose It doesn't look like the settings in supautils.conf are being applied (maybe only a local thing) but
postgres=# set pg_net.ttl = '1s'
ERROR:  parameter "pg_net.ttl" cannot be changed now

is that the correct location for supautils config?
does it apply locally?

I think you are right that those settings have not been wired in yet on local testing
I’ll be back in front of computer in a few and will get it working in local testing context

We did recently merge in a pr to develop that correctly used all of our configurations and migrations
https://github.com/supabase/postgres/pull/1130

cc @supabase/backend for a +1


/turnstile command missing in help

Hello 🙂
As in the title 🙂 .
Best regards,
Bloodlex

My bad, I didn't have the time to check all the changes I've made.
Going to fix that in the next 24h

My bad, I didn't have the time to check all the changes I've made.
Going to fix that in the next 24h

Sure, don't worry, take your time 🙂 . Thank you.


Update sql-database-business-continuity-application-upgrade.md

reviewed for freshness.

Hi @elfisher, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;


Error code 365

Rule (already implemented) is currently testing <LS> == 'V2' when it should be testing for <LS> == 'V3'.  Rule and tests need amending.

Nice spot, cheers Stephen!

close by d7621e5a0e9349a74ca37e4eba9eb5ef1291a3ff


Fix Issue#10

-Added icons for "Hobbies & Interest" in homecards.json
-Added icons for "Hobbies & Interest" in Hobby component

#10
LGTM


Update sql.html

fix：https://github.com/alibaba/druid/issues/4337

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


json.decoder.JSONDecodeError: Expecting value: line 1 column 2405 (char 2404)

During training, import the pkl file after dividing the patient-id, and there is an error in reading

Hi! There is a problem with loading a pkl file with train - val splits. Do you use the original files located in src/data/splits/? The error is in the part:
with open(path_to_train_val_pkl) as f:
        train_val_split = json.load(f)

Try to reproduce this piece of code with your pkl files to find the exact reason. path_to_train_val_pkl is the path to a pkl file with patients' names.

Thanks for your reply！  I have solved the problem.
Thanks again！

Hi! There is a problem with loading a pkl file with train - val splits. Do you use the original files located in src/data/splits/? The error is in the part:
with open(path_to_train_val_pkl) as f:
        train_val_split = json.load(f)

Try to reproduce this piece of code with your pkl files to find the exact reason. path_to_train_val_pkl is the path to a pkl file with patients' names.

Thanks for your reply！ I have solved the problem.
Thanks again！


Sign Up button on Dev / OSS site(s) should be Start Now

The Sign Up buttons to create an account  should be more explicit relating to what the user is doing on our DECO sites on the Docs site: "Sign Up" makes sense but on the Dev site and OSS Site the button should be "Start Now".
Acceptance Criteria

on the Docs Site, the sign up button should be sign up
on the Dev Site, the sign up button should be start now
on the OSS Site, the sign up button should be start now
All URLs should point to the correct signup form and use the proper UTM source tag identifying where the user came from

https://github.com/newrelic/gatsby-theme-newrelic/pull/183


training custom dataset error

File "tools/train.py", line 221, in
main()
File "tools/train.py", line 111, in main
train_set, train_loader, train_sampler = build_dataloader(
File "/home/dnn/Videos/OpenPCDet/pcdet/datasets/init.py", line 54, in build_dataloader
dataset = all[dataset_cfg.DATASET](
File "/home/dnn/Videos/OpenPCDet/pcdet/datasets/custom/custom_dataset.py", line 23, in init
super().init(
File "/home/dnn/Videos/OpenPCDet/pcdet/datasets/dataset.py", line 30, in init
self.data_augmentor = DataAugmentor(
File "/home/dnn/Videos/OpenPCDet/pcdet/datasets/augmentor/data_augmentor.py", line 23, in init
cur_augmentor = getattr(self, cur_cfg.NAME)(config=cur_cfg)
File "/home/dnn/Videos/OpenPCDet/pcdet/datasets/augmentor/data_augmentor.py", line 27, in gt_sampling
db_sampler = database_sampler.DataBaseSampler(
File "/home/dnn/Videos/OpenPCDet/pcdet/datasets/augmentor/database_sampler.py", line 35, in init
sampler_cfg.DB_INFO_PATH[0] = sampler_cfg.BACKUP_DB_INFO['DB_INFO_PATH']
AttributeError: 'EasyDict' object has no attribute 'BACKUP_DB_INFO'

I have the same problem.

I found the reason. You should 'cd tools' and then 'python train.py' directly.

yes, I found the same solution, but I still don't know the reason for that.

I found the reason. You should 'cd tools' and then 'python train.py' directly.

I ‘cd tools’，but still found this preblem, did you completely solve this preblem?


Internal Server Error when trying to shorten link

Hello,
Running on Debian Jessie with an sqlite database, I am unable to shorten links. I get back a 500 Internal Server Error response:
{
  "failure": "failure_undefined",
  "message": "There was an undefined server-side failure. This is probably a bug.",
  "success": false
}

The stack trace in the web console is:
PUT http://my.domain/linkr/api/link/add 500 (INTERNAL SERVER ERROR) (index):10
t @ (index):10
e @ (index):9
e.(anonymous function) @ (index):10
(anonymous) @ (index):16
value @ (index):9
value @ (index):16
E @ (index):4

The rest of the functionality (accounts, logging in, admin panel) works as expected.
Could this be related to using sqlite instead of mysql? Inside config/flask.py I have:
SQLALCHEMY_DATABASE_URI = 'sqlite:////data/linkr.db'

Thanks!

A couple things to consider...

Does the absolute path /data/linkr.db exist?
Does the database reflect all the tables? If you do sqlite3 /data/linkr.db and run .tables do you see a Link table?
Can you comment out the except clause at the API layer, restart your server, try the request again, and paste any stack traces you see?

It turns out that /data didn't have the proper permissions: both the folder and the database file itself had to be writable for www-data, as mentioned here on StackOverflow. Once I did chown www-data:www-data /data/{,linkr.db}, everything works fine.
For completeness, here is the full answer to your questions:

Yes.
There are two empty tables, link and link_hit, and the user table containing some data about the admin user configured through linkr_setup.py.
Here is the apache error.log on PasteBin. The main point seems to be OperationalError: (sqlite3.OperationalError) attempt to write a readonly database.

Thanks for the help and for your work on linkr!