Issue with joining the domain on Windows 2012

Hiya, I'm having a problem getting this to join a domain, with Windows 2012 (Not R2). Both the member server and the DC are 2012.
I've run the code from the resource directly in powershell and it joins the domain, reboots the server and all is well, but for some reason, if I use the recipe I get the following output, every time (I've removed passwords and the actual domain etc.)
[2015-02-05T16:27:13+00:00] INFO: Processing powershell_script[join_mydomain] action run (C:/chef/cache/cookbooks/windows_ad/providers/domain.rb line 92)
================================================================================
Error executing action run on resource 'powershell_script[join_mydomain]'
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
---- Begin output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File "C:/Windows/Temp/chef-script20150205-2788-8r8gm.ps1" ----
STDOUT:
STDERR: Computer 'WIN-GRE2AI61M0C' failed to join domain 'my.domain.com' from its current workgroup 'WORKGROUP' with following error message: Unable to update the password. The value provided as the current password is incorrect.
---- End output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File "C:/Windows/Temp/chef-script20150205-2788-8r8gm.ps1" ----
Ran "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File "C:/Windows/Temp/chef-script20150205-2788-8r8gm.ps1" returned 1
Resource Declaration:
# In C:/chef/cache/cookbooks/windows_ad/providers/domain.rb
92:       powershell_script "join_#{new_resource.name}" do
93:         if node[:os_version] >= "6.2"
94:           code <<-EOH
95:             $secpasswd = ConvertTo-SecureString '#{new_resource.domain_pass}' -AsPlainText -Force
96:             $mycreds = New-Object System.Management.Automation.PSCredential  ('#{new_resource.domain_user}', $secpasswd)
97:             Add-Computer -DomainName #{new_resource.name} -Credential $mycreds -Force:$true -Restart
98:           EOH
99:         else
100:           code "netdom join #{node[:hostname]} /d #{new_resource.name} /ud:#{new_resource.domain_user} /pd:#{new_resource.domain_pass} /reboot"
101:         end
102:       end
Compiled Resource:
Declared in C:/chef/cache/cookbooks/windows_ad/providers/domain.rb:92:in `block in class_from_file'
powershell_script("join_mydomain") do
action "run"
retries 0
retry_delay 2
default_guard_interpreter :powershell_script
command ""powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File "C:/Windows/Temp/chef-script20150205-2788-8r8gm.ps1""
backup 5
returns 0
code "            $secpasswd = ConvertTo-SecureString 'MySecurePassword' -AsPlainText -Force\n            $mycreds = New-Object System.Management.Automation.PSCredential  ('sup_chef', $secpasswd)\n            Add-Computer -DomainName my.domain.com -Credential $mycreds -Force:$true -Restart\n"
interpreter "powershell.exe"
declared_type :powershell_script
cookbook_name "windows_ad"
end
[2015-02-05T16:27:15+00:00] INFO: Running queued delayed notifications before re-raising exception
[2015-02-05T16:27:15+00:00] ERROR: Running exception handlers
[2015-02-05T16:27:15+00:00] ERROR: Exception handlers complete
[2015-02-05T16:27:15+00:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out
[2015-02-05T16:27:15+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: powershell_script[join_mydomain] (C:/chef/cache/cookbooks/windows_ad/providers/domain.rb line 92) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File "C:/Windows/Temp/chef-script20150205-2788-8r8gm.ps1" ----
STDOUT:
STDERR: Computer 'WIN-GRE2AI61M0C' failed to join domain 'my.domain.com' from its current workgroup 'WORKGROUP' with following error message: Unable to update the password. The value provided as the current password is incorrect.
---- End output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File "C:/Windows/Temp/chef-script20150205-2788-8r8gm.ps1" ----
Ran "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File "C:/Windows/Temp/chef-script20150205-2788-8r8gm.ps1" returned 1
Can you help? When I ran the code directly in powershell, I literally copy/pasted from this error, so the password is definitely not wrong. Obviously I've edited the password in this output, but can tell you it's alpha-numeric, with no abstract characters.

@alex-williams The error you're getting is "Unable to update the password. The value provided as the current password is incorrect."  Try the following link for assistance: http://support.microsoft.com/kb/842715

Hi, the password is correct, as I said in the issue above, if I copy and paste the code, directly from the error, including the password, it works perfectly fine.

@alex-williams Can you provide your recipe?

windows_ad_domain "my.domain.com" do
action :join
domain_pass "secretPassword"
domain_user "sup_chef"
end

I don't know if you've had a chance to look at this, but it would appear the SYSTEM user that Chef runs under, is unable to join a domain. I'm currently trying something that might work around this. If I get anywhere, I'll let you know.

@alex-williams Hmm I'm guessing that with https://github.com/TAMUArch/cookbook.windows_ad/pull/20 we probably should of had line 145 be ruby if node[:os_version] >= '6.2'

@alex-williams I was able to run your recipe successfully in vagrant.  If you need further help ping me here and I'll see what I can help you with.
http://www.hipchat.com/g8eZZzR15

Looking into this issue; there's several potential causes for the "error message: Unable to update the password. The value provided as the current password is incorrect."
Most of them have to do with network connectivity issues between the computer and DC.  Which should be ruled out if it can execute manually.
There was one mention that if the user you're attempting to use is not part of Local Users, that could cause issues.  So, it would be possible that the chef-client service, running as local system may cause an issue.  If you run chef-client manually from a prompt, does the issue reproduce there?
If not, then just change the user you run chef under, simplest way is to switch to a scheduled task.
Here's a link to an issue about that: https://github.com/chef/chef/issues/2861

It seems this was as simple as adding the domain, to the username in the recipe, thus:
windows_ad_domain "my.domain.com" do
action :join
domain_pass "secretPassword"
domain_user "domain\sup_chef"
end
The domain was not needed for issuing the command manually on the command line, but it is from Chef for some reason. Probably relating to the use of the SYSTEM account, instead of the local Administrator account somehow.

@alex-williams Thanks so much - I received this exact error when using this cookbook.  The readme should be updated to note that using domain_user "domain\user" is necessary for domain joins.

@cixelsyd We're working on cleaning up the documentation and providers, if you you notice an inconsistency, please let us know.  Regarding the :required flag, the :domain provider has been the wrong place for :join and :unjoin for a long time. It will shortly be moved to the :computer provider.

Makes sense.  I just worked through the logic in providers.rb and found some functional bugs there, too.
mobile

On Oct 20, 2015, at 1:59 PM, Derek Groh<EMAIL_ADDRESS>wrote:
@cixelsyd We're working on cleaning up the documentation and providers, if you you notice an inconsistency, please let us know. Regarding the :required flag, the :domain provider has been the wrong place for :join and :unjoin for a long time. It will shortly be moved to the :computer provider.
—
Reply to this email directly or view it on GitHub.


Review script for paper "2023ApJ...945..147N" made with predictor "DataLinkerWithSupport"

Created by Paper Data Linking Bot
Please review the download script and instrument details for the paper.
bibcode: 2023ApJ...945..147N
predictor: DataLinkerWithSupport
annotated pdf: view here (requires login)
Checklist
Download Script

[ ] Correct time ranges specified

[ ] Correct VSO instruments specified

[ ] Query returns good results or contains warning with reasoning if not

[ ] Physical observables omitted or correct

[ ] Wavelengths omitted or correct

[ ] Cadences omitted or correct

Instrument Details

[ ] Consistent with download_script.py

Metadata

[ ] Contains the bibcode for the relevant paper
[ ] VSO sources consistent with download_script.py

For more details, refer to the Contributing Guide.

XPS not in VSO.
SEE not in VSO.
SDO/EVE is in VSO. Why returning no results?
EVE wavelengths are measured in angstrom, not nanometers.

Missed HMI and MDI. Quote here indicates usage.

We used the full-disk magnetograms obtained by the
Helioseismic and Magnetic Imager (HMI; Scherrer et al.

onboard SDO and the Michelson Doppler Interferometer (MDI; Scherrer et al. 1995) onboard the Solar
and Heliospheric Observatory (SoHO) to calculate the
total unsigned magnetic flux in the visible solar hemisphere. The SDO/HMI has started the nominal observations in May 2010, while the observation program of
SoHO/MDI was terminated on 2011 April 12.

add this to training/testing data for pdf extraction to try to figure out why process is leaving out HMI and MDI.


Fix version for the docker image for CUDA

I built the GPU based Dockerfile but it was broken because the version of the CUDA image that it was trying to download is not available anymore, the next version (.2) fixes it.

Are you interested on pushing the latest-gpu image too? is there any reason not to do it?
My build is available via docker pull iemejia/handson-ml3:latest-gpu with this fix in case you are interested.


Avoid using deprecated Buffer constructor

safe-buffer is already used and provides Buffer.from polyfill, so just use Buffer.from directly to avoid hitting deprecated API.
Refs: https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor
Tracking: https://github.com/nodejs/node/issues/19079
This was overlooked in c9312bd24d08271687d76da0fe3c83493871cf61.
/cc @mcollina

Thanks, released!


Body swellings

Hi @yuanming-hu,
I'm trying to simulate the swelling of a rigid body, using a frame_update:
def frame_update(t, frame_dt):
    start_size = 0.56
    fact_swell = 1.08
    scale_curr = ((start_size + t * fact_swell) / L_adim,) * 3
    t_f = nt_swell * frame_dt

    if t <= t_f:
        mpm.add_particles(type='rigid',
                          scripted_position=tc.function13(position_body),
                          scripted_rotation=tc.function13(rotation_body),
                          scale=scale_curr,
                          delta_t=frame_dt,
                          codimensional=False,
                          mesh_fn=f_name_body)

The problem is that, for each scale of the body, I add particles but I can't remove them as I go along. So the particles accumulate, and there is a memory issue, that crashes the code at dt=12.
Is there another way to swell a rigid body, or to remove particles (which follow a mesh) to free memory as the frame_update progresses?
Thank you very much for your help and this great code!

@durochat
Hello, I am not good at your issue. But I want to ask help from you how to deal with the problem "No Module named 'dynamic' during installation.
I just use command 'cmake ..' and  'make' in the build folder. But there is always the error.
Thanks a lot.
BTW, I am using mpm to do some simulation and I hope many discussion in the future.

@fengzekang please open a new issue corresponding to the problem you have.

Hi @yuanming-hu,
I'm trying to simulate the swelling of a rigid body, using a frame_update:
def frame_update(t, frame_dt):
    start_size = 0.56
    fact_swell = 1.08
    scale_curr = ((start_size + t * fact_swell) / L_adim,) * 3
    t_f = nt_swell * frame_dt

    if t <= t_f:
        mpm.add_particles(type='rigid',
                          scripted_position=tc.function13(position_body),
                          scripted_rotation=tc.function13(rotation_body),
                          scale=scale_curr,
                          delta_t=frame_dt,
                          codimensional=False,
                          mesh_fn=f_name_body)

The problem is that, for each scale of the body, I add particles but I can't remove them as I go along. So the particles accumulate, and there is a memory issue, that crashes the code at dt=12.
Is there another way to swell a rigid body, or to remove particles (which follow a mesh) to free memory as the frame_update progresses?
Thank you very much for your help and this great code!


Add accreditation to characterisation

Summary
Details and comments

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: Samuele Ferracin:x: SamFerracinSamuele Ferracin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for this, I will make the changes and submit again.
I am away for conferences this week and the next one, so it may take a few days before the new version is ready.
Regards,
Sam
--
Sam Ferracin
PhD Studenthttps://warwick.ac.uk/fac/sci/physics/research/theory/research/qinfo/ferracin/ | Theory Group | Physics Department
University of Warwick, Coventry CV4 7AL, United Kingdom
Office: PS131

From: David McKay<EMAIL_ADDRESS>Sent: Friday, August 16, 2019 3:46:10 AM
To: Qiskit/qiskit-ignis<EMAIL_ADDRESS>Cc: Ferracin, Sam<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [Qiskit/qiskit-ignis] Add accreditation to characterisation (#252)
@dcmckayibm commented on this pull request.
Ok, so we need to divide this file up a bit. If you look at the quantum volume follow that example. There will be one file with the code to create the accreditation circuits and another file which has a fitter object that will accept the output results and find the error bounds.
Also there should be no calls to qiskit inside the code itself, it should just accept the ideal results from whereever the user chooses to get them (this helps because then the code base is not hooked into strongly to terra). Include as part of the PR a jupyter notebook that we will eventually put into the tutorials (e.g. https://github.com/Qiskit/qiskit-tutorials/blob/master/qiskit/advanced/ignis/quantum_volume.ipynb), but for now include as part of the PR.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Qiskit/qiskit-ignis/pull/252?email_source=notifications&email_token=AMEWJLGWH3MXW5TKFVM3KL3QEYIHFA5CNFSM4IL4LWDKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCBX23SY#pullrequestreview-275754443, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMEWJLDMPTXYPC3KNMWBAVLQEYIHFANCNFSM4IL4LWDA.

The code needs to pass a style check. You can run that check on your computer by running tox -elint from the ignis root directory (you may need to pip install tox). It will print out a list of thigns you need to fix (e.g. spaces between operators). If there's something particularly vexing let me know.

Looks great, thanks for all the work. I moved the directories to verification and the tutorial into examples. Eventually we'll move the tutorial out to the tutorials repo. We should add some tests for this, but I'll make that a new issue.


Installed Tensorflow-directml show no module named tensorflow

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
import tensorflow as tf
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 1903
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):  pip install tensorflow-directml==0.0.1.dev0
TensorFlow version (use command below):
Python version: 3.7
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
So the long waited Directml was released today, but it seems that the package wasn't compiled yet
, I installed through pypi, obviously that size of wheel is 6.4 KB, which isn't right
, should be about 200 MB or so.
Describe the expected behavior
Any schedule on when the proper wheels will be released?
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

Hi limapedro,
The tensorflow-directml PyPI package is a placeholder until the project's size limit is increased. For now, you'll need to get the actual packages from our GitHub (notes for Windows; notes for WSL).
Thanks for testing this out!

@jstoecker Thank you.

@limapedro
was this resolved by following @jstoecker  suggestion? Please close the issue if it was resolved already. Thanks!

@ravikyram It's all working now, the pypi page is working, you can see the files for the project here: https://pypi.org/project/tensorflow-directml/#files


add docs for contributing bio to site, and working with jekyll

added with https://github.com/radinformatics/radinformatics.github.io/commit/521d295e8a271bd27f8db30a654fe831bb85eac6


Added ink-boxes application

Project Abstract

Ink boxes are a collection of helpful Ink smart contract boilerplates along with it's frontend. It will already have polkadot.js library using which frontend can talk with the smart contract deployed. Got inspired by truffle boxes on how easily one can spin up the boilerplate code in no time.

Grant level

[x] Level 1:  Up to $10,000, 2 approvals
[ ] Level 2:  Up to $30,000, 3 approvals
[ ] Level 3:  Unlimited, 5 approvals (for >$100k: Web3 Foundation Council approval)

Application Checklist

[x] The application template has been copied and aptly renamed (project_name.md).
[x] I have read the application guidelines.
[x] A BTC, Ethereum (USDT/USDC/DAI) or Polkadot/Kusama (aUSD) address for the payment of the milestones is provided inside the application.
[x] The software delivered for this grant will be released under an open-source license specified in the application.
[x] The initial PR contains only one commit (squash and force-push if needed).
[x] The grant will only be announced once the first milestone has been accepted (see the announcement guidelines).
[ ] I prefer the discussion of this application to take place in a private Element/Matrix channel. My username is: @_______:matrix.org (change the homeserver if you use a different one)

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

Hey @Noc2. I tried opening my GitLab profile in incognito mode, but it is not opening, asking me to sign in. I have moved that repo to GitHub: https://github.com/nerdsince98/ink-boxes. Please check. Also, I will keep on adding more boxes.

Hey @Noc2. Thanks for your reply.
I have reduced the cost from the first milestone and increased it in the later one.
This is the website I will be taking inspiration from: https://trufflesuite.com/boxes/

Hey @Noc2 I have submitted the first milestone and raised invoice for the same. Request you to check the code repository: https://github.com/nerdsince98/ink-boxes
Thankyou

Hey @0xCaso. I will rework the website to make it more pretty. Eventually, I will go through the evaluation notes and make them perfect.


feat: init repository

Description
First initialization of all templates used to build a Docker project.
Verification
This feature branch only.
Checklist

[x] My code follows the style guidelines of the project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Updating the order of feature roadmap

This new ordering will make it easier to see which features are coming in each release/pre-release of WinUI 3.

/azp run


Fix gradle build issues in Socket and file modules

Purpose
$title.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@e3b7698). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #14607   +/-   ##
=========================================
  Coverage          ?   63.98%
  Complexity        ?      523
=========================================
  Files             ?     2274
  Lines             ?    99054
  Branches          ?    13164
=========================================
  Hits              ?    63379
  Misses            ?    30693
  Partials          ?     4982

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 e3b7698...52862a4. Read the comment docs.


Clarify opening

"not on chain" is both wrong and misleading -- trying to correct it, hope I got it right.

way to go :)

hmm.. but that's not actually true anymore, because the propose and unpropose manage stuff in blockchain state.. I'll tweak the opening again to reflect that.. unless you have a few minutes to tweak it :)


updated message formatter and fixed some bugs

Pull Request Test Coverage Report for Build 257

0 of 7 (0.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 51.715%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/main/java/com/t13g2/forum/logic/parser/UpdateThreadCommandParser.java
0
1
0.0%

src/main/java/com/t13g2/forum/logic/parser/UpdateCommentCommandParser.java
0
3
0.0%

src/main/java/com/t13g2/forum/logic/util/DisplayFormatter.java
0
3
0.0%

Totals

Change from base Build 255:
-0.02%

Covered Lines:
1568

Relevant Lines:
3032

💛  - Coveralls


How to scrape HTML string?

Is it possible to use Colly to scrape HTML strings? I mean, I'd like to directly provide a string to the Collector, without executing an HTTP request.
Browsing the project docs I can't find this feature... Is there a way to achieve this?
Thanks!

There's no way at the moment.
What's your use case, anyway?

@WGH- thanks.
I have some HTML documents stored as text in my application DB and I'd like to parse and extract data from them.

Not sure why you need Colly for that, since you can use e.g. github.com/PuerkitoBio/goquery directly.

@WGH- I didn't know goquery project. Thank you very much for your suggestion.


loading prop is already false while data is not yet available

Steps to Reproduce

Use @graphql to load a biggish dataset into dataSet
Observe data.loading and data.dataSet props
Render component when data.loading is false

Buggy Behavior
When data.loading is false, data.dataSet is not immediately available
Expected Behavior
data.loading should only go false once at least the non-deferred parts of data.dataSet are available to the component.
This allows you, in render(), to test for loading first and bail out with a spinner, and then if the query result is  falsy you can show a "data not found" UI. With the current behavior, this setup results in a spinner, followed by a "data not found", followed by the actual component.
Version

<EMAIL_ADDRESS><EMAIL_ADDRESS>

Can you provide a reproduction of this? It seems surprising.

PEBKAC! 😊  I was destructuring my loading prop outside the data prop 🙄


Hardcoded passwords

Several passwords are included in code. They should be hashed or hidden in some way

@TheSteelBarr We need to hurry up with this!


Schedule for runs

Please consider somehow adding an ability to schedule compression runs.
For example run it only once a day/week/month/whenever. That way active repos where images often change don't get flooded with commits from this bot.

This would be a great addition when we support a config file https://github.com/dabutvin/ImgBot/issues/2
Thanks for the issue!

I think offering daily/weekly/monthly as options is a good place to start.
In an effort to always keep ImgBot free by keeping costs super low I want to make sure not to clone repos on a schedule that have no activity.
One thing you can do in the meantime is to not delete the imgbot branch until you are ready for more image optimizations. We won't make a new PR if the old branch is hanging around.


create dashboard in Grafana from data in DB

Dependency : Fake data in DB

I received an update from @Tony-Thawatchai  stating that he has completed the proof of concept to test whether Grafana can effectively visualize the data for our desired dashboard. He will be working on creating the dashboard, but he is currently waiting for @immangat to merge the pull request and inject the data we are scraping from Airbnb.

@Reena-24-project  I'm gonna upload sample data to a DB that @Tony-Thawatchai can use to develop the dashboard.

@immangat Thank you for the update.

@immangat I saw that your PR for the ingestion module was almost ready, right? In that case, there is no need for you to go through the trouble of creating the sample data. I will pull the codebase after your PR is merged, and it should be ready to go.

Hey @Tony-Thawatchai, @VimanyuAgg, and I had a discussion, and we agreed that it would be better if there were a database with sample data, as any module, policy, AI, or dashboard could use it. Currently, you have to run the harvester individually.

Noted. Then just let me know when you added it so I can start working on Grafana dashboard


Constraint needs updating for spf13/pflag

What steps did you take and what happened:
When updating a plugin, the build fails because spf13/pflag is out of sync with spf13/cobra
What did you expect to happen:
A compilation error that was relevant to the code, not it's dependencies
The output of the following commands will help us better understand what's going on:
...
github.com/heptio/ark-blockstore-rook/vendor/k8s.io/client-go/tools/pager
# github.com/heptio/ark-blockstore-rook/vendor/github.com/spf13/cobra
vendor/github.com/spf13/cobra/command.go:31:25: undefined: pflag.ParseErrorsWhitelist
github.com/heptio/ark-blockstore-rook/vendor/github.com/heptio/ark/pkg/plugin/generated
...

Anything else you would like to add:
An override to pflag version 1.0.2 fixed it locally, but this should be fixed here.
Environment:

Ark version (use ark version): 0.9.3
Kubernetes version (use kubectl version): not relevant
Kubernetes installer & version: not relevant
Cloud provider or hardware configuration: not relevant
OS (e.g. from /etc/os-release): ARCH Linux

@skriss or @nrb ptal?


What does fescar mean?

This is a general question out of curiosity

Fescar: Fast & Easy Commit And Rollback

It's FECAR

I guess it's Fast & Easy Support Commit And Rollback

I guess it's Fast & Easy Support Commit And Rollback

yes

Now it got renamed to SEATA, and I believe it stands for "Simple Extensible Autonomous Transaction Architecture
", which is a bit vague I think, why would a solution/framework be named "architecture". In addition, I think using acronyms to name things isn't ideal, you open yourself to various wild guesses from people.

when google seata, got SOUTHEAST ATHLETIC TRAINERS' ASSOCIATION, suggest change back to fescar.

because of no update for a long time, I will close the issue, if you have other questions, please reopen it or create a new one


cu2qu.ufo.IncompatibleGlyphsError: 'Noon' -- source? or fontmake? issue

from the log building variable fonts from https://github.com/googlei18n/noto-source/tree/master/src/NotoNastaliqUrdu
_
============= src/NotoNastaliqUrdu/NotoNastaliqUrdu-MM.plist ==============
INFO:fontmake.font_project:Building master UFOs and designspace from Glyphs source
INFO:glyphsLib:Parsing .glyphs file
INFO:glyphsLib:Casting parsed values
INFO:glyphsLib:Loading to UFOs
INFO:glyphsLib.util:Writing master_ufo/NotoNastaliqUrdu-Regular.ufo
INFO:glyphsLib.util:Writing master_ufo/NotoNastaliqUrdu-Bold.ufo
INFO:fontmake.font_project:Building interpolation-compatible TTFs
INFO:fontmake.font_project:Converting curves compatibly
Traceback (most recent call last):
File "/usr/local/bin/fontmake", line 9, in
load_entry_point('fontmake==1.2.7.dev0', 'console_scripts', 'fontmake')()
File "/usr/local/google/home/marekj/newrel/fontmake/Lib/fontmake/main.py", line 183, in main
project.run_from_glyphs(glyphs_path, **args)
File "/usr/local/google/home/marekj/newrel/fontmake/Lib/fontmake/font_project.py", line 378, in run_from_glyphs
designspace_path, instance_data=instance_data, **kwargs)
File "/usr/local/google/home/marekj/newrel/fontmake/Lib/fontmake/font_project.py", line 434, in run_from_designspace
interpolate_layout_from=interpolate_layout_from, **kwargs)
File "/usr/local/google/home/marekj/newrel/fontmake/Lib/fontmake/font_project.py", line 488, in run_from_ufos
ufos, reverse_direction, conversion_error, **kwargs)
File "/usr/local/google/home/marekj/newrel/fontmake/Lib/fontmake/font_project.py", line 204, in build_interpolatable_ttfs
conversion_error=conversion_error)
File "/usr/local/lib/python2.7/dist-packages/fontTools/misc/loggingTools.py", line 372, in wrapper
return func(*args, **kwds)
File "/usr/local/google/home/marekj/newrel/fontmake/Lib/fontmake/font_project.py", line 159, in convert_curves
reverse_direction=reverse_direction, dump_stats=True)
File "/usr/local/lib/python2.7/dist-packages/cu2qu/ufo.py", line 260, in fonts_to_quadratic
glyphs, cur_max_errors, reverse_direction, stats)
File "/usr/local/lib/python2.7/dist-packages/cu2qu/ufo.py", line 165, in glyphs_to_quadratic
raise IncompatibleGlyphsError(*glyphs)
cu2qu.ufo.IncompatibleGlyphsError: 'Noon'

source error, I'd say. The error is raised by cu2qu when converting masters "compatibly", when a glyph's contours are either different lengths (number of segments for each contour is different), or any of segments have different types (lines vs curve).

The Nastaliq Regular and Bold are not master compatible. They weren't intended to be. As far as I know this was the single exception in Noto due to the design and the fact that Nastaliq style doesn't lend itself very well to a bunch of different weights. Perhaps Regular and Bold shouldn't be in the same Glyphs file in this case, but it is kind of nice to have them in a single file. There could be a flag to say don't try interpolation, etc. for a situation like this.

I see.
I think for cases like these fontmake (or whomever down the pipeline is responsible for that, e.g. glyphsLib, mutatormath, etc.) should not try to interpolate instances whose location in the design space matches exactly one of the masters', but should simply use the master's outlines plus the rest of the instance data (e.g. the custom parameters) to build the final OTF.
Maybe mutatorMath should do that.

needless to say, if the masters are not compatible one cannot expect fontmake to produce a variable font. In the case of Noto Nastaliq Urdu the build script that calls fontmake should be changed so that it doesn't ask fontmake to also output a variable font, but only two non-variable Regular and Bold instances.

Fontmake 2.0.0's new Instantiator will not run anything through varLib if an instance location matches a master location.


Fix variable name

Change pss_rails_env to ingestion_app_rails_env
Causes an error due to the variable not being defined when run with defaults (without it being overridden).

:+1:


feat: add item group component

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/valentingavran/anglify/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Codecov Report

Merging #152 (fc0161d) into develop (a4708a4) will decrease coverage by 2.03%.
The diff coverage is 31.14%.

@@             Coverage Diff             @@
##           develop     #152      +/-   ##
===========================================
- Coverage    57.98%   55.94%   -2.04%
===========================================
  Files           45       46       +1
  Lines          764      824      +60
  Branches        79       90      +11
===========================================
+ Hits           443      461      +18
- Misses         308      350      +42
  Partials        13       13

Impacted Files
Coverage Δ

...ify/src/modules/item-group/item-group.component.ts
30.00% <30.00%> (ø)

...c/modules/common/directives/slot/slot.directive.ts
100.00% <100.00%> (ø)

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 a4708a4...fc0161d. Read the comment docs.


Doc

This PR adds information about the NEST Server kernel settings to the docs (and introduces also small optimizations to the structure of the Readme.md).

Removed the lines after simulate(...) as suggested.


[Tables] Support AAD Authentication

Adding support for Azure Active Directory (TokenCredential) authentication for Tables. Also improving the error handling on submitTransaction.
Fixes #15701

/azp run js - tables - ci

/azp run js - tables - ci


Projects API: qaChecksIgnorableCategories support

Crowdin Rest API now supports the qaChecksIgnorableCategories field on the Projects API.
This field allows you to retrieve the list of QA Check categories that can be ignored for a Crowdin project.
Affected API methods:

Add project (request schema)
Project settings response model
Edit Project (request schema)

It should be reflected in this API client and the corresponding unit tests should be updated.

@andrii-bodnar type of qaChecksIgnorableCategories is the same that of qaCheckCategories? Seems like props are the same

Also in docs I noticed new properties in qaCheckCategories model that are also exist in qaChecksIgnorableCategories But these props are not available in API client yet. Should we also add them?

Nice catch, these are new types that have been added recently, they should be reflected in the API client as well

Please provide the API methods as a reference, probably it's the same, but need to check additionally

It's Add Project method

type of qaChecksIgnorableCategories is the same that of qaCheckCategories? Seems like props are the same

yes, it's the same


Can't use multiple OAuth sources in same application: "Scheme already exists: Cookies"

If a Web app wants to offer an end user multiple choices for authentication, for example offering both a "Log in with Google" and a "Log in with GitHub" button, it would be nice if all they had to do was this:
let app = application {
    // ...
    use_google_oauth googleClientId googleClientSecret "/oauth_callback_google" []
    use_github_oauth githubClientId githubClientSecret "/oauth_callback_github" []
}

However, trying that results in a runtime error from ASP.Net Core:

System.InvalidOperationException: Scheme already exists: Cookies

The culprit is the following lines in OAuth.fs, found in both the use_google_oauth and use_github_oauth CE operations:
        s.AddAuthentication(fun cfg ->
          cfg.DefaultScheme <- CookieAuthenticationDefaults.AuthenticationScheme
          cfg.DefaultSignInScheme <- CookieAuthenticationDefaults.AuthenticationScheme
          cfg.DefaultChallengeScheme <- "Google")  // Or "GitHub"
         .AddCookie()
         .AddGoogle(fun opt ->  // Or ".AddGitHub"
           // ...

The only solution I've found so far is to ensure that .AddCookie() is only called once, no matter how many use_foo_oauth operations the library user puts in their application. For example, the following ugly hack worked for my test app, allowing both Google and GitHub authentication. Modify OAuth.fs to look like this:
module Saturn

open (lots of namespaces)

let mutable cookiesAlreadyAdded = false

type ApplicationBuilder with
    [<CustomOperation("use_google_oauth")>]
    member __.UseGoogleAuth(state: ApplicationState, clientId : string, clientSecret : string, callbackPath : string, jsonToClaimMap : (string * string) seq) =
      let middleware (app : IApplicationBuilder) =
        app.UseAuthentication()

      let service (s : IServiceCollection) =
        let b = s.AddAuthentication(fun cfg ->
          cfg.DefaultScheme <- CookieAuthenticationDefaults.AuthenticationScheme
          cfg.DefaultSignInScheme <- CookieAuthenticationDefaults.AuthenticationScheme
          cfg.DefaultChallengeScheme <- "Google")
        if not cookiesAlreadyAdded then
         b.AddCookie() |> ignore
         cookiesAlreadyAdded <- true
        b.AddGoogle(fun opt ->
          // Etc.
    // ...
    [<CustomOperation("use_github_oauth")>]
    member __.UseGithubAuth(state: ApplicationState, clientId : string, clientSecret : string, callbackPath : string, jsonToClaimMap : (string * string) seq) =
      let middleware (app : IApplicationBuilder) =
        app.UseAuthentication()

      let service (s : IServiceCollection) =
        let b = s.AddAuthentication(fun cfg ->
          cfg.DefaultScheme <- CookieAuthenticationDefaults.AuthenticationScheme
          cfg.DefaultSignInScheme <- CookieAuthenticationDefaults.AuthenticationScheme
          cfg.DefaultChallengeScheme <- "GitHub")
        if not cookiesAlreadyAdded then
         b.AddCookie() |> ignore
         cookiesAlreadyAdded <- true
        b.AddOAuth("GitHub", fun (opt : Authentication.OAuth.OAuthOptions) ->
          // Etc.

Another possible solution would involve keeping the cookiesAlreadyAdded flag in the CE state object somewhere, though that's not ideal either since it means that the ApplicationBuilder in Saturn would need to have a property that's only used by the Saturn.Extensions.Authentication package — not exactly a clean separation of concerns. I haven't found a solution that I'm 100% happy with yet, but at least I've been able to confirm that the ugly hack works.

.AddCookie() is also called in Application.fs (use_custom_oauth) so in this case it maybe be good idea to just add it to CE state.

... Huh, so it is. I had assumed that all OAuth-related operations had been moved to Saturn.Extensions.Authorization, but I see now that it's just the 3rd-party OAuth operations.
There's also use_cookies_authentication and use_cookies_authentication_with_config to consider. And https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie?view=aspnetcore-2.1&tabs=aspnetcore2x mentions "multiple instances of cookie authentication" as a possibility, so there's probably a better way to distinguish between the various .AddCookie() calls that I just didn't figure out in my limited testing. I did try .AddCookie("Google") and so on, but it's apparently more complicated than that and I don't understand Asp.Net Core well enough (yet) to figure out the right approach.

@rmunn of course multiple cookies are possible but not desired in this case, you don't want a cookie per social integration, you want the current login to overwrite the previous login cookie/state. So one service registration for an 'application' cookie is enough.
Example of when you want/need multiple cookies https://github.com/aspnet/Identity/blob/c7276ce2f76312ddd7fccad6e399da96b9f6fae1/src/Identity/IdentityServiceCollectionExtensions.cs#L51

I think that default behavior should assume that user wants only one cookie - that's what should happen in most cases. Fixed in https://github.com/SaturnFramework/Saturn/commit/d91aff34b78904a32e0c62db5b38fe86f09fe75f


AttributeError: 'module' object has no attribute 'distance'

I have installed photohash using pip and when try to run photohash.distance() on two image, I found below error.
distance(image_path, other_image_path)
Throw error like:
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'distance'

Crap, I'm sorry @urwithajit9 , it looks like the main init.py wasn't importing the distance method, I fixed that and pushed it out as version 0.4.1 and it looks like it should fix your issue:
$ pip install photohash==0.4.1
Downloading/unpacking photohash==0.4.1
  Downloading Photohash-0.4.1.tar.gz
  ...
Successfully installed photohash
Cleaning up...
$ python
Python 2.7.10 (default, Jul 30 2016, 18:31:42)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import photohash
>>> photohash.distance
<function distance at 0x106d5e848>

Let me know if you have more issues with this. If for some reason you can't update to 0.4.1, you should be able to use 0.4.0 by doing:
import photohash
photohash.photohash.distance(...)

Fixed by: https://github.com/bunchesofdonald/photohash/commit/1839a37a884e8c31cb94e661bd76f8125b0dfcb6


Update updates page for dcp34

New projects (15):

A Single-Cell Transcriptome Atlas of the Human Pancreas.
Identification of neural oscillations and epileptiform changes in human brain organoids.
Multi-scale spatial mapping of cell populations across anatomical sites in healthy human skin and basal cell carcinoma
Proliferating SPP1/MERTK-expressing macrophages in idiopathic pulmonary fibrosis
Single Cell Multiome Atlas of the Human Fetal Retina
Single-cell RNA sequencing reveals markers of disease progression in primary cutaneous T-cell lymphoma
Single-cell analysis reveals innate lymphoid cell lineage infidelity in atopic dermatitis
Single-cell landscape of bronchoalveolar immune cells in patients with COVID-19
Single-cell transcriptomics combined with interstitial fluid proteomics defines cell type-specific immune regulation in atopic dermatitis.
Single-cell transcriptomics provides insights into hypertrophic cardiomyopathy
Single-cell transcriptomics reveals distinct effector profiles of infiltrating T cells in lupus skin and kidney
Single-nucleus profiling of human dilated and hypertrophic cardiomyopathy
Spatially resolved multiomics of human cardiac niches
The serine proteases dipeptidyl-peptidase 4 and urokinase are key molecules in human and mouse scar formation
Transcriptional and Cellular Diversity of the Human Heart

Updated Projects (26):

Ischaemic sensitivity of human tissue by single cell RNA seq
A Single-Cell Atlas of the Human Healthy Airways
A cellular census of human lungs identifies novel cell states in health and in asthma
A single-cell transcriptome atlas of the adult human retina
A spatially resolved atlas of the human lung characterizes a gland-associated immune niche
Airspace Macrophages and Monocytes Exist in Transcriptionally Distinct Subsets in Healthy Adults
An Optimized Tissue Dissociation Protocol for Single-Cell RNA Sequencing Analysis of Fresh and Cultured Human Skin Biopsies
Cryopreservation and post-thaw characterization of dissociated human islet cells
Dissecting the cellular specificity of smoking effects and reconstructing lineages in the human airway epithelium
Human prefrontal cortex gene regulatory dynamics from gestation to adulthood at single-cell resolution
Identification of a unique subset of tissue-resident memory CD4+ T cells in Crohn’s disease
Integrative analysis of cell state changes in lung fibrosis with peripheral protein biomarkers
Pro-inflammatory T helper 17 directly harms oligodendrocytes in neuroinflammation
SARS‐CoV‐2 receptor ACE2 and TMPRSS2 are primarily expressed in bronchial transient secretory cells
Single Cell RNA-seq reveals ectopic and aberrant lung resident cell populations in Idiopathic Pulmonary Fibrosis
Single-Cell Transcriptome and Downstream Analyses of Human Stomach Reveal the Cell Diversity and Developmental Features of Gastric and Metaplastic Mucosae
Single-Cell Transcriptomic Analysis Identifies a Unique Pulmonary Lymphangioleiomyomatosis Cell
Single-Cell Transcriptomic Analysis of Human Lung Provides Insights into the Pathobiology of Pulmonary Fibrosis.
Single-cell RNA-sequencing reveals profibrotic roles of distinct epithelial and mesenchymal lineages in pulmonary fibrosis
Single-cell Transcriptome Atlas of the Human Corpus Cavernosum
Single-cell and single-nucleus RNA-seq uncovers shared and distinct axes of variation in dorsal LGN neurons in mice, non-human primates, and humans.
Single-cell transcriptomics reveals unique features of human pancreatic islet cell subtypes
Spatio-temporal immune zonation of the human kidney
The Immune Atlas of Human Deciduas With Unexplained Recurrent Pregnancy Loss
The local and systemic response to SARS-CoV-2 infection in children and adults
Transcriptional analysis of cystic fibrosis airways at single-cell resolution reveals altered epithelial cell states and composition

Complete


Readme image - error 404

Hi,
Just reporting that the link to the image in the readme is broken:
https://github.com/NLNOG/irrexplorer/blob/main/README.md?plain=1#L3
[![CI](https://circleci.com/gh/dashcare/irrexplorer.svg?style=svg)](https://circleci.com/gh/dashcare/irrexplorer)

% curl -s 'https://circleci.com/gh/dashcare/irrexplorer.svg?style=svg'
Project not found%

% wget https://circleci.com/gh/dashcare/irrexplorer.svg?style=svg
zsh: no matches found: https://circleci.com/gh/dashcare/irrexplorer.svg?style=svg
(venv) tfgoncalves@Tiagos-MacBook-Pro peering_gossip % wget 'https://circleci.com/gh/dashcare/irrexplorer.svg?style=svg'
--2023-06-12 23:46:54--  https://circleci.com/gh/dashcare/irrexplorer.svg?style=svg
Resolving circleci.com (circleci.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to circleci.com (circleci.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-06-12 23:46:54 ERROR 404: Not Found.

Thanks!

Thanks for reporting this!


Unhandled exception in script

I force-quit the program while running Buzz once, and this happens when I double-click to run Buzz again. I uninstalled and reinstalled Buzzx and still have this problem. How do I deal with this?

And my computer has Windows 10 version 1607 and OS version 14393.5850.

Please try deleting the cache.txt file at C:\Users\<username>\AppData\Local\Buzz\Buzz\Cache. Note that this will delete your transcriptions that have not yet been exported.

Thanks


proposal: Add frame, value decorators

When I worked on GDB I came to feel that GDB was made so that GDB developers could debug GDB. This was how it was for a long time. But when we added with the Python API to GDB, along with Pretty Printing, frame decorators and filters, we handed back data representation  to the user. Don't like how we print this object? Well, here's an API, and the ability to write your own, and hooks back into the display component to write your own representation.  What parts of an object or value are important to the developer? It's going to depend on what that developer is trying to solve. So the default GDB information displays were, I think, more or less dependent on the feature implementor: usually what a GDB developer wanted to see when debugging their project (GDB).
So I know this is a super wishy washy proposal right now. But every value printed, every stack frame annotated, every backtrace printed, and so on, should first be offered to any extensions that want to work on them. That way a user can display any value they way they want to display it. If they don't care, well, they'll get the default version. Hopefully I've painted a rough picture of what I would love to see. Any more details, please ask! And if I can find some time, I hope to start putting some patches together.

I'm not the project's maintainer, so don't take my words as a commitment.
But the project has implemented certain features with extensibility in mind. For example, each frame/backtrace is processed with a frame formatter method. In the future this can be easily extracted for extensions to add a custom layer.
With that being said, the project is still at a very early stage (hasn't reached 1.0 yet!). So this may take a bit longer to happen.

To design the extensible API, we need to know

what should we show
how to show

From the technology side, there are several difficulties to support ractors and remote debugging. Maybe we can provide such APIs, but not super simple.


[CELEBORN-666][FOLLOWUP] Rename all RPC blacklist fields

What changes were proposed in this pull request?
In this pr, we rename all RPC blacklist fields,  it won't have have compatibility issues.
For RPC GetBlacklist and GetBlacklistResponse we won't change it, since it won't be used in next release, so we can remove these two RPC in next release.
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?

@pan3793 @waitinfuture

Merged to main/0.3


Upgrade Scaleway cli to 2.12.0

@jawher can we get that merged? I've been waiting for this upgrade :)

@mmaryo Thank you for your contribution ❤
@d8x merged and tagged a new version https://github.com/jawher/action-scw/releases/tag/v2.12.0 👍


ComplEx is different from original paper?

I noticed that the implement of ComplEx and other methods are little bit different from original papers.
For example, you use BatchNorm and dropout in the code, does the original algorithm also use BatchNorm and dropout?
head = self.bn0(head)
head = self.ent_dropout(head)
relation = self.rel_dropout(relation)

Yes, we used the code made available by the TuckER authors. However, this isn't necessary, and you can also use libKGE to train embeddings. Just make sure to not use batch norm in that case.


Extract field definition things from objectType.ts

Pull Request Test Coverage Report for Build 433586763

37 of 39 (94.87%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.08%) to 93.466%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/protoc-gen-nexus/src/dslgen/field.ts
28
30
93.33%

Totals

Change from base Build 433546354:
0.08%

Covered Lines:
361

Relevant Lines:
374

💛  - Coveralls


Remove defaults from instances

Default values are causing the check for null later on to not behave as expected.
Description
Remove the default values. SQLCMD queries fail with them in place if values are not supplied.
Related Issue
This project only accepts pull requests related to open issues.

If suggesting a new feature or change, please discuss it in an issue first.
If fixing a bug, there should be an issue describing it with steps to reproduce

Please link to the issue here
Motivation and Context
Why is this change required? What problem does it solve?
How Has This Been Tested?

Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code, etc.

Screenshots (if appropriate):
Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[x ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:
Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

[ x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTION document.
[ ] I have updated the CHANGELOG file accordingly for the version that this merge modifies.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Do you have information as to the original issue? I did not see an issue recorded to support this PR. Do you have any information on how to reproduce the problem? I would like to understand the issue and determine if we need additional changes beyond what you have submitted.


chore: jsonfmt billing

Ran jsonfmt -w "specification/billing/**/*.json"

Automation for azure-sdk-for-python

Automation for azure-sdk-for-java

Automation for azure-sdk-for-js

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-go

Can one of the admins verify this patch?


🧑💻: Contributor Section New Features

:red_circle: Title :  Contributor Section
:red_circle: Enhancement Aim : We can add button to the contributor profile picture in the contributor section so when any user clicked to the user profile they will be redirected to the contributor github profile.
:red_circle: Changes :
Screenshots 📷

:white_check_mark: To be Mentioned while taking the issue :

Full name :  Kamal Sing Bhumij
What is your participant role? GSSOC 2024, Hacktoberfest 2024

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Already present


Add unit test for the RecommendCluster call

Original test was deleted due to it's hight complexity.
A cleaner approach is needed in order to keep the maintainability and focus on this very method.

Fixed by #b0267ace0d30f1803750cbc9adf309cbf4493905


new mode: world-editor

open in task, back button, world view

this will take some time to build

most of it is done


Floating error - secp256k1N.sub(...).toBuffer is not a function

https://github.com/odanado/aws-kms-provider/blob/f686cfd347c6910c1993a709057889686306efbb/aws-kms-packages/aws-kms-signer/src/signature.ts#L31
Hello, I am using this package while AWS KMS implementation. It works great most of time, but sometimes I get error "TypeError: secp256k1N.sub(...).toBuffer is not a function". I investigated a bit and found, that it occurs in this place. The error is floating because sometimes I get this error 3 times in a row, sometimes I get successful tx 5 times in a row. It may fail on first transaction, may fail after 10sec, 1 minute.
The same floating error while using eth.sendTransaction as in example.
const receipt = await web3.eth.sendTransaction({
      from: FROM_ADDRESS,
      _receiver
    });

Please see screenshots attached for more info. Looking forward hearing from you & willing to assist to resolve it.

@VanijaDev Thank you for a reporting.
From that screenshot it looks like you are running aws-kms-provider in your browser. So I have a few questions.

What is your browser type and version?
What is the type and version of Web Framework?
In which case does this error occur, SSR or CSR?

Hi,

Google Chrome Version 99.0.4844.83 (Official Build) (x86_64)

I don’t use any frameworks. HTML + JS, it’s for testing only

Thanks for the additional info!
Maybe, this bug is related to https://github.com/indutny/bn.js/issues/263.
I will release a version with the bug fixed in a few days.

@VanijaDev
I fixed this issue at<EMAIL_ADDRESS>


I have a "build failed" problem

Thank you very much if you can help me solve this problem！
Error message：
✖ [267/528] Building Batteries.Data.List.Basic
trace: .> LEAN_PATH=././.lake/packages/batteries/.lake/build/lib:././.lake/packages/Qq/.lake/build/lib:././.lake/packages/aesop/.lake/build/lib:././.lake/packages/proofwidgets/.lake/build/lib:././.lake/packages/Cli/.lake/build/lib:././.lake/packages/importGraph/.lake/build/lib:././.lake/packages/LeanSearchClient/.lake/build/lib:././.lake/packages/mathlib/.lake/build/lib:././.lake/packages/LeanCopilot/.lake/build/lib:././.lake/build/lib DYLD_LIBRARY_PATH=././.lake/packages/batteries/.lake/build/lib:././.lake/packages/Qq/.lake/build/lib:././.lake/packages/aesop/.lake/build/lib:././.lake/packages/proofwidgets/.lake/build/lib:././.lake/packages/Cli/.lake/build/lib:././.lake/packages/importGraph/.lake/build/lib:././.lake/packages/LeanSearchClient/.lake/build/lib:././.lake/packages/mathlib/.lake/build/lib:././.lake/packages/LeanCopilot/.lake/build/lib:././.lake/build/lib:/Users/yuchen/.elan/toolchains/leanprover--lean4---v4.11.0/lib/lean:/Users/yuchen/.elan/toolchains/leanprover--lean4---v4.11.0/lib /Users/yuchen/.elan/toolchains/leanprover--lean4---v4.11.0/bin/lean -Dlinter.missingDocs=true ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean -R ././.lake/packages/batteries/./. -o ././.lake/packages/batteries/.lake/build/lib/Batteries/Data/List/Basic.olean -i ././.lake/packages/batteries/.lake/build/lib/Batteries/Data/List/Basic.ilean -c ././.lake/packages/batteries/.lake/build/ir/Batteries/Data/List/Basic.c --json
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:534:19: unsolved goals
α : Type u_1
l : List α
L : List (List α)
h : l.isEmpty = true ∨ L.any isEmpty = true
⊢ (L.sections.bind fun s => []) = []
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:542:6: unknown constant 'Array.foldl_eq_foldl_toList'
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:542:6: tactic 'rewrite' failed, equality or iff proof expected
?m.48353
case h.h.false.cons
α : Type u_1
l : List α
L : List (List α)
IH : L.sections = (foldr sectionsTR.go #[[]] L).data
⊢ ((foldr sectionsTR.go #[[]] L).data.bind fun s => map (fun a => a :: s) l) =
(Array.foldl (fun acc' l' => foldl (fun acc' a => acc'.push (a :: l')) acc' l) #[]
(foldr sectionsTR.go #[[]] L)).data
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:580:6: unknown constant 'Array.foldl_toList_eq_bind'
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:580:6: tactic 'rewrite' failed, equality or iff proof expected
?m.49271
case h.h.h.h
α : Type u_2
β : Type u_1
l₁ : List α
l₂ : List β
⊢ (l₁.bind fun a => map (Prod.mk a) l₂) = (foldl (fun acc a => foldl (fun acc b => acc.push (a, b)) acc l₂) #[] l₁).data
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:596:6: unknown constant 'Array.foldl_toList_eq_bind'
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:596:6: tactic 'rewrite' failed, equality or iff proof expected
?m.49853
case h.h.h.h
α : Type u_2
β : α → Type u_1
l₁ : List α
l₂ : (a : α) → List (β a)
⊢ (l₁.bind fun a => map (Sigma.mk a) (l₂ a)) =
(foldl (fun acc a => foldl (fun acc b => acc.push ⟨a, b⟩) acc (l₂ a)) #[] l₁).data
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:696:18: unknown constant 'List.splitAt'
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:805:44: unknown constant 'Array.foldl_toList_eq_map'
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:805:16: unsolved goals
α : Type u_3
β : Type u_2
γ : Type u_1
f : α → Option β → γ
as : List α
bs : List β
acc : Array γ
head✝ : α
tail✝ : List α
⊢ (foldl (fun acc a => acc.push (f a none)) (acc.push (f head✝ none)) tail✝).data =
acc.data ++ f head✝ none :: map (fun a => f a none) tail✝
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:874:43: unknown constant 'Array.foldl_toList_eq_map'
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:874:16: unsolved goals
α : Type u_3
β : Type u_2
γ : Type u_1
f : α → Option β → γ
as : List α
bs : List β
acc : Array γ
head✝ : α
tail✝ : List α
⊢ (foldl (fun acc a => acc.push (f a none)) (acc.push (f head✝ none)) tail✝).data =
acc.data ++ f head✝ none :: map (fun a => f a none) tail✝
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:971:22: invalid field 'splitAt', the environment does not contain 'List.splitAt'
xs
has type
List α
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:982:22: invalid field 'splitAt', the environment does not contain 'List.splitAt'
xs
has type
List α
warning: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:989:17: declaration uses 'sorry'
warning: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:989:17: declaration uses 'sorry'
warning: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:987:10: declaration uses 'sorry'
warning: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:990:4: unused variable n
note: this linter can be disabled with set_option linter.unusedVariables false
warning: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:990:11: unused variable xs
note: this linter can be disabled with set_option linter.unusedVariables false
warning: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:1098:13: unused variable l₁
note: this linter can be disabled with set_option linter.unusedVariables false
warning: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:1098:16: unused variable l₂
note: this linter can be disabled with set_option linter.unusedVariables false
error: ././.lake/packages/batteries/././Batteries/Data/List/Basic.lean:1098:46: expected token
error: Lean exited with code 1
Some required builds logged failures:

Batteries.Classes.SatisfiesM
Aesop.Script.GoalWithMVars
Aesop.RuleTac.FVarIdSubst
Aesop.Script.OptimizeSyntax
Batteries.Lean.HashSet
Batteries.Lean.Meta.Inaccessible
Aesop.Util.EqualUpToIds
Batteries.Linter.UnreachableTactic
Batteries.Tactic.Lint.Misc
Batteries.Data.Nat.Lemmas
Aesop.Util.UnorderedArraySet
Batteries.Data.List.Basic
error: build failed

My lean version：4.11.0
require LeanCopilot from git "https://github.com/lean-dojo/LeanCopilot.git" @ "v1.6.0"

oh, sorry, I think this is also related to mathlib, it will be automatically updated to 4.13.0-rc3 when I update. Seems to have similar problems already

I just updated LeanCopilot to support v4.14.0 and v4.15.0-rc1. Can you try again and see if the issue still persists?


Improve behavior of Viewport.zoomToElements...

...for lines and points in perspective views by adding the option to impose minimum element-aligned bounding box extents.
Team working on crack detection noticed that zoomToElements was not working well for them in perspective views as cracks would often be clipped by the front plane and the option to specify a margin isn't supported. Cracks are represented by geometric elements with a single line segment in their geometry stream. Added an option to ensure minimum element-aligned bounding box extents so that lines and points have a proper volume.

@aruniverse fyi


Require edit privilege to perform structured file import

[x] joeferner
[x] mwizeman joeybrk372 jharwig sfeng88

CHANGELOG
Fixed: Users without edit privileges could still import structured files.

LGTM


fix test on PR on v2 branch

I think we can close this issue I have added the test in https://github.com/openshift/release/pull/26125, and tests are working on PRs (e.g  https://github.com/redhat-developer/odo/pull/5469, #5475)
/close


Endpoint files are being loaded by the browser

Qwik Version
0.10.0
Operating System (or Browser)
macOS 12.0.1, Chrome 105.0.5195.125
Node Version (if applicable)
v16.2.0
Which component is affected?
Qwik City
Expected Behaviour
A file ending in .ts should not be downloaded at all as this is not a component. See docs
Actual Behaviour
When navigating, endpoint files are being downloaded by the browser even if they aren't referenced elsewhere in the code.
This can cause apps to break if they run code outside of the endpoint function, and of course other implications if the files load on production.
Additional Information
Recreate the issue
Create a new project and add a file under routes/foo/index.ts with the following code, then navigate to a new page:
import { RequestHandler } from<EMAIL_ADDRESS>import { isServer } from<EMAIL_ADDRESS>
// This could be sensitive code or initialization code that is incompatible with browsers
if (!isServer) {
  throw new Error('This file has been exposed to the browser');
}

export const onPost: RequestHandler<string> = () => {
  return '';
};

Yes looks like it, thanks @vampyr09. Closing this issue


Version 20.10.x gives a "zipfile.BadZipfile: File is not a zip file" when running "python bootstrap-buildout.py"

How to test:
Download
https://bootstrap.pypa.io/bootstrap-buildout.py
Run
python bootstrap-buildout.py
You get
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-20.10.1.zip
Extracting in /tmp/tmpIKldPD
Traceback (most recent call last):
  File "bootstrap-buildout.py", line 117, in <module>
    ez['use_setuptools'](**setup_args)
  File "<string>", line 173, in use_setuptools
  File "<string>", line 124, in _do_download
  File "<string>", line 64, in _build_egg
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "<string>", line 103, in archive_context
  File "/usr/lib/python2.7/zipfile.py", line 714, in __init__
    self._GetContents()
  File "/usr/lib/python2.7/zipfile.py", line 748, in _GetContents
    self._RealGetContents()
  File "/usr/lib/python2.7/zipfile.py", line 763, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

You get the same error with 20.10.0.
python bootstrap-buildout.py --setuptools-version=20.10.0
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-20.10.0.zip
Extracting in /tmp/tmp6G6ZVT
Traceback (most recent call last):
  File "bootstrap-buildout.py", line 117, in <module>
    ez['use_setuptools'](**setup_args)
  File "<string>", line 173, in use_setuptools
  File "<string>", line 124, in _do_download
  File "<string>", line 64, in _build_egg
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "<string>", line 103, in archive_context
  File "/usr/lib/python2.7/zipfile.py", line 714, in __init__
    self._GetContents()
  File "/usr/lib/python2.7/zipfile.py", line 748, in _GetContents
    self._RealGetContents()
  File "/usr/lib/python2.7/zipfile.py", line 763, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

20.9.0 works fine, so this bug was introduced in 20.10.x.
python bootstrap-buildout.py --setuptools-version=20.9.0
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-20.9.0.zip
Extracting in /tmp/tmpXrDIjV
Now working in /tmp/tmpXrDIjV/setuptools-20.9.0
Building a Setuptools egg in /tmp/bootstrap-OVHpkN
warning: no files found matching '*' under directory 'setuptools/_vendor'
warning: no files found matching '*.txt'
/tmp/bootstrap-OVHpkN/setuptools-20.9.0-py2.7.egg

The same, breaks Vagrant/Puppet installation:
wget https://bootstrap.pypa.io/ez_setup.py -O /.puphpet-stuff/ez_setup.py && python /.puphpet-stuff/ez_setup.py
--2016-04-25 15:46:44--  https://bootstrap.pypa.io/ez_setup.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... <IP_ADDRESS>
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12059 (12K) [text/x-python]
Saving to: ‘/.puphpet-stuff/ez_setup.py’

100%[====================================================================================================================================================================================================>] 12,059      --.-K/s   in 0s

2016-04-25 15:46:44 (77.5 MB/s) - ‘/.puphpet-stuff/ez_setup.py’ saved [12059/12059]

Extracting in /tmp/tmp32iyZh
Traceback (most recent call last):
  File "/.puphpet-stuff/ez_setup.py", line 415, in <module>
    sys.exit(main())
  File "/.puphpet-stuff/ez_setup.py", line 412, in main
    return _install(archive, _build_install_args(options))
  File "/.puphpet-stuff/ez_setup.py", line 52, in _install
    with archive_context(archive_filename):
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/.puphpet-stuff/ez_setup.py", line 103, in archive_context
    with ContextualZipFile(filename) as archive:
  File "/.puphpet-stuff/ez_setup.py", line 87, in __new__
    return zipfile.ZipFile(*args, **kwargs)
  File "/usr/lib/python2.7/zipfile.py", line 770, in __init__
    self._RealGetContents()
  File "/usr/lib/python2.7/zipfile.py", line 811, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

I just hit the same "File is not a zip file" error by simply downloading ez_setup.py from the official recommended source and running it

Seems that the problem is: https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package and ez_setup has the old pypi URL format hard-coded....
(He use https://pypi.python.org/pypi/setuptools/json to get last version but not right URLs :-(  )

@jaraco Do you have any idea if it's possible to add a test case in setuptools for this situation?

@cyrilgdn Indeed, the xml invalid response from the url comes as a 313 bytes zip file. Try https://pypi.python.org/packages/source/s/setuptools/setuptools-20.10.1.zip and you get
<Error>
NoSuchKey
<Message>The specified key does not exist.</Message>
<Key>source/s/setuptools/setuptools-20.10.1.zip</Key>
<RequestId>DAC65125FC40ADDB</RequestId>
<HostId>NqleAbKasjoaBoOZhowtOhluWuTzEgiZZ0HIbREPxqq9wxn6VbbdT0P5r+okwXAk4lzIq597yFA=</HostId>
</Error>

https://pypi.python.org/packages/source/s/setuptools/setuptools-20.9.0.zip works.
@dstufft if possible, any news for https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package#comment-27245473?
@jaraco would it be the case to add a _resolve_setuptools_url_download like we have _resolve_version in ez_setup.py?

There's a pull request if someone would review it please.

+1

Can we safely use pypi.io in the state it's now, in pre-production? As of now, we have these statistics for setuptools:
Downloads (All Versions):
581 downloads in the last day
1173985 downloads in the last week
5004041 downloads in the last month

Is pypi.io able to handle the load? I'm not into PYPI 2.0 project so I don't have clues about that.
IMHO, I would like to have the fix done for pypi.io in https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package#comment-27243225 in pypi.python.org as well, but don't know if it's possible. @dstufft is it possible/feasible? Is this workaround temporary? If so, for how long?

Even with the proposed fix it's failing because after curl follows the redirect it gets back this instead of the zip file:

503 Backend is unhealthy

Error 503 Backend is unhealthy
Backend is unhealthy
Guru Mediation:
Details: cache-sea1920-SEA<PHONE_NUMBER><PHONE_NUMBER>

Varnish cache server

Folks, my PR fixes this.
It used pypi.io and it adds the --location option to curl.

Even with --location there is still a problem, after following the redirect curl gets "503 backend is unhealthy"

Can you post the full output of curl -I -L https://pypi.io/packages/source/s/setuptools/setuptools-20.10.1.zip?

HTTP/1.1 307 Temporary Redirect
Location: https://pypi.io/packages/86/ee/622e83b0dbede6d48891ed209fa5ca83fcc485f9b6696cf56796eda40806/setuptools-20.10.1.zip
Content-Security-Policy: base-uri 'self'; block-all-mixed-content; connect-src 'self'; default-src 'none'; font-src 'self' fonts.gstatic.com; form-action 'self'; frame-ancestors 'none'; frame-src 'none'; img-src 'self' https://warehouse-camo.herokuapp.com/ https://secure.gravatar.com; referrer origin-when-cross-origin; reflected-xss block; script-src 'self'; style-src 'self' fonts.googleapis.com
Content-Type: text/html; charset=UTF-8
Fastly-Debug-Digest: f818a9d273c74b910043cc2618e95042641febdc6f083cba11f0c22d331d72b5
Content-Length: 298
Accept-Ranges: bytes
Date: Mon, 25 Apr 2016 23:05:44 GMT
Connection: keep-alive
X-Served-By: cache-iad2141-IAD, cache-sea1920-SEA
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1461625543.980358,VS0,VE123
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Permitted-Cross-Domain-Policies: none
HTTP/1.1 503 Backend is unhealthy
Retry-After: 0
Content-Type: text/html; charset=utf-8
Content-Length: 454
Accept-Ranges: bytes
Date: Mon, 25 Apr 2016 23:05:44 GMT
Connection: keep-alive
X-Served-By: cache-sea1920-SEA
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1461625544.111357,VS0,VE1
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Permitted-Cross-Domain-Policies: none

I will try to merge the PR and update the bootstrap bookmark.

@AltxSF Sorry, can you do that one more time with a -v added to it as well?

Hostname was NOT found in DNS cache
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying <IP_ADDRESS>...
Connected to pypi.io (<IP_ADDRESS>) port 443 (#0)
successfully set certificate verify locations:
CAfile: none
CApath: /etc/ssl/certs
SSLv3, TLS handshake, Client hello (1):
} [data not shown]
SSLv3, TLS handshake, Server hello (2):
{ [data not shown]
SSLv3, TLS handshake, CERT (11):
{ [data not shown]
SSLv3, TLS handshake, Server key exchange (12):
{ [data not shown]
SSLv3, TLS handshake, Server finished (14):
{ [data not shown]
SSLv3, TLS handshake, Client key exchange (16):
} [data not shown]
SSLv3, TLS change cipher, Client hello (1):
} [data not shown]
SSLv3, TLS handshake, Finished (20):
} [data not shown]
SSLv3, TLS change cipher, Client hello (1):
{ [data not shown]
SSLv3, TLS handshake, Finished (20):
{ [data not shown]
SSL connection using ECDHE-RSA-AES128-GCM-SHA256
Server certificate:
subject: businessCategory=Private Organization; <IP_ADDRESS>.4.1.3<IP_ADDRESS>.3=US; <IP_ADDRESS>.4.1.3<IP_ADDRESS>.2=Delaware; serialNumber=3359300; street=16 Allen Rd; postalCode=03894-4801; C=US; ST=NH; L=Wolfeboro,; O=Python Software Foundation; CN=www.python.org
start date: 2014-09-05 00:00:00 GMT
expire date: 2016-09-09 12:00:00 GMT
subjectAltName: pypi.io matched
issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 Extended Validation Server CA
SSL certificate verify ok.

HEAD /packages/source/s/setuptools/setuptools-20.10.1.zip HTTP/1.1
User-Agent: curl/7.35.0
Host: pypi.io
Accept: /

< HTTP/1.1 307 Temporary Redirect
< Location: https://pypi.io/packages/86/ee/622e83b0dbede6d48891ed209fa5ca83fcc485f9b6696cf56796eda40806/setuptools-20.10.1.zip
< Content-Security-Policy: base-uri 'self'; block-all-mixed-content; connect-src 'self'; default-src 'none'; font-src 'self' fonts.gstatic.com; form-action 'self'; frame-ancestors 'none'; frame-src 'none'; img-src 'self' https://warehouse-camo.herokuapp.com/ https://secure.gravatar.com; referrer origin-when-cross-origin; reflected-xss block; script-src 'self'; style-src 'self' fonts.googleapis.com
< Content-Type: text/html; charset=UTF-8
< Fastly-Debug-Digest: f818a9d273c74b910043cc2618e95042641febdc6f083cba11f0c22d331d72b5
< Content-Length: 298
< Accept-Ranges: bytes
< Date: Mon, 25 Apr 2016 23:12:29 GMT
< Connection: keep-alive
< X-Served-By: cache-iad2149-IAD, cache-sea1921-SEA
< X-Cache: MISS, MISS
< X-Cache-Hits: 0, 0
< X-Timer: S1461625949.136318,VS0,VE98
< Vary: Accept-Encoding
< Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
< X-Frame-Options: deny
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Permitted-Cross-Domain-Policies: none
<
0   298    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

Connection #0 to host pypi.io left intact
Issue another request to this URL: 'https://pypi.io/packages/86/ee/622e83b0dbede6d48891ed209fa5ca83fcc485f9b6696cf56796eda40806/setuptools-20.10.1.zip'
Found bundle for host pypi.io: 0xad69c0
Re-using existing connection! (#0) with host pypi.io
Connected to pypi.io (<IP_ADDRESS>) port 443 (#0)

HEAD /packages/86/ee/622e83b0dbede6d48891ed209fa5ca83fcc485f9b6696cf56796eda40806/setuptools-20.10.1.zip HTTP/1.1
User-Agent: curl/7.35.0
Host: pypi.io
Accept: /

< HTTP/1.1 503 Backend is unhealthy
< Retry-After: 0
< Content-Type: text/html; charset=utf-8
< Content-Length: 454
< Accept-Ranges: bytes
< Date: Mon, 25 Apr 2016 23:12:29 GMT
< Connection: keep-alive
< X-Served-By: cache-sea1921-SEA
< X-Cache: MISS
< X-Cache-Hits: 0
< X-Timer: S1461625949.243171,VS0,VE0
< Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
< X-Frame-Options: deny
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Permitted-Cross-Domain-Policies: none
<
0   454    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

Connection #0 to host pypi.io left intact
HTTP/1.1 307 Temporary Redirect
Location: https://pypi.io/packages/86/ee/622e83b0dbede6d48891ed209fa5ca83fcc485f9b6696cf56796eda40806/setuptools-20.10.1.zip
Content-Security-Policy: base-uri 'self'; block-all-mixed-content; connect-src 'self'; default-src 'none'; font-src 'self' fonts.gstatic.com; form-action 'self'; frame-ancestors 'none'; frame-src 'none'; img-src 'self' https://warehouse-camo.herokuapp.com/ https://secure.gravatar.com; referrer origin-when-cross-origin; reflected-xss block; script-src 'self'; style-src 'self' fonts.googleapis.com
Content-Type: text/html; charset=UTF-8
Fastly-Debug-Digest: f818a9d273c74b910043cc2618e95042641febdc6f083cba11f0c22d331d72b5
Content-Length: 298
Accept-Ranges: bytes
Date: Mon, 25 Apr 2016 23:12:29 GMT
Connection: keep-alive
X-Served-By: cache-iad2149-IAD, cache-sea1921-SEA
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1461625949.136318,VS0,VE98
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Permitted-Cross-Domain-Policies: none

HTTP/1.1 503 Backend is unhealthy
Retry-After: 0
Content-Type: text/html; charset=utf-8
Content-Length: 454
Accept-Ranges: bytes
Date: Mon, 25 Apr 2016 23:12:29 GMT
Connection: keep-alive
X-Served-By: cache-sea1921-SEA
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1461625949.243171,VS0,VE0
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Permitted-Cross-Domain-Policies: none

@AltxSF Try it now and see if it works.

yes, it works now.

Ok good, misconfiguration in the CDN. Sorry about that!

@dstufft I might be missing something. What exactly do I need to bypass the error. I ran
curl https://bootstrap.pypa.io/ez_setup.py -o - | python and same error persists

@ewang320, try curl https://bootstrap.pypa.io/ez_setup.py -o - | sed -s "/^DEFAULT_VERSION/ { s/LATEST/'20.9.0'/ }" | python as a temporary fix

@ewang320 try curl https://bootstrap.pypa.io/ez_setup.py -o - | python - --version=20.9.0

I've merged the pull requests for the bootstrap script. Please report back if that doesn't correct the issue.

Sorry, I'm still getting the same error.
Downloaded ez_setup from here, but still get:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 807, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

Is that the full traceback?
Do you have curl or wget installed?

Sorry. Full output is here:
%> python ez_setup.py
Extracting in /var/folders/5f/zvqgl88j47zbqzcydcncpzz8nvzfxy/T/tmpQjnOme
Traceback (most recent call last):
  File "ez_setup.py", line 415, in <module>
    sys.exit(main())
  File "ez_setup.py", line 412, in main
    return _install(archive, _build_install_args(options))
  File "ez_setup.py", line 52, in _install
    with archive_context(archive_filename):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "ez_setup.py", line 103, in archive_context
    with ContextualZipFile(filename) as archive:
  File "ez_setup.py", line 87, in __new__
    return zipfile.ZipFile(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 766, in __init__
    self._RealGetContents()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 807, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

Also, I have used the suggested curl to get v.20.9 so I'm moving on in the meanwhile, but will try and get 20.10 asap. Thanks

@FrancescoRizzi, I think the issue might be that you have a bad download locally. If ez_setup.py finds a local copy, it doesn't attempt to download it again. If you remove the local (probably small) zip file and re-run the script, I expect it will work. I've tested the latest bootstrap script on OS X and Ubuntu (with and without curl) and the download executes normally as expected.

In #562, I also confirmed the fix works for Windows.

@jaraco When we use bootstrap-buildout.py, and there's a bad download locally, it doesn't matter because setuptools is always downloaded: if you want to use a local copy, you need to explicitly call
python bootstrap-buildout.py --setuptools-to-dir=.
Shouldn't we have the same behavior in ez_setup.py? Always download but give the option to use a local copy, if needed? We're asking this because this "bad download" error is really confusing for beginners, since this is the official primary method of installation.
Anyways, thanks for the fast fix.

Shouldn't we have the same behavior in ez_setup.py?

@idgserpro: I agree. Would you ticket it and consider making a PR?

@jaraco thanks for the info. Where would ez_setup find a bad local copy "locally"?
I'm on a Mac OS X El Capitan (10.11.4), and ez_setup was running in an empty directory just created as virtualenv (specifically via virtualenvwrapper mkproject).
I tried to create a new virtualenv, and it seems to install setuptools-18.2.dist-info right away (at least lssitepackages shows that).
For added fun, if I'm out of any virtualenv and do a pip list, I find setuptools (20.3.1)

@FrancescoRizzi Alongside ez_setup.py itself. And in this line, if there's already a local file, it doesn't download it again.
We tested with vanilla python ez_setup.py, don't know exactly what could be different from a virtualenv like yourself.
@jaraco Done. Check https://github.com/pypa/setuptools/issues/563. We we'll try to do a PR.

My suspicion is that @FrancescoRizzi 's ez_setup is deciding not to use wget or curl and is falling back to the "insecure" code and that that code isn't handling the redirect properly.
I'm going to play with this later when I have some time. It might though be helpful for @FrancescoRizzi to add a pdb.sey_trace() to ez_setup.py to walk through what it's actually doing.

@jaraco I didn't follow setuptools bitbucket-github migration, but this issue was created 5 days ago in bitbucket https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package. Are you planning to keep both repositories? Since you migrated the issues to github as well, wouldn't it be the case to at least close bitbucket issues? Just my 0.02c.

@idgserpro: That issue was created against the PyPI project, not Setuptools. A distinction which I missed initially as well. Setuptools issues are marked private, so aren't visible except to developers.

Hi.. I gave it another twirl this morning. Sadly I'm still getting the Bad Zip Error.
I tried it in 3 separate virtualenvs:

a virtualenv that existed and had setuptools 18.2, but from which I removed everything that seemed related to setuptools and/or easy_install (both from the project and virtualenv/lib/python2.7/site-packages

a virtualenv that existed (had setuptools 18.2), where I didn't do the steps I did in 1

a new virtualenv, just created

In all 3 cases I grabbed ez_setup.py this morning, and ran python with it.
The stack trace from test3 (below) seems to indicate download_setuptools elected to actually download a new copy of setuptools (20.10.1)
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-20.10.1.zip
Extracting in /var/folders/5f/zvqgl88j47zbqzcydcncpzz8nvzfxy/T/tmpJiCjcG
Traceback (most recent call last):
File "ez_setup.py", line 415, in
sys.exit(main())
File "ez_setup.py", line 412, in main
return _install(archive, _build_install_args(options))
File "ez_setup.py", line 52, in _install
with archive_context(archive_filename):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "ez_setup.py", line 103, in archive_context
with ContextualZipFile(filename) as archive:
File "ez_setup.py", line 87, in new
return zipfile.ZipFile(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 766, in init
self._RealGetContents()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 807, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file
In fact, at the end of this run, there is a (newly created/downloaded) setuptools-20.10.1.zip next to ez_setup.py, sized at 313 bytes. I opened it via double-click (on Mac) to peek, and found just a setuptools-20.10.1.zip.cpgz inside.
Am willing to add print statements (or pdb) to ez_setup and rerun, if we're looking for anything in particular.

@FrancescoRizzi maybe your network is making cache:
https://bootstrap.pypa.io/ez_setup.py

@idgserpro you got it!
So... a hard reload/refresh of the ez_setup source got me a new copy (which i recognized as such thanks to the added Maintained at https://github.com/pypa/setuptools/tree/bootstrap. comment at the top). Running that ez_setup seems to finally get me an acceptable setuptools-20.10.1
If I may suggest, I'd add a version number at the top of ez_setup (it may not change often, but when it does it may help in recognizing a specific version of the file).
Thanks though! Now off to hunt every copy of the old ez_setup I have locally :D

If I may suggest, I'd add a version number at the top of ez_setup (it may not change often, but when it does it may help in recognizing a specific version of the file).

Good idea.
@jaraco buildout does this with bootstrap.py.

Why not just use the date of the file, rather than add additional steps to the change process (and potential for mismatch)?

What you mean by "date of the file"?

Is ez_setup.py synced every 15 minutes to https://bootstrap.pypa.io/ez_setup.py like @dstufft suggested in https://github.com/buildout/buildout/issues/86#issuecomment-114944317?

What do you mean by "date of the file"?

$ curl -s -I https://bootstrap.pypa.io/ez_setup.py | grep Last-Modified
Last-Modified: Tue, 26 Apr 2016 16:30:27 GMT
Annoyingly, Github doesn't seem to provide a Last-Modified date, but does provide an ETag header:
$ curl -s -I https://raw.githubusercontent.com/pypa/setuptools/bootstrap/ez_setup.py | grep ETag
ETag: "e05e52bf1d9cdeed93c16f6456e2c532f343fa22"

Is ez_setup.py synced every 15 minutes to ...

Yes.


Refactor tests

Refactored 'end-to-end' test into multiple sections
Enforced strict equality checking
Refactored magic numbers and strings
Added a few asserts
Learned mocha

Superseded by #24


feat: react-table use cases on the challenges page

@nud3l
This PR does not include sorting, filtering features, and loading UX.
The tables were re-implemented using react-table and challenges toggle logic was improved:

The code logic was made simplified and improved.
Many UI parts are componentized.
Only one time of rendering and therefore fetching occurs on the table (two times (vaults and staked relayers) before). (You can check the Network tab of ChromeDevTools)
The code is ready for loading UX implementation.

FYI: I'm going to work on loading UX but I think this PR may be reasonable to be merged now.

@nud3l
One question, please.
It looks like we are using snake_case e.g. lifetime_sla.
I think it can be camelCase as per the JS standard.
Just wanted to check.

@nud3l
One question, please.
It looks like we are using snake_case e.g. lifetime_sla.
I ended up using eslint disable comment.
interface PatchedRelayerData extends Omit<RelayerData, 'lifetime_sla'> {
  // eslint-disable-next-line camelcase
  lifetime_sla: string;
}

I think it can be camelCase as per the JS standard.
Just wanted to check.

You are right, should be camel case. It sometimes happens when switching from rust since the standard there is snake case. But you are right :)

Thank you for explaining. :)
No problem.


[FLINK-2713] [streaming] Set state restore to lazy to avoid StateCheckpointer issues and reduce checkpoint overhead

Currently failure recovery fails when using custom StateCheckpointers because they are not correctly set before trying to restore the operator initial state. This PR solves this issue by making state restore lazy (only happens if the user wants to access the value of the state)
The current order of events and the problem:

Create StreamTask
Call restoreInitialState(snapshot) -> default java-serialization StateCheckpointer is used
Open UDF and run computation. -> This is the point when custom StateCheckpointers are set
Take snapshots....
We can see while the custom StateCheckpointers are available and work for taking snapshots they are not set set yet when call restore which obviously leads to error.

The change is:

Create StreamTask
Call restoreInitialState(snapshot) -> state is not restored yet, but a flag is set
Open UDF and run computation. -> This is the point when custom StateCheckpointers are set
The state is restored when the user accesses the value
Take snapshots... (just return the last checkpoint if not restored yet)

The PR also extends the StreamCheckpointingITCase and the PartitionedStateCheckpointingITCase to include a case for custom StateCheckpointers for both local and partitioned OperatorStates.

That's much better ^^
I approve :+1:


Ignore spread props when checking attributes

Fixes #459

Coverage remained the same at 99.615% when pulling 42b385c742103d5fedbf2839af4c363b900f3096 on tricoder42:issue/459 into 8fa7d4aa73106a4ea425d78e3cb7ab048ffd7d10 on evcohen:master.

That'll do it. That rule should probably be obtaining the attrs in a way that filters the spread attributes before iterating over the set. This gets us past the error now, though, so I'm merging.
Thank you @tricoder42 !!

I've come here with this error as well, looks like a regression in 6.1.0. Would love to see a release with this patch!

@brokentone I'll put putting up a new version tonight. Just need to do the housekeeping for CHANGELOG and wait for Travis.


Update to Alamofire 5.0.0-rc.1

🚀

Fails

:no_entry_sign:

danger-swift` failed.

