Feature request: new rule (and auto fix?) keyword only parameters

This is something I like to do and request people do as well, but I haven't seen a linter that implements my (personal) rule.
I'm a bit ashamed of coming just to add a new issue to request a new non-existing rule/fix just because I would want it, but anyway, worth trying. 😅
Description
I try to avoid callables (functions, methods) with more than two positional parameters/arguments.
I told @Kludex about it a while ago, and he built https://github.com/Kludex/kwonly-transformer which is very close to what I want.
There is also https://github.com/vchaptsev/flake8-keyword-arguments which is a bit closer but only implements the rule/error, not the fix.
Specification (?)
Here's the description of what I would like.
It applies both to creating a function/method signature and to calling it.

If there are at most 2 parameters/arguments, it's fine to leave them positional.
If there are more than 2 parameters/arguments:

If at most 2 are required and the rest are optional, the two parameters can be positional but the rest should be keyword only.
If there are more than 2 parameters/arguments required, all of them have to be keyword only.

I tend to be a bit stricter than that, but I would think that's generalizable enough that it could be useful to others. For example, if there's one required parameter and the rest are optional, I would try to allow only the first one to be positional, all the others would be required to be keyword only. The rationale is that normally it's a function that applies to a specific object and has some parameters/modifications for how to apply it.
The reason for 2 parameters and allowing 2 in most places is mainly for the cases when an operation applies to two things, one is in some way the origin/source and the other is the destiny, so it can be considered starting from the first and going to the second (going left to right, the same direction as when writing or reading code).
Maybe that could be a configurable threshold, could be 2, or could be 0 for people who don't want any positional argument... don't know, for me, it would be fine if it was fixed at 2.
Other ideas
It could be stricter and with more rules, with other things like, if all parameters/arguments are optional, they should all be required, but that (and other potential extra rules) is probably more cumbersome and less flexible.
Auto Fix
Of course, it would be great if it could not just show the error but also auto fix it, but not sure how difficult that is, it would change the calls and hopefully also the function signature.

Thanks for the comprehensive suggestion! There's some discussion at https://github.com/astral-sh/ruff/discussions/8137 already too.
I agree with the general sentiment that positional argument use should be limited.
We may have a hard time with the fix, as we don't perform fixes across multiple files yet.

Ah! yes, it seems that's related to the same, sorry, I only checked on issues and not on discussions. 😅  Feel free to close this one!
About the fix, get it, maybe just fixing the calls (and not the signature) would already do most of the work. But in any case, even just the rule detecting it would help a lot.


Only use one single ciphersuite if 0-rtt is actually enabled

In the original code, we break out of the loop if the compiler flag is set. It reads wrong to me. I think we should limit the behavior to where 0-RTT is enabled in the configuration and the handshake is set up for resumption.

Looks good to me.

Thank you @zhihan, it looks good to me. However, could you add a test to ssl-opt.sh to check the behaviour? It should be easy by grepping for two distinct ciphersuites in the output.

Added tests.


Appling filters messes the color mapping when using two bag files.

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ D455 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Win (10)

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC

SDK Version
<IP_ADDRESS>57 }

Language
{C++ }

Segment
{others }

Issue Description
We are doing some processes with two bag files of two D455 cameras. We load both files a synchronize the frames.
If we apply post processing filters to the frames when we do the mapping and extract the points with the color RGB, all the points of first frame have the same color, specifically the RGB value (144,130,122).
We apply the filters like this:
		rs2::frame depth1, color1, depth2, color2;
	        rs2::disparity_transform depth_disparity(true);
	        rs2::spatial_filter spatial_filter;
	        rs2::temporal_filter temporal_filter;
	        rs2::disparity_transform disparity_depth(false);

		if (postprocessing == true && depth1 && depth2)
		{
			depth1 = depth_disparity.process(depth1);
			depth1 = spatial_filter.process(depth1);
			depth1 = temporal_filter.process(depth1);
			depth1 = disparity_depth.process(depth1);

			depth2 = depth_disparity.process(depth2);
			depth2 = spatial_filter.process(depth2);
			depth2 = temporal_filter.process(depth2);
			depth2 = disparity_depth.process(depth2);
		}

This later messes the depth color mapping result.
If we don't apply the filters works fine. If we only use one bag file works fine.
How can we solve this?

@AJMena, an immediate observation is the reuse of all the processing blocks to handle data from different sources.
Quote from post-processing blocks documentation

The Temporal filter effectiveness relies on the frame's history being preserved. Switching the frame sources invalidates the preserved history and incapacitates the filter. Therefore establishing and maintaining a filter pipe per camera source is strongly recommended.

Temporal filter relies on previous samples to denoise the image in a way that resembles running median. Feeding it with frames from two separate and distinct sources will produce incorrect results.
You need to establish separate temporal filter instances, per depth source.

You are absolutely correct. Already solved by using multiple sources for filters.


Rename export files

Task description
Exported files should be renamed to "concordium-backup.concordiumwallet" if possible.

Verified in 1.2.6(69), Android 9, Huawei Y6s.


Update CosmosDbDataRepository.cs

Update method won't work the way it is. BaseEntity should be replaced by T.

Thank you sir!


Disable MathJax when output panel is hidden

I was recently editing a math-heavy document. Since the output panel re-renders the whole document after each edit, the math processing eventually slowed things down to a crawl. I expected that hiding the output panel would disable math processing and allow me to edit at normal speed, but it looks like math is still being processed when the output panel is hidden.

Closing as too old.


Get position of the goal

Is there a way to get the position ( x, y) of the goal?
I could get which grid is my goal by this loop
    for grid in env.grid.grid:
        if grid is not None and grid.type == "goal":
            print("This grid is my goal")

but I don't know how to map this to an (x,y) coordinates

Hi @wassimseif, you should be able to do grid.cur_pos to get the x, y position. This is a numpy array of two values.

That is a bug. I just pushed some code which should address it. Let me know if you run into other problems :)


Allow for setCaratPosition on keyboard

Is your feature request related to a problem? Please describe.
Based on this ticket https://github.com/hodgef/react-simple-keyboard/issues/32 it says you can updated the keyboards caretPosition. From wt i'm seeing this is a read only property.
Describe the solution you'd like
Allow a setCaratPosition() method so we can update the keyboards caret position.
I'm using React.useRef() and when I try to access the keyboards caretPosition to update its value based on the following ticket's information https://github.com/hodgef/react-simple-keyboard/issues/32
const keyboard = useRef();
// in a blur event from an input field I'm trying to set the keyboard.caretPosition.
  const onBlur = (event) => {
    keyboard.current.caretPosition = event.target.selectionStart;
  };

The above does not update the keyboard caretPosition. Or the key vents on the keyboard is getting to first. Not sure which is the case ?  The keyboard is taking the previous position and not they set one through  keyboard.current.caretPosition
would it be possible to expose a setCaratPosition().

Hello @chapster11,
Are you using the option preventMouseDownDefault? I think you would need that to keep the focus on the input while you use simple-keyboard.
The caret position seems to be changed just fine in this example:
https://codesandbox.io/s/objective-frog-wm2xb?file=/src/index.js
Feel free to check it out and let me know if it still doesn't work for you.
Thanks,
Francisco Hodge

Thanks Francisco, I tried your codesandbox on a surface pro and using the touch keyboard. You will see it shows a blue bubble that you can drag to set the new caret position. When you reposition this indicator and then click a key on the keyboard the keyboard does not update the new character in the right place. What its doing is adding the character to the last touched position.

Hey @chapster11,
Are you using Edge? There was an issue with the browser not updating the caret position when the input bubble was moved.
https://github.com/hodgef/simple-keyboard/issues/54
simple-keyboard relies on element.selectionStart to update the caret position. Unfortunately, if the browser doesn't update this value when you drag the blue bubble, it's a browser bug and there's not much I can do about it.
As a test, you can try this sandbox:
https://jsfiddle.net/zwj82ogb/
If you see the "selectionStart" update as you drag the blue bubble, then it works. Otherwise, there's a browser issue to be reported.
Here's a similar issue filed by one of our users recently regarding caretPosition, this time for Chrome:
https://bugs.chromium.org/p/chromium/issues/detail?id=1073750
Regards,
Francisco Hodge

Thanks @hodgef for looking into this issue and positing another link.
I'm using chromium on electron.
Yea I spent all day yesterday trying to get an event to fire for this input indicator with no luck. My last ditched attempt was trying to get the blur from the input to fire before the key event on the keyboard in hopes that I might be able to  update the keyboard caret position before the key got pressed.
But yes you are right your sandbox does not fire either.
Going to report a bug for this in Chromium.


Merging Develop into Master 9.10.2018 - Hacktoberfest, automation beta changes

Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @Whatthefoxsays,Thanks again for the PR! It's HACKTOBERFEST! We want to show our appreciation by sending                                              you some special Hacktoberfest swag. If you have not already, could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX


refactor: pad in runCircuits and not before

Fixes #5357

#5482  👈
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @benesjan and the rest of your teammates on  Graphite

Benchmark results
No metrics with a significant change found.

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit 881502b4 and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
676
676
676

l1_rollup_calldata_gas
6,412
6,424
6,412

l1_rollup_execution_gas
585,745
585,757
585,745

l2_block_processing_time_in_ms
1,314
4,521 (-5%)
9,045 (-2%)

note_successful_decrypting_time_in_ms
225 (-15%)
534
1,052 (+2%)

note_trial_decrypting_time_in_ms
27.0 (-63%)
43.4 (-14%)
60.7 (+1%)

l2_block_building_time_in_ms
12,244
45,001 (+1%)
88,256 (-1%)

l2_block_rollup_simulation_time_in_ms
7,439
26,212
50,804

l2_block_public_tx_process_time_in_ms
4,784 (+1%)
18,740 (+1%)
37,353 (-1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
13,449 (-2%)
25,826 (-4%)

note_history_successful_decrypting_time_in_ms
1,279 (+8%)
2,335 (-3%)

note_history_trial_decrypting_time_in_ms
64.0 (-1%)
97.2 (-27%)

node_database_size_in_bytes
18,612,304
35,049,552

pxe_database_size_in_bytes
29,859
59,414

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
181 (+1%)
44,379
28,214

private-kernel-ordering
167 (+1%)
52,880
14,296

base-parity
3,471 (+1%)
128
311

root-parity
1,235 (-7%)
1,244
311

base-rollup
14,840
165,760
861

root-rollup
49.0
4,359
725

private-kernel-inner
226 (+1%)
73,795
28,214

public-kernel-app-logic
94.4 (+1%)
35,252
28,217

public-kernel-tail
136 (-1%)
40,928
28,217

merge-rollup
10.5 (+10%)
2,568
861

public-kernel-teardown
93.1 (-1%)
35,252
28,217

public-kernel-setup
91.3 (-2%)
35,252
28,217

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
9.94 (+1%)
15.9 (+1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.6
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.577
0.492 (+1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
45.8
71.3
232
434
878 (+1%)
1,716 (-1%)
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
96.0
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.470
0.439
0.423
0.405
0.416
0.411 (-1%)
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
53.5
106
335
641
1,311
2,600 (-1%)
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
105
207
691
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.473
0.477
0.457
0.442
0.454
0.453 (-1%)
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
60.6 (+1%)

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
109

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.529 (+1%)

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
14,968
495,320

Transaction size based on fee payment method

Metric
none fee payment method
native fee payment method
fpc_public fee payment method
fpc_private fee payment method

tx_with_fee_size_in_bytes
773
905
1,161
1,377

Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes
2 new note hashes

tx_pxe_processing_time_ms
1,847 (+2%)
1,184
5,672 (-1%)

Metric
0 public data writes
1 public data writes
2 public data writes
3 public data writes
4 public data writes
5 public data writes
8 public data writes

tx_sequencer_processing_time_ms
9.43 (-9%)
571
447 (-3%)
1,177 (-1%)
601 (+2%)
2,029 (-2%)
566 (-2%)


Add inputs to action

We need:

number of services
number of pods per service

These should have good defaults

Fixed by https://github.com/Kong/mesh-perf/pull/53


Retry Build via API

Hi, I'd like to trigger "Retry Last Build" using api, is this possible ?

It's in the works https://gitlab.com/gitlab-org/gitlab-ci/merge_requests/229 and will get shipped with 7.14


Question on the origin of global frame

Hi, In the description of the Global Frame in the dataset's website, it is stated that:

The origin of this frame is set to the vehicle position when the vehicle starts.

I was wondering if this implies that the origin of the global frame in each scene is the position of the SDC at the start of that scene, or is it a remote position not necessarily provided in the scenes?
Also, do the coordinates of the SDC represent the coordinates of the LiDar sensor? and if so, what is the distance from the LiDar sensor to the front of the SDC?

@arashk1990

No, the origin is not the start of that scene. It is remote position that is not necessarily in the scenes.

SDC is a box. I am not clear what you mean by "do the coordinates of the SDC represent the coordinates of the LiDar sensor".  We have defined vehicle frame and LiDAR sensor frame. The origin of vehicle frame is the center of the SDC's rear axle.  You can find out the position of the LiDAR in vehicle frame by looking at the LiDAR's extrinsic provided in the dataset.

Thanks @peisun1115 for your elaborate answer.


Error downloading the transcript

I'm getting an error saying that the video or the subtitles might be no longer available but this isn't true.
I'm simply passing a .txt file with the video ids I want to have the transcript.
Here's the error I'm getting,
C:\youtube_transcripts_mp3>python get_transcript.py id.txt
Traceback (most recent call last):
File "C:\youtube_transcripts_mp3\youtube_downloads\lib\site-packages\youtube_transcript_api_api.py", line 93, in get_transcript
return _TranscriptParser(_TranscriptFetcher(video_id, languages, proxies).fetch()).parse()
File "C:\youtube_transcripts_mp3\youtube_downloads\lib\site-packages\youtube_transcript_api_api.py", line 153, in parse
for xml_element in ElementTree.fromstring(self.plain_data)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\xml\etree\ElementTree.py", line 1314, in XML
parser.feed(text)
TypeError: a bytes-like object is required, not 'NoneType'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "get_transcript.py", line 15, in
Transcript = YouTubeTranscriptApi.get_transcript(video_id, languages=['pt'])
File "C:\youtube_transcripts_mp3\youtube_downloads\lib\site-packages\youtube_transcript_api_api.py", line 95, in get_transcript
raise YouTubeTranscriptApi.CouldNotRetrieveTranscript(video_id)
youtube_transcript_api._api.CouldNotRetrieveTranscript: Could not get the transcript for the video https://www.youtube.com/watch?v=MzRoOMF8XEQ
! This usually happens if one of the following things is the case:

subtitles have been disabled by the uploader
none of the language codes you provided are valid
none of the languages you provided are supported by the video
the video is no longer available.

Here are the video IDs,
MzRoOMF8XEQ
J3Yo1Tz1YXg
You can check yourself that both videos are still on youtube and they have auto generated subtitles available.
What should I do?

Apparently Google just changed something about how the their Transcript API works, therefore this module is currently not working at all. I am looking in to this and try to fix it asap!

Just fixed this with v0.1.8. It is now available on PyPi. Sorry for the inconveniences!

That was fast! Thank you very much
On Mon, 7 Oct 2019 at 1:03 PM jdepoix<EMAIL_ADDRESS>wrote:

Closed #26 https://github.com/jdepoix/youtube-transcript-api/issues/26.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jdepoix/youtube-transcript-api/issues/26?email_source=notifications&email_token=AJ5V5EKPGCTTLLM7NIB6L73QNNTWZA5CNFSM4I6FJLP2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOUB664FI#event-2692607509,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJ5V5ELVCJB5WL6MHV4HKILQNNTWZANCNFSM4I6FJLPQ
.


POST request redirects to GET (403)

Hello! In some sites is working perfectly fine, but in some others my POST requests are being redirected to a GET request and end up in a 403.
I have tried changing the ciphers to the ones the server is using but the error is the same.
It works on Naked, SNS, Soto, etc. But I get the same error in Stress95 and Caliroots.
I'm running the latest version of cloudscraper, python 3.7.4 and Windows 10.
< POST /auth/iscustomer HTTP/1.1
< Host: www.stress95.com
< User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:53.0) Gecko/20100101 Firefox/53.0,gzip(gfe)
< Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
< Accept-Language: en-US,en;q=0.5
< Accept-Encoding: gzip, deflate
< Cookie: __cf_bm=d59a03768afd746c9721e0319e1595437cadeb5e-1587666160-1800-AQ7qW8200UDmMnOzUDNGjyIy1p2g0hpaR1jINeywXsBOr2y8hohkw2j1e/YxZ/9mYzmkqENhQfPHgMshJVUxVwg=; __cfduid=d2c2a589ff1435ae6db5d74b5df15afef1587666160; cf_clearance=f7eef1fdc2fe9f006c0e5c28dda19f3dae914af1-1587666208-0-250; AntiCsrfToken=98067eee9e894b34bdb44bb8b2b34747; png.state=kBuUUBNvKuaIrs6V0Urivt6GdpVQtGmrcGXZo4j01+BcfgFWk9khhi2WE9qqL2I+sqKW1tBA1qd2J9//1WZQsSMjk8M=
< Content-Length: 30
< Content-Type: application/x-www-form-urlencoded
<
< email=f43f34f3ff4f%40gmail.com
> HTTP/1.1 301 Moved Permanently
> Date: Thu, 23 Apr 2020 18:25:56 GMT
> Transfer-Encoding: chunked
> Connection: keep-alive
> Cache-Control: max-age=3600
> Expires: Thu, 23 Apr 2020 19:25:56 GMT
> Location: https://stress95.com/auth/iscustomer
> Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
> Vary: Accept-Encoding
> Server: cloudflare
> CF-RAY: 5889a1471e1bd675-MAD
> cf-request-id: 0249e3206f0000d675f8a9f200000001
>
< GET /auth/iscustomer HTTP/1.1
< Host: stress95.com
< User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:53.0) Gecko/20100101 Firefox/53.0,gzip(gfe)
< Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
< Accept-Language: en-US,en;q=0.5
< Accept-Encoding: gzip, deflate
< Cookie: __cf_bm=d59a03768afd746c9721e0319e1595437cadeb5e-1587666160-1800-AQ7qW8200UDmMnOzUDNGjyIy1p2g0hpaR1jINeywXsBOr2y8hohkw2j1e/YxZ/9mYzmkqENhQfPHgMshJVUxVwg=; __cfduid=d2c2a589ff1435ae6db5d74b5df15afef1587666160; cf_clearance=f7eef1fdc2fe9f006c0e5c28dda19f3dae914af1-1587666208-0-250; AntiCsrfToken=98067eee9e894b34bdb44bb8b2b34747; png.state=kBuUUBNvKuaIrs6V0Urivt6GdpVQtGmrcGXZo4j01+BcfgFWk9khhi2WE9qqL2I+sqKW1tBA1qd2J9//1WZQsSMjk8M=
<

> HTTP/1.1 403 Forbidden
> Date: Thu, 23 Apr 2020 18:25:56 GMT
> Content-Type: text/html; charset=utf-8
> Transfer-Encoding: chunked
> Connection: keep-alive
> CF-Ray: 5889a147a9c8ff00-MAD
> Cache-Control: private
> CF-Cache-Status: DYNAMIC
> Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
> X-Powered-By: ASP.NET
> X-UA-Compatible: IE=Edge,chrome=1
> Vary: Accept-Encoding
> Server: cloudflare
> Content-Encoding: gzip
> cf-request-id: 0249e320c60000ff0002139200000001
>

HTTP/1.1 301 Moved Permanently
Location: https://stress95.com/auth/iscustomer

https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2
If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.

 Note: When automatically redirecting a POST request after
      receiving a 301 status code, some existing HTTP/1.0 user agents
      will erroneously change it into a GET request.

is this on the initial cookie population? if not, on your post set allow_redirections=False but since you haven't followed the ticket instructions and posted example code its hard to tell what you're doing.

Sorry, this is what I'm doing:
scraper = cloudscraper.create_scraper(debug=True, recaptcha={
            'provider': '2captcha',
            'api_key': settings.TWO_CAPTCHA_API_KEY
        })
response = scraper.get("https://www.stress95.com/en/auth/view?op=register")

data = {"email": profile.email}
response = scraper.post("https://stress95.com/auth/iscustomer", data=data)

Adding allow_redirects=False stops the request from being redirected automatically but it is getting a 301 instead of a 200. I have tried using proxies but the result is the same
< POST /auth/iscustomer HTTP/1.1
< Host: www.stress95.com
< User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) coc_coc_browser/64.4.146 Chrome/58.4.3029.146 Safari/537.36
< Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
< Accept-Language: en-US,en;q=0.9
< Accept-Encoding: gzip, deflate
< Cookie: __cf_bm=a8dc143062df709e2cbb01e664da4a6f2e777afa-1587707307-1800-ARW9XP6fA/JL9dxFdFhwZmTr+PftpR0TR4/hvdfQyOV0DPhAs6FibHQaLHBtw+K0qDw+/OPFbknjU37Xs2ZRvJg=; __cfduid=d94f1910bbce6fa48012ce6603963dafe1587707307; cf_clearance=c689129ceaa54dee07994c283ee2df9646769898-1587707375-0-250; AntiCsrfToken=3798c276cba24b07b971b2fdd578cf38; png.state=JaQsHQeP+FefdNVPB+3vlyLKhxzzEyCxhiUsnfrBr+V8rQSJryVsKTVdzXvz63NmCH5pUkiwI+kTCn0pE8gyAeO3wFg=
< Content-Length: 30
< Content-Type: application/x-www-form-urlencoded
<
< email=f43f34f3ff4f%40gmail.com
> HTTP/1.1 301 Moved Permanently
> Date: Fri, 24 Apr 2020 05:49:40 GMT
> Transfer-Encoding: chunked
> Connection: keep-alive
> Cache-Control: max-age=3600
> Expires: Fri, 24 Apr 2020 06:49:40 GMT
> Location: https://stress95.com/auth/iscustomer
> Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
> Vary: Accept-Encoding
> Server: cloudflare
> CF-RAY: 588d8ad74d37ff64-MAD
> cf-request-id: 024c551a8c0000ff6424bd8200000001
>