Log
Cloning and building inline dependencies: import DangerSwiftProse // package: https://github.com/f-meloni/danger-swift-prose.git, import DangerXCodeSummary // package: https://github.com/f-meloni/danger-swift-xcodesummary.git, this might take some time.
ERROR: 💥  Failed to compile script

  Generated by :no_entry_sign: dangerJS against 620de48a8ecad5a1209842f9bf957418fab48f30

It built! Let's get this one in 🚀


[FEATURE] HTTP_X_FORWARDED headers

Would be nice if the proxy would send FORWARDED to the backend.
HTTP_X_FORWARDED_FOR
HTTP_X_FORWARDED_HOST
HTTP_X_FORWARDED_PORT
(
why:
i use hotel add 'php -S <IP_ADDRESS>:$PORT'
but when i want to redirect to the local url
then $_SERVER['SERVER_PORT'] contains the php port (something like 55885)
and $_SERVER['SERVER_NAME'] contains <IP_ADDRESS>
which means it will redirect to wrong url
having the HTTP_X_FORWARDED allows the application to know the right ip and port
)

Hi @natrim,
Good idea :+1:

I've configured the proxy to add some headers, it was just an option actually, so you should get more headers now.
It's available in v0.5.11.
I couldn't test it, so feedbacks are welcome :)

Thanks, works now.