lets just call that 5 coffee's.... thanks
scraper = cloudscraper.create_scraper(
    debug=True,
    browser={
        'browser': 'chrome',
        'mobile': False
    },
    recaptcha={
        'provider': '2captcha',
        'api_key': 'xxxxxx'
    }
)
response = scraper.get("https://www.stress95.com/en/auth/view?op=register")
response = scraper.post(
    "https://stress95.com/auth/iscustomer",
    headers={
        'Referer': 'https://stress95.com/en/auth/view?op=register',
        'X-AntiCsrfToken': scraper.cookies.get_dict()['AntiCsrfToken'],
        'Accept': 'application/json, text/javascript, */*; q=0.01',
        'X-Requested-With': 'XMLHttpRequest'
    },
    data={
        'email'<EMAIL_ADDRESS>    }
)

< POST /auth/iscustomer HTTP/1.1
< Host: stress95.com
< User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.24.2840.71 Safari/537.36
< Accept: application/json, text/javascript, */*; q=0.01
< Accept-Language: en-US,en;q=0.9
< Accept-Encoding: gzip, deflate, br
< Referer: https://stress95.com/en/auth/view?op=register
< X-AntiCsrfToken: 95cda0f902214068aaefa0165348ba0f
< X-Requested-With: XMLHttpRequest
< Cookie: __cf_bm=fd0324cd18a70102842fd7e7a10fb0000cb6bfad-1587713838-1800-AVjPQ7Hnc+kV6aHATVyGeUyy95IN9KsBXQ0VafPgYKk7THcslVxvDjxflVO3pHGUPHphgCX/u+qNJIvGAUE3T98=; __cfduid=de32bc3957685dd80c57f4739fe6919bb1587713838; cf_clearance=d5973a8905a1f239161ec30cff49da454f7bf6fd-1587713953-0-250; AntiCsrfToken=95cda0f902214068aaefa0165348ba0f; png.state=/b+aTgXuveDGaQASSm3hktvEvORjTQaqaky7nAJG5PRh3ZFmapvlK078AO0aAi+GzeGoMKHiEM3jWcw9K1vJdORzhHc=
< Content-Length: 22
< Content-Type: application/x-www-form-urlencoded
<
< email=blah5%40blah.com
> HTTP/1.1 200 OK
> Date: Fri, 24 Apr 2020 07:56:57 GMT
> Content-Type: application/json; charset=utf-8
> Content-Length: 47
> Connection: keep-alive
> CF-Ray: 588e4544eecbfb84-AKL
> Accept-Ranges: bytes
> Cache-Control: no-cache, no-store, must-revalidate
> CF-Cache-Status: DYNAMIC
> Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
> Pragma: no-cache
> X-Powered-By: ASP.NET
> X-UA-Compatible: IE=Edge,chrome=1
> Set-Cookie: __cf_bm=a8d77378116ad5b5027a4bf31420f74806174c00-1587715017-1800-AXR8X3F2DhJm4u3mTK4YGcu2dXUlG1QE99ve8sZ6WbVSeEV1cfZEO080vlt1XREk7RCD+bG6uo3bCshwIqal4+o=; path=/; expires=Fri, 24-Apr-20 08:26:57 GMT; domain=.stress95.com; HttpOnly; Secure
> Vary: Accept-Encoding
> Server: cloudflare
> cf-request-id: 024cc99f100000fb847f34a200000001
>
{"Response":false,"StatusCode":0,"Status":"OK"}
>>>

i would like to buy you a coffee.

and yet... you didnt...

and yet... you didnt...

i m really sorry, i just did that :)

I already tried using those headers and the error was the same. I am shocked that the error was just the URL: I was using https://www.stress95.com/auth/iscustomer instead of https://stress95.com/auth/iscustomer. Anyways, thank you for your time and this incredible project! Enjoy your 5 coffees 😉

@Sarfroz thanks ❤
it should, they all solve the same... have you got some examples? btw the native solver is the fastest as its pure python...

cookie_value, browser = cloudscraper.get_cookie_string("http://test.com/", browser={
'custom': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36',
},interpreter='nodejs')

@Sarfroz try
import cloudscraper

scraper = cloudscraper.create_scraper(browser={'browser': 'chrome', 'mobile': False})
scraper.headers['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36'
scaper.get('https://test.com/')

Does that return 200?

yes sir , i m getting following
<Response [200]>
On Mon, 27 Apr 2020 at 01:51, VeNoMouS<EMAIL_ADDRESS>wrote:

@Sarfroz https://github.com/Sarfroz try
import cloudscraper
scraper = cloudscraper.create_scraper(browser={'browser': 'chrome', 'mobile': False})
scraper.headers['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36'
scaper.get('https://test.com/')
Does that return 200?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/VeNoMouS/cloudscraper/issues/204#issuecomment-619619377,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC66IJXWHLKVB3TYTRIC4XLROSJV7ANCNFSM4MPKQPQQ
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/VeNoMouS/cloudscraper/issues/204#issuecomment-620234627,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC66IJQFAKQC672REQD4OLTROXXWHANCNFSM4MPKQPQQ
.


DefaultProps don't work when using functional components

const MyComponent = (props: {value: number}) => {

{props.value}

};

MyComponent.defaultProps = {
  value: 10
};

<MyComponent />;

Gives errors:
7: const MyComponent = (props: {value: number}) => {
                               ^ property `value`. Property not found in
15: <MyComponent />;
    ^ props of React element `MyComponent`

How to use defaultProps with functional components? Class based works fine:
class MyComponent extends React.Component {
  static defaultProps = { value: 10 }
  render() {
    return
{this.props.value}
;
  }
}

const MyComponent = ({value = 10}: {value: number}) =>
this should work I think ^

It's true that Flow doesn't understand the pattern of adding defaultProps to the statics of the function object. In general, it's fairly tricky to do that and destructuring+defaults works well already so we haven't invested time to make the statics pattern work.
If destructuring in the params list is too cumbersome, remember that you can also provide defaults in the body:
export function f(props: { foo?: number }) {
  var {foo = 0} = props;
  return
thrice {foo} is {3*foo}
;
}

destructuring+defaults can get messy in some cases where it makes more sense to just have a reference to props. @samwgoldman thanks using the function body as a workaround makes sense!
Just for my understanding, how is it harder to do compared to React.Component defaults knowing that <Component> calls do React.createElement and therefore always pass props with defaults from the static defaultProps? Is this something the react team should/could implement in their flow defs?


Scaffold proposal page

Features

Updated AppButton component to handle router navigation
Update AppSideBar layout to prevent drop shadow of the main content from leaking out when the mobile menu is active
Created Proposal page

Screenshots

Desktop
Mobile

refs #68

@chihimng rebased :adore2x: also fixed the new proposal button on mobile 🙏


Usage with react-native-navigation

When using this react-native-navigation there is no root component, so I needed to wrap each screen. Or is there another way of doing this?
export const registerScreens = () => {
  Navigation.registerComponent('Login', () => connect(mapStateToProps, mapDispatchToProps)(withNetworkConnectivity()(Login)), store, Provider)
  Navigation.registerComponent('Home', () => connect(mapStateToProps, mapDispatchToProps)(withNetworkConnectivity()(Home)), store, Provider)
}

There is an issue with the screen options that are not working anymore. I think statics are not passed within withNetworkConnectivity. Example:
export default class Home extends Component {
    static navigatorStyle = {
       tabBarHidden: true,
       navBarHidden: true
    }
    ...
}

Got it working by moving the screen options to the wrapping component:
const LoginComponent = withNetworkConnectivity()(Login)
LoginComponent.navigatorStyle = { tabBarHidden: true, navBarHidden: true }

Navigation.registerComponent('Login', () => connect(mapStateToProps, mapDispatchToProps)(LoginComponent), store, Provider)

But I should still have a root component, because now i'm setting listeners on all screens. State will be updated on connection change, so it will try to set state on screens that are unmounted. Any idea how to accomplish this with react-native-navigation?

Hi, thanks for submitting your issue.
I am actively working on a branch to release a new version of the library this week.
First of all, if you wanna integrate the library with redux you need to pass true to withNetworkConnectivity, so it should be:
export const registerScreens = () => {
  Navigation.registerComponent('Login', () => connect(mapStateToProps, mapDispatchToProps)(withNetworkConnectivity(true)(Login)), store, Provider)
  Navigation.registerComponent('Home', () => connect(mapStateToProps, mapDispatchToProps)(withNetworkConnectivity(true)(Home)), store, Provider)
}

That way, the state is kept in the store and not passed down as a prop to your wrapped component.
In terms of statics hoisting, that would be fixed with the upcoming release, so you won't have to move the screen options to the wrapping component.
I haven't used react-native-navigation in any project so far, but based on the API it seems to me (at least for Android where I have some knowledge) every time you use Navigation.registerComponent, the library is creating a new Android activity underneath the hood, so you will have different root components depending on your active screen.
That being said, you don't have to worry about listeners. There will be only one at a time active.
I don't know the implementation details on iOS but I guess they should follow a similar approach where the React context is scoped to the active screen.

@rauliyohmc By wrapping up every screen, you end up doing HEAD requests on each navigation transition. Maybe the connectivity change logic could be managed by an event channel in redux-saga, so it could work without having a root component.

Hi,
I'm trying to use the v4.x.x with react-native-navigation and can't make the new ReduxNetworkProvider work.
Here is a simple example of what I'm trying to do
import { applyMiddleware, combineReducers, createStore } from 'redux';
import { Provider } from 'react-redux';
import { reducer as networkReducer } from 'react-native-offline';

const rootReducer = combineReducers({
    network: networkReducer
});
const store = createStore(rootReducer, applyMiddleware(thunk, logger));

// Registering the screen as described here https://wix.github.io/react-native-navigation/#/docs/top-level-api-migration?id=registering-screens-with-wrapping-provider-component
Navigation.registerComponent('Home', () => (props) => (
        <Provider store={ store }>
            <Home {...props} />
        </Provider>
    ), () => Home);

In my Home component, I can access the network isConnected value, though it is always true.
So I've tried to add the ReduxNetworkProvider with a pingInterval to check the connectivity.
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { ReduxNetworkProvider } from 'react-native-offline';
import { connect } from 'react-redux';

class Home extends Component {
    render() {
        return (
            <ReduxNetworkProvider pingInterval={3000}>
                <Text>You're { this.props.isOnline ? 'online' : 'offline' }</Text>
            </ReduxNetworkProvider>
        );
    }
}

function mapStateToProps({ network }) {
    return {
        isOnline: network.isConnected
    }
}
export default connect(mapStateToProps)(Home);

But then I get the following error:

It looks like the ReduxNetworkProvider is not a descendant of the react-redux  component.
Am I using it the wrong way?
Lib used:
"react": "16.8.3",
"react-native": "0.59.4",
"react-native-navigation": "2.17.0",
"react-native-offline": "4.3.1",
"react-redux": "7.0.2",
"redux": "4.0.1",
"redux-logger": "3.0.6",
"redux-thunk": "2.3.0"


Second Monitor with different Resolution having PowerToys Window displayed Out of Screen Bounds

Microsoft PowerToys version
0.37.0
Running as admin

[X] Yes

Area(s) with issue?
General
Steps to reproduce

Open PowerToys with no Admin Privileges
Drag Window from Higher Resolution Screen to Lower Resolution Screen (Second Monitor) - The window is properly displayed at this step.
Click on Run as Adminstrator Button.
On Restarting as Admin on the second Low Resolution Monitor, the Window is dispalyed out of bounds using the Pixel Count of the first High Resolution Monitor

✔ Expected Behavior
The Window to be properly resized as per Screen Bounds.
❌ Actual Behavior
The Window is dispalyed out of Screen Bounds.
Other Software
Edition	Windows 10 Home Single Language
Version	20H2
Installed on	05-05-2021
OS build	19042.964
Experience	Windows Feature Experience Pack 120.2212.2020.0

Are you still experiencing this issue? /needinfo


Error: (SSH) Channel open failure: open failed

After a few minutes of use on an SFTP site, I usually begin to get an SSH error that can only be resolved by closing and reopening the project.
[11:56:22 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/page-6.php to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/page-6.php ... Complete (1933ms)
[12:06:43 AM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.css to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.css ... Complete (1947ms)
[12:07:32 AM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.scss to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.scss ... Complete (1985ms)
[12:14:16 AM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/page-6.php to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/page-6.php ... Complete (1870ms)
[12:17:13 AM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/page-6.php to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/page-6.php ... Complete (1831ms)
[12:18:16 AM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.css to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.css ... Complete (1967ms)
[1:35:29 PM] Connecting: devsite@theproducer.dreamhost.com:22
[1:35:30 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.css to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.css ... Complete (2134ms)
[1:35:58 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.css to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.css ... Complete (2007ms)
[1:46:16 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/page-4.php to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/page-4.php ... Complete (1787ms)
[1:46:36 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/page-4.php to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/page-4.php ... Complete (1826ms)
[1:47:51 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/page-4.php to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/page-4.php ... Complete (1791ms)
[1:48:57 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/page-4.php to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/page-4.php ... Complete (1768ms)
[1:50:23 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.css to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.css ... Complete (2066ms)
[1:51:07 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.css to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.css ... Complete (1869ms)
[1:51:50 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.css to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.css ... Complete (1955ms)
[1:53:02 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.css to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.css ...
Error: (SSH) Channel open failure: open failed
[1:53:48 PM] Upload: /Users/theproducer/Projects/Wordpress/Wordpress Site/style.css to /home/devsite/devsite.sample.com/wp-content/themes/hotel_walloon/style.css ...
Error: (SSH) Channel open failure: open failed

This also happens with me. It seems to happen after about 10 connections.

I suggest you can google: Error: (SSH) Channel open failure: open failed  and try to find the answers. Sorry that I can not help

We also have the same issue.  Is there some reason you closed this issue?  We have no problems with SSH, or with SCP.  It only happens when using your plugin.

"It only happens when using your plugin." - same here.

related to https://github.com/mscdex/ssh2/issues/219

请问老大，这个bug好像还存在，批量上传的时候就会出现，怎么解决呢？

in my case it helped to ignore the .svn directory and I don't know why it helped but it did:
"ignore": [     ".svn/**"   ],

You should set sshd_config file at your host
TCPKeepAlive yes
PermitOpen [host_ip]:[port]
AllowTcpForwarding yes
PermitTunnel yes

2 yrs and I'm still seeing this....

3 yrs

Just to be clear, what okanatabag meant was to edit your /private/etc/ssh/ssh_config like this:
... Host * 	SendEnv LANG LC_* 	**TCPKeepAlive yes** ...
And the SSH Deamon at /private/etc/ssh/sshd_config like this:
`...
PAM authentication, then enable this but set PasswordAuthentication
and ChallengeResponseAuthentication to 'no'.
UsePAM yes
#AllowAgentForwarding yes
AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
PermitTunnel yes
#ChrootDirectory none
#VersionAddendum none
pass locale information
...`
But I don't see any reference to PermitOpen [host_ip]:[port] in any file inside /private/etc/ssh/.

4 years


Xiaomi roborock m1s most entities disappear since few weeks

Device model / 设备型号
roborock vacuum m1s
Component version / 插件版本
1.0.1 and previous
HA core version / HA版本
2024.11.4
Integrated mode / 集成方式
Automatic (自动模式)
The problem / 问题详情
Integration don't provide entities anymore except battery percentage and battery charging status trough lan. Vacuum entity is not provided anymore. Trough cloud all is fine. Problems appeared 2 or 3 weeks before, I patiently wait for an update but the last update don't solve the issue. I have many m1s, all fails simultaneously.
Entity attributes / 实体属性
All entities except sensor.xxx_battery_level sensor.xxx_status sensor.xxx_info not provided anymore by integration. The entities provided works fine showing the real state.

Home Assistant Logs / 系统日志
No response

The same situation

+1 The same situation. Rolled back to version - 0.7.25.

Problem solved with last version.


Not working for react >18 version

Is there any way to install it in the newer react version?
I want this feature but my react is latest version and most of the features already rely on this version so, there is no option to downgrade it.
Can you suggest me a way to add it in my project?

Do you figure out? It should be usable without special fallback


Build trtorch failed in ubuntu

I try to build the project with bazel but failed.
my environment:
gcc: 7.5.0
g++: 7.5.0
cuda: 10.2
cudnn: 7.6.5
tensorRT: <IP_ADDRESS>
error log:
log.txt
$ bazel build //:libtrtorch --compilation_mode opt
Starting local Bazel server and connecting to it...
INFO: Analyzed target //:libtrtorch (39 packages loaded, 2546 targets configured).
INFO: Found 1 target...
ERROR: /home/vincent/Projects/TRTorch/cpp/trtorchc/BUILD:10:10: Linking of rule '//cpp/trtorchc:trtorchc' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc @bazel-out/k8-opt/bin/cpp/trtorchc/trtorchc-2.params
Use --sandbox_debug to see verbose messages from the sandbox
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(helpers.o):helpers.cpp:function nvinfer1::getNvrtcMajorVersion(): error: undefined reference to 'nvrtcVersion'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxDomainSyncUserReleasing_impl_init_v3: error: undefined reference to 'dlopen'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxDomainSyncUserReleasing_impl_init_v3: error: undefined reference to 'dlsym'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxDomainSyncUserReleasing_impl_init_v3: error: undefined reference to 'dlclose'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxDomainResourceDestroy_impl_init_v3: error: undefined reference to 'dlopen'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxDomainResourceDestroy_impl_init_v3: error: undefined reference to 'dlsym'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxDomainResourceDestroy_impl_init_v3: error: undefined reference to 'dlclose'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxDomainDestroy_impl_init_v3: error: undefined reference to 'dlopen'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxDomainDestroy_impl_init_v3: error: undefined reference to 'dlsym'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxDomainDestroy_impl_init_v3: error: undefined reference to 'dlclose'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxMarkA_impl_init_v3: error: undefined reference to 'dlopen'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxMarkA_impl_init_v3: error: undefined reference to 'dlsym'
external/tensorrt/lib/x86_64-linux-gnu/libnvinfer_static.a(profile.o):profile.cpp:function nvtxMarkA_impl_init_v3: error: undefined reference to 'dlclose'
could you help solve this problem, thanks a lot
@narendasan

@inocsin: Can you try this workaround and let us know if it helps?
https://github.com/NVIDIA/TRTorch/blob/3279274f8a29edc9235efaed3ddf2a154772c245/third_party/tensorrt/local/BUILD#L63-L81
It still doesn't work. Besides, I try to import libnvrtc_static.a in third_party/tensorrt/local/BUILD, still has the same linking problem.

cc_import(     name = "nvrtc",     static_library = select({         ":aarch64_linux":              "lib/x86_64-linux-gnu/stubs/libnvrtc_static.a",         ":windows":              "lib/x64/nvrtc.lib",         "//conditions:default":              "lib/x86_64-linux-gnu/stubs/libnvrtc_static.a",     }),     visibility = ["//visibility:private"], )
I give up building with local installed cudnn and tensorrt, and download given tarball in WORKSAPCE, install using following command. It finally worked.
bazel build //:libtrtorch --compilation_mode opt --distdir third_party/dist_dir/[x86_64-linux-gnu | aarch64-linux-gnu]

I think the issue here is that bazel is preferring static libraries and we have had trouble in the past with static linking. It should be fixed with #190. On x86 we recommend building from tarballs anyway since the builds will be fully reproducible then.

I think the issue here is that bazel is preferring static libraries and we have had trouble in the past with static linking. It should be fixed with #190. On x86 we recommend building from tarballs anyway since the builds will be fully reproducible then.

Thanks, I have built trtorch with tarball successfully now.


[SPARK-31336][SQL] Support Oracle Kerberos login in JDBC connector

What changes were proposed in this pull request?
When loading DataFrames from JDBC datasource with Kerberos authentication, remote executors (yarn-client/cluster etc. modes) fail to establish a connection due to lack of Kerberos ticket or ability to generate it.
This is a real issue when trying to ingest data from kerberized data sources (SQL Server, Oracle) in enterprise environment where exposing simple authentication access is not an option due to IT policy issues.
In this PR I've added Oracle support.
What this PR contains:

Added OracleConnectionProvider
Added OracleConnectionProviderSuite

Why are the changes needed?
Missing JDBC kerberos support.
Does this PR introduce any user-facing change?
Yes, now user is able to connect to Oracle using kerberos.
How was this patch tested?

Additional + existing unit tests
Existing integration tests (especially OracleIntegrationSuite)
Test on cluster manually

Test build #124222 has started for PR 28863 at commit 5cc3d0a.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28840/
Test PASSed.

Test build #124222 has finished for PR 28863 at commit 5cc3d0a.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124222/
Test FAILed.

retest it please

retest this please

Test build #124231 has started for PR 28863 at commit 5cc3d0a.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28850/
Test PASSed.

cc @HeartSaVioR

Test build #124231 has finished for PR 28863 at commit 5cc3d0a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124231/
Test PASSed.

cc @maropu @MaxGekk

Note: I've checked that OracleIntegrationSuite passed in my local Mac env.

I'm intended to merge master into this PR and resolve conflicts when https://github.com/apache/spark/pull/28893 accepted.

Thank you, @gaborgsomogyi . I reviewed #28893 . We can merge that if the timeout issue is resolved there.

Test build #124418 has started for PR 28863 at commit d698fea.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29037/
Test PASSed.

Test build #124420 has started for PR 28863 at commit e16b4a4.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29039/
Test PASSed.

Test build #124420 has finished for PR 28863 at commit e16b4a4.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124420/
Test FAILed.

retest this please

Test build #124425 has started for PR 28863 at commit e16b4a4.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29044/
Test PASSed.

Test build #124425 has finished for PR 28863 at commit e16b4a4.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124425/
Test FAILed.

Test build #124418 has finished for PR 28863 at commit d698fea.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
public final class MapOutputCommitMessage
sealed trait LogisticRegressionSummary extends ClassificationSummary
class _ClassificationSummary(JavaWrapper):
class _TrainingSummary(JavaWrapper):
class _BinaryClassificationSummary(_ClassificationSummary):
class LogisticRegressionSummary(_ClassificationSummary):
class LogisticRegressionTrainingSummary(LogisticRegressionSummary, _TrainingSummary):
class BinaryLogisticRegressionSummary(_BinaryClassificationSummary,
case class Hour(child: Expression, timeZoneId: Option[String] = None) extends GetTimeField
case class Minute(child: Expression, timeZoneId: Option[String] = None) extends GetTimeField
case class Second(child: Expression, timeZoneId: Option[String] = None) extends GetTimeField
trait GetDateField extends UnaryExpression with ImplicitCastInputTypes with NullIntolerant
case class DayOfYear(child: Expression) extends GetDateField
case class Year(child: Expression) extends GetDateField
case class YearOfWeek(child: Expression) extends GetDateField
case class Quarter(child: Expression) extends GetDateField
case class Month(child: Expression) extends GetDateField
case class DayOfMonth(child: Expression) extends GetDateField
case class DayOfWeek(child: Expression) extends GetDateField
case class WeekDay(child: Expression) extends GetDateField
case class WeekOfYear(child: Expression) extends GetDateField
case class CoalesceBucketsInSortMergeJoin(conf: SQLConf) extends Rule[SparkPlan]
class StateStoreConf(

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124418/
Test PASSed.

Retest this please

Test build #124569 has started for PR 28863 at commit e16b4a4.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29190/
Test PASSed.

Test build #124569 has finished for PR 28863 at commit e16b4a4.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124569/
Test FAILed.

Retest this please.

Test build #124573 has started for PR 28863 at commit e16b4a4.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29194/
Test PASSed.

Test build #124573 has finished for PR 28863 at commit e16b4a4.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124573/
Test FAILed.

Retest this please.

Test build #124576 has started for PR 28863 at commit e16b4a4.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29197/
Test PASSed.

Test build #124576 has finished for PR 28863 at commit e16b4a4.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124576/
Test FAILed.

Test build #124640 has started for PR 28863 at commit 461eed0.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29258/
Test PASSed.

Test build #124640 has finished for PR 28863 at commit 461eed0.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

retest this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124640/
Test FAILed.

Retest this please.

Hi, @gaborgsomogyi . Is OracleKrbIntegrationSuite missing here?

retest this please

(Seems Jenkins sleeping now...)

@dongjoon-hyun I've spent almost gross 1 month to make it work w/ MiniKDC but no success. Please see my comment up. Not found any clear statement it must work so I gave up. If somebody can make it work or when active directory will be available in docker we can add it.

Test build #124667 has started for PR 28863 at commit 461eed0.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29283/
Test PASSed.

@gaborgsomogyi .

+1 for adding those important content on the PR description. Your important Investigation and decision is worth to be a commit log. Mostly, only commit logs prove your achievement and contribution, and make people trust you.
Existing integration tests (especially OracleIntegrationSuite) sounds like misleading a little. Is that testing this code patch?

Test build #124667 has finished for PR 28863 at commit 461eed0.

This patch fails to generate documentation.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124667/
Test FAILed.

@dongjoon-hyun Oh gosh! OracleIntegrationSuite is a leftover from the original PR where driver upgrade was inside.

retest this please

Test build #124681 has started for PR 28863 at commit 461eed0.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/29295/
Test PASSed.

Test build #124681 has finished for PR 28863 at commit 461eed0.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/124681/
Test FAILed.

@dongjoon-hyun thank you taking care and giving me suggestions like your last comment. I'm going to consider them in later contributions.

Can this cause the build failure? https://github.com/apache/spark/pull/28959#issuecomment-652018831

Thanks, I'm looking at this, @MaxGekk and @jiangxb1987 . It's weird because GitHub action passed.


Welcome screen/walkthrough

Guide the user through which settings they need to
We want users to be guided here if they fail to configure things correctly

Won't do


Include isort in pre-commit hooks

For automated sorting of thirdparty imports
https://github.com/asottile/seed-isort-config

@TobiHobi
sounds like a good feature.
especially because (if I get this correcly) it would not cause the commit to fail, but only make imports cleaner.

No fail, but isort is altering/changing the .py files.
Similar behaviour as black


Upgrade maven 3.8.1 + prototype for global lock

@michael-o you may want to have a look at this sync context implementation.  It has the benefits of being global to the host without requiring any kind of setup from the user.

Thanks, will take a deep look when we complete 1.7.0 with @cstamas. Hope this will happen until next week.

Draft PR at https://github.com/apache/maven-resolver/pull/105

@gnodet
Our Jenkins work builders are actually K8s pod based.
I don't think this solution can benefit the container based Jenkins solution.


Light fail after loading world

This is how the world looked after creating it and destroying some blocks:

This is how the world looked after loading the world again (after closing the application):

Yes this is a known issue, I forgot to add it so thank you for reminding me. When a chunk is first generated it has to calculate the light values. The way that it does that is it goes to each row (left to right) calculating the highest tile in the chunk and then calculating the light value only downwards. Because those two tiles were the highest tiles in that row, it started the light value at its highest amount and then went downwards. It doesn't take into account the height of neighboring tiles which is what needs to be done.

In this video you can see more light fails after loading:
video.zip


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Closes #1

It's a good idea to open an issue first for discussion.

[x] Tests pass
[x] Appropriate changes to README are included in PR

@googlebot I signed it!

I have fixed the validations.py script as promted in task on lab.
Thanks.


chore(avm-transpiler): transpiler cleanup

With the latest Brillig changes, these hacks can be cleaned up.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#5218  👈
#5217
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @fcarreiro and the rest of your teammates on  Graphite

Benchmark results
Metrics with a significant change:

note_successful_decrypting_time_in_ms (8): 140 (-38%)
note_trial_decrypting_time_in_ms (64): 139 (+94%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit c34a299e and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
5,668
18,820
36,356

l1_rollup_calldata_gas
66,328
238,720
469,064

l1_rollup_execution_gas
667,009
953,630
1,336,421

l2_block_processing_time_in_ms
1,321 (-1%)
4,743 (-2%)
9,261 (-3%)

note_successful_decrypting_time_in_ms
:warning: 140 (-38%)
483 (-13%)
1,014 (+8%)

note_trial_decrypting_time_in_ms
43.0 (+32%)
98.5 (+36%)
:warning: 139 (+94%)

l2_block_building_time_in_ms
18,632
69,510
137,603 (+1%)

l2_block_rollup_simulation_time_in_ms
8,428 (+2%)
29,099
56,890

l2_block_public_tx_process_time_in_ms
10,183 (-1%)
40,348
80,611 (+1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
13,771
26,761 (+1%)

note_history_successful_decrypting_time_in_ms
1,328 (+12%)
2,386 (-4%)

note_history_trial_decrypting_time_in_ms
104 (+28%)
124 (-28%)

node_database_size_in_bytes
19,075,152
35,602,512 (-1%)

pxe_database_size_in_bytes
29,859
59,414

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
283 (-1%)
44,370
27,700

private-kernel-ordering
217
52,324
14,326

base-parity
1,895 (+5%)
128
311

base-rollup
725
177,083
925

root-parity
1,552 (-2%)
1,244
311

root-rollup
68.9
4,487
789

private-kernel-inner
637 (-1%)
73,229
27,700

public-kernel-app-logic
449
35,262
28,215

public-kernel-tail
177
40,926
28,215

merge-rollup
8.37 (+1%)
2,696
925

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
10.0
16.0
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.6
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.586
0.496 (+1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
45.7 (-2%)
71.7
230
444
863 (-1%)
1,727 (+1%)
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
96.0
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.470 (-2%)
0.443
0.420
0.416
0.411 (-1%)
0.414 (+1%)
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
53.6 (-3%)
107
335 (-2%)
660
1,308 (-1%)
2,606
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
104
207
691
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.478 (-3%)
0.480 (-1%)
0.456 (-1%)
0.454
0.453 (-1%)
0.453
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
61.1

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
109

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.536

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes

tx_size_in_bytes
22,014

Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes

tx_pxe_processing_time_ms
3,302
1,741 (-1%)

Metric
0 public data writes
1 public data writes

tx_sequencer_processing_time_ms
13.5 (+18%)
1,256

Merge activity

Mar 15, 6:05 AM EDT: @fcarreiro started a stack merge that includes this pull request via Graphite.


[Fix] Removed redundant condition

This PR fixes the redundant conditional to reduce storage fees and remove unnecessary checks.
File Changes

contracts/wallet_v5.fc

This version is not obviously valid as it may remove 0x03 byte from cs.
Though cs starts with address which cannot start with 0x03, but that would need to be explained in code.


scanForKits gives exception "Unhandled Promise rejection"

Operating System: VS Code running on Windows 10, with remote connection to Centos 7.6 - CMake Version: 3.13
VSCode Version: 1.35.1
CMake Tools Extension Version: 1.1.3
Compiler/Toolchain: RH Developer Toolset GCC 7.3.1

I have added a kit to cmake-tools-kits.json to specify GCC 7.3.1:
[
  {
    "name": "GCC 4.8.5",
    "compilers": {
      "C": "/usr/bin/gcc",
      "CXX": "/usr/bin/g++"
    }
  },
  {
    "name": "GCC for x86_64-redhat-linux 4.8.5",
    "compilers": {
      "C": "/usr/bin/x86_64-redhat-linux-gcc",
      "CXX": "/usr/bin/x86_64-redhat-linux-g++"
    }
  },
  {
    "name": "GCC 7.3.1 from RedHat Developer Toolset 7",
    "compilers": {
      "C": "/opt/rh/devtoolset-7/root/usr/bin/gcc",
      "CXX": "/opt/rh/devtoolset-7/root/usr/bin/g++"
    }
  }
]

Since adding the third entry, when I select any kit in the list I get this exception:
[rollbar] Unhandled exception: Unhandled Promise rejection: scanForKits [cmake-server] Failed to activate protocol version: Generator "Visual Studio 15 2017" not supported. {}

Any thoughts please?

I think the reason for this is that my user settings contained:
"cmake.generator": "Visual Studio 15 2017",

but I was running a remote SSH session on a Linux machine that did not have that generator.  I deleted the setting and the exception did not occur.

We are closing this issue for now. Please upgrade to latest CMake Tools and let us know if you encounter any other issues.


Publish Scenario when chinese  as a content inside manifest added

Publish pipeline succeeded for this Pull Request. Once you refresh your index, this change should be present.


Introduce buildRoutes function to wrap route map exports

Addresses #64.

:+1: - LGTM
@dgeb - r?

Thanks @trentmwillis!
I'll ship v0.2.0 soon :shipit:


[feat] add OnError hook to ManagedSettlingHandler

OnError option allows to override the ManagedSettlingHandler error handling pre-settlement.
The options struct is passed in, so that other options can be used inside the implementation

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

25 of 25 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 75.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.3%

Covered Lines:
408

Relevant Lines:
544

💛  - Coveralls


Debugging in Visual Studio after refresh

This is not exclusive to this template but wanted to get your thoughts.
Having trouble debugging in visual studio. It's a common part of of dev workcycle to use the debugging tools in VS. Any guidelines on how to get this up and running with the WebPack middleware?

@AJDray Debugging is a wide topic. Can you explain what you're having trouble with? C#? TypeScript? Javascript? Client side? Server side?

@alexdresko appreciate it's a broad topic. I have tried out the examples and am very interested in them. I'm currently a RequireJS user, looking at webpack to streamline workflow, so not that familiar with ins and outs of it.
The only problem I think I have is that debugging is not working in Visual Studio 2017 enterprise. This means I want to place breakpoints in a specific file and for the debugger to break at this point. On further investigation I note that the requirements for map files are very specific in order for them to work in Visual Studio.
This issue relates similar woes https://github.com/gulp-sourcemaps/gulp-sourcemaps/issues/205
I don't actually think this project is generating map files that meet the requirements of visual studio. I have had a similar problem using gulp-sourcemaps. For this reason I currently use visual studio to compile my typescript for debugging.
I'm using IIS Express and clicking the "Play" button in Visual Studio.

Projects generated by the templates in this repo automatically have VS-compatible debugging setups. Just press F5 to launch in Chrome, and VS will attach itself to Chrome. You can then set breakpoints on your .ts sources in VS and they will get hit as expected.
Alternatively you can use the browser's built-in debugger, which will get the sourcemaps so you can see your original .ts code.

Debugging in Visual Studio after refresh

I'm not sure what you mean by "after refresh". If you have a specific scenario that doesn't work, could you post repro steps? Thanks!

Hi,
I've worked a lot more with the project and this is what I see. I'm not sure if this is specifically an issue with this template.
1.) Create new template from the Yeoman sources.
2.) Follow the run steps in the blog article published by Steve Sanderson. Including steps to enable debugging.

I then upgraded all dependencies to latest version.
3.) Run project in chrome.

Breakpoints work.
Make changes to the TS files in project, Using Hot Module Reloading.
Ensure relevant changes appear in client.
I find that after this cycle is complete then breakpoints in the file that has been changed cease working.
I find breakpoints continue to work in Chrome debug tools.
I have had trouble with Visual Studio source maps and understood they were particularly specific, I wondered if this was another example.
HTH

Ah yes, that is true. VS's integration with Chrome for debugging doesn't have a concept of source files changing during a debugging session, so you will have to disconnect and reconnect after editing a file. Like you said, it is easier just to use the browser's built-in debugging tools.

Assume by disconnect and reconnect you mean I need to stop and start Visual Studio, or is there a shortcut?

That is what I mean


Restructure API for 1.0 to declare stable

Summary
This issue captures a bunch of work. Only some will go into the 1.0 release. The 1.0 goal is:
Restructure API fields/spec to allow later additions to the API
Note: These are changes to the API mostly, and shouldn't require too much internal change to begin with. Tracking endpoint revision will mean some refactoring in endpoint.
There are a number of steps:

[ ] Refactor /endpoint/{id}/labels
https://github.com/cilium/cilium/pull/3388

// returned by GET, PATCH
type LabelConfiguration struct {
	Intent LabelConfigurationSpec
	Status LabelConfigurationStatus
}

// sent by PATCH
type LabelConfigurationSpec struct {
	// Custom labels in addition to orchestration system labels.
        // was custom
	User Labels

	// Labels derived from orchestration system which have been disabled.
	Disabled Labels
}

type LabelConfigurationStatus struct {
	Realized LabelConfigurationSpec

	// Labels derived from orchestration system that are used in computing a security identity
        // was orchestration-identity
	SecurityRelevant Labels

	// Labels derived from orchestration system that are not used in computing a security identity
        // was orchestration-info
	DerivedLabels Labels
}

[ ] Refactor /endpoint/{id}/config
https://github.com/cilium/cilium/pull/3389

// sent by PATCH
type EndpointConfigurationSpec struct {
       // the endpoint's labels
       LabelConfiguration *LabelConfigurationSpec

       // Changeable configuration
       Options ConfigurationMap
}

// returned by GET and PATCH
type EndpointConfigurationStatus struct {
       // currently applied changeable configuration
       Realized *EndpointConfigurationSpec

       // Most recent error, if applicable
       Error Error

       // Immutable configuration (read-only)
       Immutable ConfigurationMap
}

[ ] Refactor /config

// Returned by GET,PATCH
type Configuration struct {
	Spec ConfigurationMap
	Status ConfigurationStatus
}

type ConfigurationStatus struct {
	// Changeable configuration in effect
	Realized ConfigurationMap

	Error error

	// Immutable configuration (read-only)
	Immutable ConfigurationMap

}

// no change
// Sent by PATCH
type ConfigurationMap

[ ] Refactor /endpoint/{id}
[ ] Refactor /service
[ ] Refactor /prefilter
[ ] Refactor /policy/resolve

Background
Our API provides no mechanism to correlate a request with it's effects. These are:

global configuration changes
endpoint specific configuration changes

label changes (via API or orchestration)
create/delete events

policy changes

This restructure is an attempt to make this easier. It is predicated on a few assumptions
1- Each agent instance keeps it's own state
2- We want to express the difference between setting a value and it taking effect
3- Many status fields are read-only
4- We want to protect against simple races
The primary choices we made are:
1- API calls are declarative. They set the configuration in it's entirety.
Note: This means clients have to fetch, modify, then submit.
2- Each first-class resource presents a Spec/Status pair of fields

Spec: Anything a user (or event) can configure. This is sent to a PATCH handler
Status: The current state of this object. This is all read-only but contains a Realized field that represent the Spec currently in effect.
Note: This means the the convenience /endpoint/{id}/config & /endpoint/{id}/label will only use *Spec and *Status. Endpoint will hold a Spec/Status pair with the appropriate fields. In contract, /config is the daemon's configuration and will have a struct that contains Spec/Status.

3- We will introduce revision fields in the future. These are monotonically increasing (for the lifetime of the agent) and will be used to indicate when a PATCH goes into effect (via the Spec showing up in the Realized field with the appropriate revision number). The API will reject PATCH requests where newRev != oldRev+1. This forces clients to retry and resolve races.

PolicyRevision: is the current revision of the agent's repository. The endpoint's policy includes this revision to reflect which version of the repository it is using. It increments on:

policy add/remove to the repository (via API, orchestration event etc.)

EndpointRevision: reflects the endpoints configuration. It changes when:

new EndpointConfigurationSpec is provided
identity labels have changed post filtering (i.e. the Identity changes)
when endpoint config changes via daemon config
when endpoint regenerates and puts out a new policy to the datapath

When a patch request is made the response includes a revision number (which the client already knows due to the newRev != oldRev+1 restriction). Once subsequent statuses have a higher EndpointRevision that means that request is now in effect. Alternatively, one can check the revision in Realized.
Notes

I'm not sure how well the newRev != oldRev+1 revision enforcement will work out. It's possible to starve out a client. On the other hand, the revisions we will have (policy, endpoint, maybe daemon) shouldn't change too quickly unless something is happening (like a rebalance of a cluster, or new policies entering the system). In that case, it might be a good thing that the client isn't able to force a change in.

The original spec from tgraf
package api

type RevisionNumber int64

type ServiceSpec struct {
	// Frontend address
	// Required: true
	FrontendAddress *FrontendAddress `json:"frontend-address"`

	// List of backend addresses
	BackendAddresses []*BackendAddress `json:"backend-addresses"`

	// flags
	Flags *ServiceFlags `json:"flags,omitempty"`

	// Unique identification
	ID int64 `json:"id,omitempty"`

	Labels labels
}

type ServiceStatus struct {
	Realized ServiceSpec

	Error error

	Revision RevisionNumber
}

type Service struct {
	Intent ServiceSpec
	Status ServiceStatus
}

type ConfigurationStatus struct {
	Revision RevisionNumber

	Error error

	// Immutable configuration (read-only)
	Immutable ConfigurationMap `json:"immutable,omitempty"`

	// Changeable configuration
	Intended ConfigurationMap `json:"mutable,omitempty"`
}

// PATCH /config returns RevisionNumber
type Configuration struct {
	Intent ConfigurationMap
	Status ConfigurationStatus
}

type LabelConfigurationStatus struct {
	Revision RevisionNumber

	Realized LabelConfigurationSpec

	// Labels derived from orchestration system that are used in computing a security identity
	SecurityRelevant Labels `json:"orchestration-identity"`

	// pkg/labels/validLabelPrefixes
	GlobalSecurityFilter []string

	// Labels derived from orchestration system that are not used in computing a security identity
	DerivedLabels Labels `json:"orchestration-info"`
}

type LabelConfigurationSpec struct {
	// Custom labels in addition to orchestration system labels.
	User Labels `json:"custom"`

	// Labels derived from orchestration system which have been disabled.
	Disabled Labels `json:"disabled"`
}

type LabelConfiguration struct {
	Intent LabelConfigurationSpec
	Status LabelConfigurationStatus
}

type AddressPair struct {
	// ipv4
	IPV4 string `json:"ipv4"`

	// ipv6
	IPV6 string `json:"ipv6"`
}

type IPAMStatus struct {
	AllocatedAddresses []AddressPair
}

// rename IPAM to IPAMResponse
type IPAMResponse struct {

	// endpoint
	// Required: true
	Address AddressPair

	// host addressing
	// Required: true
	HostAddressing *NodeAddressing `json:"host-addressing"`
}

type TraceFrom struct {
	Labels Labels
}

type TraceTo struct {
	Labels Labels

	// List of Layer 4 port and protocol pairs which will be used in communication
	// from the source identity to the destination identity.
	//
	Dports []*Port `json:"dports"`
}

// Rename from IdentityContext
type TraceSelector struct {
	// from
	From TraceFrom

	// to
	To TraceTo

	// Enable verbose tracing.
	Verbose bool `json:"verbose,omitempty"`
}

type PreFilterSpec struct {
	Deny []string `json:"list"`
}

// Rename from CIDRList
type PreFilterStatus struct {
	Realized PreFilterSpec

	// revision
	Revision int64 `json:"revision,omitempty"`
}

type PreFilter struct {
	Intent PreFilterSpec
	Status PreFilterStatus
}

// Rename EndpointStatusChange to EndpointStateEvent

type EndpointIdentifiers struct {
	// ID assigned by container runtime
	ContainerID string `json:"container-id,omitempty"`

	// Name assigned to container
	ContainerName string `json:"container-name,omitempty"`

	// Docker endpoint ID
	DockerEndpointID string `json:"docker-endpoint-id,omitempty"`

	// Docker network ID
	DockerNetworkID string `json:"docker-network-id,omitempty"`

	// K8s pod for this endpoint
	PodName string `json:"pod-name,omitempty"`
}

type EndpointConfigurationSpec struct {
	Revision RevisionNumber

	// Labels describing the identity
	LabelConfiguration *LabelConfiguration `json:"labels,omitempty"`

	Configuration ConfigurationMap
}

type EndpointNetworking struct {
	// addressing
	Addressing *EndpointAddressing `json:"addressing,omitempty"`

	// MAC address
	HostMac string `json:"host-mac,omitempty"`

	// Index of network device
	InterfaceIndex int64 `json:"interface-index,omitempty"`

	// Name of network device
	InterfaceName string `json:"interface-name,omitempty"`

	// MAC address
	Mac string `json:"mac,omitempty"`
}

type EndpointIdentity struct {
	Revision RevisionNumber

	// Unique identifier
	ID int64 `json:"id,omitempty"`

	// Labels describing the identity
	Labels Labels `json:"labels"`

	// SHA256 of labels
	LabelsSHA256 string `json:"labelsSHA256,omitempty"`
}

type EndpointStatus struct {
	// Per endpoint revision number, bumped when:
	// - new EndpointConfigurationSpec is provided
	// - orchestration labels have changed post filter
	// - when endpoint config changes via daemon config
	Revision RevisionNumber

	RealizedConfiguration EndpointConfigurationSpec

	Networking          EndpointNetworking
	ExternalIdentifiers EndpointIdentifiers

	// Security identity
	Identity *EndpointIdentity `json:"identity,omitempty"`

	// mutable via policy repository
	Policy EndpointPolicy

	// Most recent status log. See endpoint/{id}/log for the complete log.
	Log         EndpointStatusLog  `json:"status"`
	Controllers ControllerStatuses `json:"controllers"`
	State       EndpointState      `json:"state"`
	Health      *EndpointHealth    `json:"health,omitempty"`
}

type Endpoint struct {
	// Local endpoint ID
	ID int64 `json:"id,omitempty"`

	Intent EndpointConfigurationSpec
	Status EndpointStatus
}

type EndpointPolicyState struct {
	// Corresponds to:
	// - policy revision of repository if desired
	// - implement policy revision in datapath if realized
	//
	// Renamed from endpoint.PolicyRevision
	Revision RevisionNumber

	Model *EndpointPolicy `json:"policy,omitempty"`
}

type EndpointPolicy struct {
	Desired  EndpointPolicyState
	Realized EndpointPolicyState
}


Use machinist for optimizing implicit operators

This library is all about implicits, so we should be able to improve performance by utilizing https://github.com/typelevel/machinist

@PeterFCaswell @maheshkelkar I will try this tonight. :)


Command to delete multiple Git branches at a time

Feature
Add checkboxes to the branches listed via Git: Delete Branch... to allow for deletion of multiple branches at a time.
Use Case
When working on multiple feature branches which get merged into the default branch, one ends up with a lot of useless local branches. Currently, the command Git: Delete Branch... only allows to delete one branch at a time. This is tedious, because the command needs to be spammed multiple times. It would be nice to have checkboxes in the branch list to select multiple branches for deletion.

/duplicate of #182640

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


[BACKEND] Still run llvm-opt but set optLevel to 0 to avoid the abs(float) bug

https://github.com/openai/triton/issues/1337

Should we add a simple abs(float) test?


Out of the box support for deploying Keras models

As requested in #233

Based on the conversation in #233, I assume this issue is resolved now?

@gmittal : The latest Clipper version, v0.4.1 supports Keras already. Here are examples for  Keras. I will close this issue.

https://github.com/ucbrise/clipper/blob/develop/examples/frameworks/keras_on_docker_example.ipynb
https://github.com/ucbrise/clipper/blob/develop/examples/image_query/keras_on_docker_example.ipynb

@gmittal Also, we will update Keras to API documentation soon. Until then, please look at Pydoc here. https://github.com/ucbrise/clipper/blob/develop/clipper_admin/clipper_admin/deployers/keras.py


Feature/default workspace coalesce

Provide option for choosing default workspace of data source. Workspaces with null value are coalesced to the default of the data source.

This repo is going to be archived. The Azure Monitor plugin was moved into the Grafana repository for version 6.0 of Grafana. If you are using Grafana 6.x then you will automatically start using the built-in version of the Azure Monitor datasource.
Announcement: https://grafana.com/blog/2019/02/25/grafana-v6.0-released/#azure-monitor-datasource
Documentation for Azure Monitor in Grafana: https://grafana.com/docs/features/datasources/azuremonitor/
This PR was submitted after we ported the plugin to Grafana. Really sorry about that - we should have archived the repo earlier. Could you reimplement it for Grafana and submit it there? (Or I can do it for you if you want but then it won't be under your name).


🎮 Game Request
Frontend game developed using HTML, CSS, JavaScript. Here user can see his/her age.
functions->

Chose your date of birth.
Click Age Button.
And see your age.

Point down the features
Frontend game developed using HTML, CSS, JavaScript. Here user can see his/her age.
functions->

Chose your date of birth.
Click Age Button.
And see your age.

Select program in which you are contributing
No response
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

/assign

i want to work on this issue ,kindly assign me this issue @kunjgit , if this issue is open under IWOC

Show me, what will you Change or update in this website.

Hi ,I want to work on this project.Please assign it tome

i have very good experience in fronted part, i did some good projects related to fronted so, could you please assaign it to me i will do it

Hello @Keshab1113, Time's up!⏰
Sorry for closing your issue!
But it's more than a week since we haven't received anything from your side 😢 .
Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥
All the best! 🚀
Happy Hacking! 💗

Hey @Keshab1113 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


Renaming the Table Name causes error as it has foreign key defined

Hi,
We are planning to support Code First in IBM Entity Framework Provider. We have one use cases which we found during our internal testing and need guidance on how to handle it.
Problem is when we rename table which is having foreign key defined in it, as part of add-migration operation only renameTable(...) gets generated.
when we run update-database we get error that table can not be renamed.
So if we remove foreign key dependency it works perfectly fine.
So if we handle this we need to perform below steps:

Figure out whether table has PK or FK
if it has then gether all the required data like constraint name, parent table, parent table_column name etc. incase of  composite key we need to have list of columns.
then drop the keys
rename table
then add key back using data collected in step 2.

It's going to be more effort just to rename table
Our question is:

What is the easiest way to achieve it.
Why doesn't MS EF generate drop and create key operation along with rename operation ? in this way it would have been more easy for providers to handle..

Do we have any update on this ?
In EF core we could observe dropping and creating back PK and FK are taken care but for index rename operation is being generated inplace of drop and create back. Due to which even there we are hitting the same issue.

@archanasoni If your provider doesn't support this operation, then unfortunately that's just the way it is. We're not going to be making any significant changes to EF6 migrations at this time.

EF Team Triage: This issue is not something that our team is planning to address in the EF6.x code base.  This does not mean that we would not consider a community contribution to address this issue.
Moving forwards, our team will be fixing bugs, implementing small improvements, and accepting community contributions to the EF6.x code base. Larger feature work and innovation will happen in the EF Core code base (https://github.com/aspnet/EntityFramework).
Closing an issue in the EF6.x project does not exclude us addressing it in EF Core. In fact, a number of popular feature requests for EF have already been implemented in EF Core (alternate keys, batching in SaveChanges, etc.).
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.


✨ Add development and pre-production namespaces in production EKS cluster

User Story
As a… developer in CloudOps team
I want to… test my code in development environment in Production EKS cluster
So that… I can my code in isolation without having to create a whole new EKS cluster
Value / Purpose
This is reduce the cost of running additional EKS clusters for non-production environments.
Useful Contacts
Touhidul Islam, Rich Baguley
Additional Information
No response
Definition of Done

[ ] Production EKS cluster has all environments in separate namespaces
[ ] Documentation has been written / updated
[ ] README has been updated
[ ] User docs have been updated
[ ] Another team member has reviewed
[ ] Tests are green

After some discussion we have realised that in adding development and pre-production namespaces in production EKS cluster, we need to cleverly manipulate DNS. In addition @bagg3rs quantified the saving that we would make on this piece of work to circa £1000 / month per env.
Current approach, get the namespaces up and running in prod, then manually decommission the dev and preprod clusters.

Steps takes to fix the broken pipeline:

Edit CodeBuild projects in dev and pre-prod to change the service role to production


ChainSync Client: trimming and refactoring

Implement the docs/ChainSync.md spec: watch our current chain and trim the
candidates.

Introduce ChainDbView to abstract over the ChainDB.

Introduce Their and Our newtype wrappers to avoid confusing our tip with
their tip.

Only store the candidate fragments in the peer map, not the whole candidate
state. Thread the state of the candidate through manually, without storing
it in a StrictTVar. Split the state up in NoIntersectionState and
IntersectionState to be more precise.

Include our tip and their tip in the ChainSyncClientException and add
field names.

Fix bug in pipelining: we used our current chain's tip's block number
instead of the candidate's tip's block number.

Misc. improvements to the ChainSync client test.

#1080 needs to be merged first to fix the build.

bors r+


[BUG] some names are invisible on txadmin

txAdmin/FXServer versions:
v6.0.2 atop FXServer 6683
Describe the bug
When i use a name that i generated on a site, the player cant be seen on the server
To Reproduce
Steps to reproduce the behavior:

Just use my name "ρωøχч χ ħνħ χ θθ χ eυłeи¢ħeαтš.¢øм χ #вøииıeαυfđıeΙ"

Screenshots

this is purely because gta can only show the Ascii character set

Also regarding the player not showing in the txadmin UI or the "player not found" message in the modal MIGHT be because of a bug I solved and will be available in the next update.


Could not get default pem root certs.

What version of gRPC and what language are you using?
PHP PECL php_grpc.dll - v1.26.0 (tried also with v1.24 and v1.25)
grpc-php - v1.26.1
What operating system (Linux, Windows,...) and version?
Windows 1909 (also happens on Mac 10.14 but haven't done much testing there but similar setup)
What did you do?
Using with Google Ads PHP library, when using with composer grpc v1.26.1, leads to error. Setting version in composer explicitly to v1.25 or lower, fixes the issue.
It happens with any PHP gRPC extension of versions (as far as I've tried) v1.24.0, v1.25.0, v1.26.0.
What did you see instead?
This is response on Windows, but similar happens on Mac:
E1226 20:40:50.775000000 17272 ssl_utils.cc:452] load_file: {"created":"@1577385650.775000000","description":"Fail ed to load file","file":"ext\grpc\src\core\lib\iomgr\load_file.cc","file_line":71,"filename":"/usr/share/grpc/roots.pem","referenced_errors":[{"created":" @1577385650.775000000","description":"No such file or directory","errno":2,"file":"ext\grpc\src\core\lib\iomgr\load_file.cc","file_line":45,"os_error":"No  such file or directory","syscall":"fopen"}]} E1226 20:40:50.810000000 17272 ssl_security_connector.cc:423] Could not get default pem root certs. E1226 20:40:50.817000000 17272 secure_channel_create.cc:132] Failed to create secure subchannel for secure name 'googleads.googleapis.com:443' E1226 20:40:50.832000000 17272 secure_channel_create.cc:50] Failed to create channel args during subchannel creation. E1226 20:40:50.836000000 17272 ssl_security_connector.cc:423] Could not get default pem root certs. E1226 20:40:50.841000000 17272 secure_channel_create.cc:132] Failed to create secure subchannel for secure name 'googleads.googleapis.com:443' E1226 20:40:50.846000000 17272 secure_channel_create.cc:50] Failed to create channel args during subchannel creation.

I believe the issue was fixed in https://github.com/grpc/grpc-php/pull/17
Please refer https://github.com/grpc/grpc/issues/21535 for more information


Add df gc

Dataframe add GC function
task_scheduler call GC function

Signed-off-by: junjiejiangjjj<EMAIL_ADDRESS>

Codecov Report

Merging #620 (fe584e4) into main (41f6fe4) will decrease coverage by 0.85%.
The diff coverage is 83.09%.

@@            Coverage Diff             @@
##             main     #620      +/-   ##
==========================================
- Coverage   71.30%   70.44%   -0.86%
==========================================
  Files         148      154       +6
  Lines        5812     6050     +238
  Branches      869      894      +25
==========================================
+ Hits         4144     4262     +118
- Misses       1415     1527     +112
- Partials      253      261       +8

Impacted Files
Coverage Δ

towhee/engine/task_scheduler.py
76.11% <62.06%> (+1.65%)
:arrow_up:

towhee/dataframe/dataframe.py
90.22% <95.65%> (+4.91%)
:arrow_up:

towhee/engine/engine.py
79.72% <100.00%> (-1.36%)
:arrow_down:

towhee/engine/graph_context.py
91.22% <100.00%> (+0.48%)
:arrow_up:

towhee/engine/operator_io/reader.py
85.03% <100.00%> (+2.96%)
:arrow_up:

towhee/utils/atomic_count.py
100.00% <100.00%> (ø)

towhee/utils/hub_utils.py
54.03% <0.00%> (-16.49%)
:arrow_down:

towhee/data/random_erase.py
86.36% <0.00%> (-4.55%)
:arrow_down:

towhee/command/develop.py
80.00% <0.00%> (-2.23%)
:arrow_down:

... and 12 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 41f6fe4...fe584e4. Read the comment docs.

/lgtm


feat: support to force using release version

...using an environment variable.
Set the environment variable RELEASE to true to force the release version to be used, even if the repository is dirty or no tag exists at the current commit.

:tada: This PR is included in version 1.1.0 :tada:
The release is available on:

v1.1.0
GitHub release

Your semantic-release bot :package::rocket: