chef_gem/gem_package resource eagerly populates candidate_version when gem is already installed

Description
chef_gem resource attempts to reach out to internet for already installed gems.
Chef Version & ## Platform Version
root@default-bento-ubuntu-1404:~# chef-client -v
Chef: 12.15.19
Replication Case
use chef_gem resource to install a gem on a machine.
unplug network, run chef-client, converge will fail because we can't reach rubygems.org
Client Output
* chef_gem[chef-vault] action install[2016-11-16T08:36:59+00:00] WARN:  failed to find gem chef-vault (>= 0) from [https://rubygems.org/]

           ================================================================================
           Error executing action `install` on resource 'chef_gem[chef-vault]'
           ================================================================================

           Mixlib::ShellOut::ShellCommandFailed
           ------------------------------------
           Expected process to exit with [0], but received '2'
           ---- Begin output of /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri  ----
           STDOUT:
           STDERR: ERROR:  Could not find a valid gem 'chef-vault' (>= 0), here is why:
              Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
           ---- End output of /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri  ----
           Ran /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri  returned 2

Stacktrace
        * chef_gem[chef-vault] action install[2016-11-16T08:36:59+00:00] WARN:  failed to find gem chef-vault (>= 0) from [https://rubygems.org/]

           ================================================================================
           Error executing action `install` on resource 'chef_gem[chef-vault]'
           ================================================================================

           Mixlib::ShellOut::ShellCommandFailed
           ------------------------------------
           Expected process to exit with [0], but received '2'
           ---- Begin output of /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri  ----
           STDOUT:
           STDERR: ERROR:  Could not find a valid gem 'chef-vault' (>= 0), here is why:
              Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
           ---- End output of /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri  ----
           Ran /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri  returned 2

           Cookbook Trace:
           ---------------
           /tmp/kitchen/cache/cookbooks/bbip_chef_vault/recipes/default.rb:12:in `from_file'
           /tmp/kitchen/cache/cookbooks/svops_exportc_usermgmt_linux/recipes/linux.rb:11:in `from_file'
           /tmp/kitchen/cache/cookbooks/svops_exportc_usermgmt_linux/recipes/default.rb:15:in `from_file'

           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cache/cookbooks/bbip_chef_vault/recipes/default.rb

            12: chef_gem 'chef-vault' do
            13:   version node['bbip_chef_vault']['version']
            14:   compile_time true
            15: end
            16:

           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cache/cookbooks/bbip_chef_vault/recipes/default.rb:12:in `from_file'

           chef_gem("chef-vault") do
             package_name "chef-vault"
             action [:install]
             retries 0
             retry_delay 2
             default_guard_interpreter :default
             declared_type :chef_gem
             cookbook_name "bbip_chef_vault"
             recipe_name "default"
             compile_time true
             gem_binary "/opt/chef/embedded/bin/gem"
           end

           Platform:
           ---------
           x86_64-linux
         ================================================================================
         Recipe Compile Error in /tmp/kitchen/cache/cookbooks/svops_exportc_usermgmt_linux/recipes/default.rb
         ================================================================================

         Mixlib::ShellOut::ShellCommandFailed
         ------------------------------------
         chef_gem[chef-vault] (bbip_chef_vault::default line 12) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
         ---- Begin output of /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri  ----
         STDOUT:
         STDERR: ERROR:  Could not find a valid gem 'chef-vault' (>= 0), here is why:
            Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
         ---- End output of /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri  ----
         Ran /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri  returned 2

         Cookbook Trace:
         ---------------
           /tmp/kitchen/cache/cookbooks/bbip_chef_vault/recipes/default.rb:12:in `from_file'
           /tmp/kitchen/cache/cookbooks/svops_exportc_usermgmt_linux/recipes/linux.rb:11:in `from_file'
           /tmp/kitchen/cache/cookbooks/svops_exportc_usermgmt_linux/recipes/default.rb:15:in `from_file'

         Relevant File Content:
         ----------------------
         /tmp/kitchen/cache/cookbooks/bbip_chef_vault/recipes/default.rb:

          11:
          12>> chef_gem 'chef-vault' do
          13:    version node['bbip_chef_vault']['version']
          14:    compile_time true
          15:  end
          16:
          17:  require 'chef-vault'
          18:

         Platform:
         ---------
         x86_64-linux

NOTE: CHEF CLIENT BUGS ONLY
This issue tracker is for the code contained within this repo -- chef-client, base knife functionality (not
plugins), chef-apply, chef-solo, chef-client -z, etc.

Server issues
ChefDK issues
Cookbook Issues (see the https://github.com/chef-cookbooks repos or search Supermarket or GitHub/Google)

My workaround for now is:
chef_gem 'chef-vault' do
  # require 'pry';binding.pry
  version node['geip_chef_vault']['version']
  compile_time true
  not_if {Gem::Specification::find_all_by_name('chef-vault').any?}
end

FWIW, since you have version specified, the not_if does not valid you have the correct version installed, just that some version is installed.
Since ChefGem inherits from Chef::Resource::Package::GemPackage, this more than likely affects the gem_package resource as well (although i did not test to verify)

Okay, so actually this report is vague.
You need to do more than just show that it tries to talk to rubygems.org because there's two possible bugs here:

it really violates idempotency and if rubygems.org was able to be contacted then it would have done the install action when it shoudn't have
it tries to resolve the candidate_version (by hitting rubygems.org) when the idempotency check is successful and it would work if rubygems.org was able to be contacted, but it is doing unnecessary work that fails behind a firewall.

I can't tell from your output which of those cases it is.  I'm fairly certain its the latter case since otherwise we'd be crushed with bug reports, but as it stands this bug report is not useful enough.  I also can look through the rubygem provider code and i'm not seeing calls to candidate_version that would unlazy it inappropriately.
A link to the stackoverflow issue that you mentioned would be useful to also include.

And the full stacktrace.out (like the output prompts you to report and the issue form also prompts you to report) would be highly useful in this case, since its likely that the culprit that is calling candidate_version is right there in the stacktrace.

Yum, of course it's the second, which is why I keep hitting these edge-cases when I visit large enterprises. I'll pull debug logs tomorrow.
Stackoverflow - http://stackoverflow.com/questions/8490167/how-do-i-find-out-whether-a-gem-is-installed-in-the-system-or-not

just the /var/chef/cache/stacktrace.out would most likely point out exactly where the problem is

ping on needing the stacktrace.out
i looked at the code and i don't see the bug.  the stacktrace.out would immediately point out what the buggy calling code is.

looking at this again its blowing up in the actual attempt to install the package:
 /opt/chef/embedded/bin/gem install "chef-vault" -q --no-rdoc --no-ri

that means that the idempotency check has already failed.
that looks more like the gem just wasn't installed to begin with.
closing this since it doesn't seem to be actionable right now, i can't see from the code what went wrong, and the output looks like it was functioning as well as it could.
anyone who hits this in the future, please open a new issue with:

debug logs
stacktrace.out
validate state of the gem being installed before/after


WIP - Agent: experiment with proxy settings

WIP - trying to implement the equivalent of http.proxy setting for VS Code. Not working yet.
Test plan
n/a

Closing since we have another working solution for this problem.


Switch to a simpler pipeline.yml upload

Pipeline upload now interpolates the plugin key too, so no need for these old tricks.

@lox this makes for a nicer pattern for supporting self-testing HEAD commits… means that Renovate and tools like that can auto-update the pipeline.yml still…

(all thanks to the changes in env var substitution improvements that were made for 3.0)

Yup, makes sense to me!


Create Fractal_Satoshis

hello i had difficulty figuring out how to add 2 files into 1 in the repository so i added all information to this one file if you could possibly just quickly explain how i can break it into 2 json files

please follow the guide https://docs.unisat.io/fractal-services/how-to-submit-collection-in-github to learn how to do it. @SpecialLabs
And the following is correct

Then, we close this PR. @SpecialLabs


Fix some dialyzer warnings; add type t to UploadedImage

Fixes some dialyzer errors
Adds a t for documenting the %Cloudex.UploadedImage{} struct
A tiny bit of formatting

Fixes #34

@smeevil I am happy to accommodate any feedback.

The build failed solely because of a Coveralls reporting timeout.

Awesome, thanks !

1.0.1 is now published

Thank you!


:seedling: Reproducible go builds

Please check if the PR fulfills these requirements

[ ] Tests for the changes have been added (for bug fixes / features)
[x] PR title follows the guidelines defined in  https://github.com/ossf/scorecard/blob/main/CONTRIBUTING.md#pr-process

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature

What is the current behavior? (You can also link to an open issue here)
Builds aren't reproducible

What is the new behavior (if this is a feature change)?
Builds are reproducible

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Builds are reproducible

Other information:

@loosebazooka FYI

looks good to me.

looks good to me.

Thanks!


out of date

not talking about AD either

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8f06e24b-9d7d-b79c-f75f-44032c529027
Version Independent ID: d0707a11-f483-f192-14c6-cbbfbe5b8071
Content: Add AD/Azure AD groups to security groups - Azure DevOps
Content Source: docs/organizations/security/add-ad-aad-built-in-security-groups.md
Product: devops
Technology: devops-security
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@elipapa -- Thanks for your feedback; we appreciate it. To make sure we have all the information needed to triage your issue, please provide more context around the general task.


more pinning

Summary
Change the version numbers to sha values for the python modules
Details and comments

There are still a few pinning issues remaining.  I'll work on them in the next PR.

This seems too much.  I close this.


Axis problem or georeference problem?

Hello!
I have a obj format model.
I found the model has a rotation change after convert it into gltf.
The first picture below is the obj file.The second is gltf file,when I put it in Cesium,it displays like that.

I have searched the Issues,someone said it's an axis problem,others said it's a georeference problem.Could anyone answer me and give a solution?
Thanks in advance!
jwsz04_0024_residential_corporation_walk_348.mtl.txt
jwsz04_0024_residential_corporation_walk_348.obj.txt

This looks like an up-axis problem. We have some notes in the 1.47 release's CHANGES.md that could be helpful for directly editing the gltf if that's an option, but you can also adjust the model's orientation in something like Blender.
As a quick tip, georeference problems also often put the model very far away from the latitude/longitude where you expect it to show up on Cesium, they may even end up floating very far away from the ground.

Importing the obj into blender as Z-up and exporting it as Y-up seems to work via the online converter.

Thank you very much.

Hi.
I have tried to add the Y_UP_Transform node to the node hierarchy like this:

But it didn't change anything.Why and what should I do next?
And I tried to use blender,it works well. Thank you!

@zxzfcsu for Y_UP_Transform to be part of the node hierarchy, it needs to be in the nodes array. Its children should be the previous contents of scene[0], and then scene[0] should be changed to only contain the index of the Y_UP_Transform node.
I recommend adding Y_UP_Transform only at the end of the nodes array, because putting it anywhere else will shift the indices of other nodes, which could mess up the scene.
Here's an example using the Duck from gltf 2.0 sample models, please see attached.
Ducks.zip


sort / order by attribute / id

Hi, this is wonderful carousel till now i have used very easy to integrate and use,  is there any way to sort by / order by .

Hi @rkpip3 , you need to provide an already sorted items as children when using this package.


Sms content for course completion

Started 2 threads with both bbc and imi but no resolution yet. The functional spec says the content with be in english characters but phonetically in the user's language. I'm still not sure where we would get that content from.
@pankajnagpal30 can you follow up?

Btw, I don't think Pankaj sees @ mentions from github. It looks like he hasn't accepted the invite to the project. So best to email or catch him on Skype.
-----Original Message-----
From: "kosh"<EMAIL_ADDRESS>Sent: 5/25/2015 12:50 PM
To: "motech-implementations/mim"<EMAIL_ADDRESS>Subject: [mim] Sms content for course completion (#278)
Started 2 threads with both bbc and imi but no resolution yet. The functional spec says the content with be in english characters but phonetically in the user's language. I'm still not sure where we would get that content from.
@pankajnagpal30 can you follow up?
—
Reply to this email directly or view it on GitHub.

Sounds good @llavoie . Will add it to the google doc for tracking as well

Hi Kosh,I am not able to understand the Question correctly. Can you please explain it to get this clarified.

When a user completes a course, we send them an sms saying they have
successful completed the course. The user then take this to their
supervisor/manager who then issues a certificate.
According to the current POR, the sms will be in english alphabet but
phonetically spelled in the user's language. However, we have not
identified what the actual content of the sms will be and/or who (imi vs
motech) stores it.
Let me know if that makes sense. Thanks.
On Tue, May 26, 2015 at 12:29 AM, pankajnagpal30<EMAIL_ADDRESS>wrote:

Hi Kosh,I am not able to understand the Question correctly. Can you please
explain it to get this clarified.
—
Reply to this email directly or view it on GitHub
https://github.com/motech-implementations/mim/issues/278#issuecomment-105426121
.

Tracking with #284


Tab is not considered in print statement

Issue Type: Bug
tab ('\t') is not considered while printing the list in tabular format on the VSC Python Interactive environment.
To reproduce the issue, execute the below code and check the result on the VCS Python Interactive environment.
def display_table(in_list):
""" Function to display 2D list in tabular format """
for i in range(len(in_list[1])+1):
if i == 0:
print('\t', end='') ## <- This tab is not cosidered
else:
print(f'[{i-1}]', end='\t')
print()
for i, row in enumerate(in_list):
for j, value in enumerate(row):
if j==0:
print(f'[{i}]', end='\t')
print(f'{value}', end='\t')
print()
a = [[77, 68, 86, 73], [96, 87, 89, 81], [70, 90, 86, 81]]
Calling for display_table function
display_table(a)
Extension version: 2020.5.80290
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:33:47.663Z)
OS version: Darwin x64 19.5.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2700)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 3

Memory (System)
16.00GB (0.10GB free)

Process Argv

Screen Reader
no

VM
0%

@hyderkh Thanks for the report on this. I actually repro the same issue, both in the interactive window and in our notebook editor. Looks like we might be accidentally stripping out leading whitespace.

@IanMatthewHuff  Thanks for acknowledging the issue. Any idea by when it will be resolved?

Sorry not sure on that yet. We have a triage meeting on Thursday where we will discuss and prioritize new incoming issues.

Dupe of https://github.com/microsoft/vscode-python/issues/10270


docs: use less technical language to describe why catching redirects and errors is fraught

The language "which results in a noop" is unnecessarily technical and doesn't clearly explain why that is bad.
This changes it to "which would prevent SvelteKit from handling it".

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[ ] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

thank you!


CQM from DQM using cqm = ConstrainedQuadraticModel.from_dqm(dqm)

Does cqm = ConstrainedQuadraticModel.from_dqm(dqm) correctly create the CQM equivalent of an existing DQM with fixed and/or varying bounds?
here are the three methods which create the DQM :
def build_knapsack_dqm_fixedbound(values, weights, weight_capacity, bound, verbose=False):
"""Construct DQM for the generalized knapsack problem
Args:
values (array-like):
Array of values associated with the items
weights (array-like):
Array of weights associated with the items
weight_capacity (int):
Maximum allowable weight
bound(int):
Maximum allowable pieces for each item
Returns:
Discrete quadratic model instance
x: variable
"""
bound += 1  # also take into account the value 0
pieces = range(bound)
# First guess the lagrange
lagrange = max(values) * 0.5
if verbose:
    print('lagrange:', lagrange)

# Number of objects
x_size = len(values)

# Lucas's algorithm introduces additional slack variables to
# handle the inequality. M+1 binary slack variables are needed to
# represent the sum using a set of powers of 2.
M = floor(log2(weight_capacity))
num_slack_variables = M + 1

# Slack variable list for Lucas's algorithm. The last variable has
# a special value because it terminates the sequence.
y = [2 ** n for n in range(M)]
y.append(weight_capacity + 1 - 2 ** M)

##@  Discrete Quadratic Model @##
dqm = DiscreteQuadraticModel()
x = []
# @ Add variables @##
for k in range(x_size):
    x.append(dqm.add_variable(bound, label='x' + str(k)))

for k in range(num_slack_variables):
    dqm.add_variable(2, label='y' + str(k))  # either 0 or 1

##@ Hamiltonian xi-xi terms ##
for k in range(x_size):
    dqm.set_linear('x' + str(k), lagrange * (weights[k] ** 2) * (np.array(pieces) ** 2) - values[k] * pieces)

# # Hamiltonian xi-xj terms
for i in range(x_size):
    for j in range(i + 1, x_size):
        biases_dict = {}
        for piece1 in pieces:
            for piece2 in pieces:
                biases_dict[(piece1, piece2)] = (2 * lagrange * weights[i] * weights[j]) * piece1 * piece2

        dqm.set_quadratic('x' + str(i), 'x' + str(j), biases_dict)

# Hamiltonian y-y terms
for k in range(num_slack_variables):
    dqm.set_linear('y' + str(k), lagrange * np.array([0, 1]) * (y[k] ** 2))

# Hamiltonian yi-yj terms
for i in range(num_slack_variables):
    for j in range(i + 1, num_slack_variables):
        dqm.set_quadratic('y' + str(i), 'y' + str(j), {(1, 1): 2 * lagrange * y[i] * y[j]})

# Hamiltonian x-y terms
for i in range(x_size):
    for j in range(num_slack_variables):
        biases_dict = {}
        for piece1 in pieces:
            biases_dict[(piece1, 1)] = -2 * lagrange * weights[i] * y[j] * piece1

        dqm.set_quadratic('x' + str(i), 'y' + str(j), biases_dict)

return dqm, x

def build_knapsack_dqm_variablebound2(values, weights, weight_capacity, bound, verbose=False):
"""Construct DQM for the generalized knapsack problem
Args:
values (array-like):
Array of values associated with the items
weights (array-like):
Array of weights associated with the items
weight_capacity (int):
Maximum allowable weight
bound(int):
Maximum allowable pieces for each item
Returns:
Discrete quadratic model instance
"""
bound = [b + 1 for b in bound]  # also take into account the value 0
#     pieces = range(bound)
# First guess the lagrange
lagrange = max(values) * 0.5
if verbose:
    print('lagrange:', lagrange)

# Number of objects
x_size = len(values)

# Lucas's algorithm introduces additional slack variables to
# handle the inequality. M+1 binary slack variables are needed to
# represent the sum using a set of powers of 2.
M = floor(log2(weight_capacity))
num_slack_variables = M + 1

# Slack variable list for Lucas's algorithm. The last variable has
# a special value because it terminates the sequence.
y = [2 ** n for n in range(M)]
y.append(weight_capacity + 1 - 2 ** M)

##@  Discrete Quadratic Model @##
dqm = DiscreteQuadraticModel()

x = []
# @ Add variables @##
for k in range(x_size):
    x.append(dqm.add_variable(bound[k], label='x' + str(k)))

for k in range(num_slack_variables):
    dqm.add_variable(2, label='y' + str(k))  # either 0 or 1

##@ Hamiltonian xi-xi terms ##
for k in range(x_size):
    pieces = range(bound[k])
    dqm.set_linear('x' + str(k), lagrange * (weights[k] ** 2) * (np.array(pieces) ** 2) - values[k] * pieces)

# # Hamiltonian xi-xj terms
for i in range(x_size):
    for j in range(i + 1, x_size):
        biases_dict = {}
        for piece1 in range(bound[i]):
            for piece2 in range(bound[j]):
                biases_dict[(piece1, piece2)] = (2 * lagrange * weights[i] * weights[j]) * piece1 * piece2

        dqm.set_quadratic('x' + str(i), 'x' + str(j), biases_dict)

# Hamiltonian y-y terms
for k in range(num_slack_variables):
    dqm.set_linear('y' + str(k), lagrange * np.array([0, 1]) * (y[k] ** 2))

# Hamiltonian yi-yj terms
for i in range(num_slack_variables):
    for j in range(i + 1, num_slack_variables):
        dqm.set_quadratic('y' + str(i), 'y' + str(j), {(1, 1): 2 * lagrange * y[i] * y[j]})

# Hamiltonian x-y terms
for i in range(x_size):
    for j in range(num_slack_variables):
        biases_dict = {}
        for piece1 in range(bound[i]):
            biases_dict[(piece1, 1)] = -2 * lagrange * weights[i] * y[j] * piece1

        dqm.set_quadratic('x' + str(i), 'y' + str(j), biases_dict)

return dqm, x

Without the Andrew Lucas log trick
def build_knapsack_dqm_variablebound(values, weights, weight_capacity, bound, verbose=False):
"""Construct DQM for the generalized knapsack problem
Args:
values (array-like):
Array of values associated with the items
weights (array-like):
Array of weights associated with the items
weight_capacity (int):
Maximum allowable weight
bound(array-like):
Maximum allowable pieces for each item
Returns:
Discrete quadratic model instance
x: varibles
"""
bound = [b + 1 for b in bound]  # also take into account the value 0
# Lagrange multipliers A>max(values)>0
A1 = max(values) * 8
A2 = max(values) * 2

num_of_items = len(values)
##@  Discrete Quadratic Model @##
dqm = DiscreteQuadraticModel()

x = []
# @ Add variables @##
for k in range(num_of_items):
    x.append(dqm.add_variable(bound[k], label='x' + str(k)))  # number of discrete values

for n in range(1, weight_capacity + 1):
    dqm.add_variable(2, label='y' + str(n))  # either 0 or 1, 2 values possible

##@ Hamiltonian xi-xi terms ##
for k in range(num_of_items):
    pieces = range(bound[k])
    #     dqm.set_linear('x' + str(k),  - values[k]*pieces)
    dqm.set_linear('x' + str(k), A2 * (weights[k] ** 2) * (np.array(pieces) ** 2) - values[k] * np.array(pieces))

# Hamiltonian y-y terms
for n in range(1, weight_capacity + 1):
    dqm.set_linear('y' + str(n), np.array([0, 1]) * (n ** 2 * A2 - A1))

# Hamiltonian yi-yj terms
for n in range(1, weight_capacity + 1):
    for m in range(n + 1, weight_capacity + 1):
        dqm.set_quadratic('y' + str(n), 'y' + str(m), {(1, 1): 2 * A1 * (1 + m * n)})

# # Hamiltonian xi-xj terms
for i in range(num_of_items):
    for j in range(i + 1, num_of_items):
        biases_dict = {}
        for piece1 in range(bound[i]):
            for piece2 in range(bound[j]):
                biases_dict[(piece1, piece2)] = (2 * A2 * weights[i] * weights[j]) * piece1 * piece2
        dqm.set_quadratic('x' + str(i), 'x' + str(j), biases_dict)

# Hamiltonian x-y terms
for i in range(num_of_items):
    for n in range(1, weight_capacity + 1):
        biases_dict = {}
        for piece1 in range(bound[i]):
            biases_dict[(piece1, 1)] = -2 * A2 * weights[i] * n * piece1

        dqm.set_quadratic('x' + str(i), 'y' + str(n), biases_dict)

return dqm, x

Please assist me on confirming this ASAP

Does cqm = ConstrainedQuadraticModel.from_dqm(dqm) correctly create the CQM equivalent of an existing DQM with fixed and/or varying bounds?

ConstrainedQuadraticModel.from_dqm() does correctly create a CQM from a DQM as stated in the docs. I do not understand the question about fixed and/or varying bounds.


Automatically color warning, error and critical level logs

Instantiating the handler with coloring options could automatically color warning yellow, error in red and critical in maroon or something.

Done in https://github.com/nir0s/wryte/commit/80af3c766f04953f2c72ecd06bafadd77e7ba3c7


fix typo

OATH should be OAUTH

@psionikangel : Thanks for your contribution! The author(s) have been notified to review your proposed change.

LGTM; we'll merge. Thanks for the fix.


Fix currency precision in administration

1. Why is this change necessary?
You currently can currently enter the currency factor with a precision of only 2 decimals. That is not enough for a currency factor.
2. What does this change do, exactly?
It rises the precision for the field of the currency factor to 14 decimals.
3. Describe each step to reproduce the issue or behaviour.
Try to enter a currency factor with more that 2 decimals.
4. Please link to the relevant issues (if any).
5. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[x] I have written or adjusted the documentation according to my changes
[x] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Hi @windaishi
please rebase your branch to resolve the conflicts
Sunny regards
Pantrtxp

Done 👍

thanks for your contribution @windaishi :+1: :tada: :blue_heart:


need help

please guide how to deploy it to firebase
using CMD

I don't know about Firebase.
I guess you will have to read their documentation.


Can't use numbers with dots

It crashes when I'm trying to use numbers with dots

@aveWorld  So far, it only support integers😅


Modify file pattern matching to exclude irrelevant files

https://github.com/yarnjs/yarn/blob/c5a8efe29a5cb2a792cbefa7b0ea12441733b2fe/lib/index.js#L169
Would prefer my package.json not be copied over to my static site. Or my _config.yml.original (dunno how many folks will have that one tho)

should be fixed via the (just published) 0.9.0!


Implement separateLoader

Add separateLoader prop which removes the loader element from root element. E.g. you want your list to be in a Material UI Paper, but the loader element to be outside.

You should control this in the state of your own application, I don't think separate loading/spinner logic needs to be in this component. By definition, it's separate from the requirements of this component.
Pass () => null into the loader prop and display your own loading spinner.


List the extra hl groups

I'm using the monokai colorscheme, and it doesn't support the hl groups you use. Can you list the (probably) needed extra hl groups so that other colorschemes would know which to add? All or the ones you think are nonstandard for other programming languages. I just don't know where to look really.
Thanks!

Closing this, as problem seems to be solved


Travis CI: pip install coverage flake8 isort yapf

pip will soon have a real dependency resolver so it is better to give it more requirements in a single command so that it can a more complete job of resolving the dependencies.

use requirements.txt now, thanks.

coverage flake8 isort yapf are not runtime dependencies so they do not belong in requirements.txt.  Forcing all end users to install tools that are only used for dev and test would be a waste of resources.

coverage flake8 isort yapf are not runtime dependencies so they do not belong in requirements.txt. Forcing all end users to install tools that are only used for dev and test would be a waste of resources.

Yes, we put them in requirements/tests.txt.


Breaking: Remove deprecated LocalizedStringResource API

Since 0.4.0, the LocalizedStringResource.XXX struct is now deprecated and instead the String.XXX struct should be used.
To prepare for 1.0.0, and some other upcoming changes, i'm now removing this deprecated code.

almost 2x speed improvement 😬


Paragraph starting with inline math causes error on Treesitter

Describe the bug
A paragraph that starts with in-line math:
\(1 + 1\) foobar

Causes a parsing error in Treesiter. The whole paragraph then fails to parse correctly.
Steps to reproduce
Write any paragraph that starts with in-line math:
\(1 + 1\) foobar

Highlight fails. Open :TSNodeUnderCursor and inspect the paragraph to find the error.
Expected behavior
Correct parsing of paragraphs with in-line math.
Emacs functionality
This functionality works in emacs.
Minimal init.lua
N/A
Screenshots and recordings
No response
OS / Distro
Ubuntu 22.04
Neovim version/commit
v0.8.0
Additional context
No response

I'll open up an issue upstream in the tree-sitter grammar.

This should be fixed now. Pull latest master and do :TSUpdate org.

Perfect! It's working for me too.


Arithmetic type caster: fall back to casting via PyNumber_*

This is, again, largely copy-paste from pybind11. The use case is that PyOpenCL often seems things like numpy.int32 passed as integers, and I'd like it to keep accepting those.
Still to do:

[ ] Add some tests

Hi @inducer,
I was just looking into this and first wanted to understand how/where the existing number casters are failing. From a quick test (https://github.com/wjakob/nanobind/commit/90d24455315f5c546a9ee80e4183e64ef68ad4e7), it seems to me that things just work and do not need this PR (?). Python itself has changed quite a bit and nanobind requires relatively recent versions that do some implicit conversions themselves in the PyLong_* and similar APIs. However, perhaps I am missing something.
Could you take a look?

Thanks for investigating! And, weirdly, I distinctly recall needing this to get a test to pass earlier on, but dropping this patch now did not result in any failures. I am not entirely sure why. Let's close this for now. I'll pipe up if/when I rediscover what the issue was. Sorry for the noise!

np!

(See #30 for part 2 of the story.)


Submission workflow sub-nav tabs don't work in Step 3

In all other steps, you can jump around the workflow as expected using these tab buttons, however when you are sitting on the 3rd step (Policies), you cannot use these tab buttons to navigate away. The "Next" and "Back" buttons work, though

addressed by https://github.com/OA-PASS/pass-ember/pull/1082/commits/ef3807f67896c60666bf7ece904b556363445393


feat: add datadog_trace 0.88.1, gRPC 1.56.0 releases

update datadog_trace with release 0.88.1
update gRPC with release 1.56.0

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


Using Webpack

Hey nice gem, thanks!
I've tried it on bare configuration and it's great but using Webpack and for example SASS + Bootstrap configuration, It does not work and force_reload the page, is there any turnaround? I'd be glad to know more about the possible issue. thanks!

Hey,
Which files do you edit when the gem force reloads the page?
And could you please run this command in your project's root and copy the output:
rails runner "puts Rails.application.config.hotwire_livereload"

If you're using webpack & sass with jsbundling-rails or cssbundling-rails then they should work out of the box without additional configuration now: https://github.com/kirillplatonov/hotwire-livereload/pull/37


Make SRP_CTX.info ownership and lifetime be the same as SRP_CTX.login.

Ownership and lifetime rules of SRP_CTX.info are confusing and different
from those of SRP_CTX.login, making it difficult to use correctly.
This makes the ownership and lifetime be the same as those of SRP_CTX.login,
thet is a copy is made when setting it and is freed when SRP_CTX is freed.
Fixes #3466

The above commit uses memset() as requested. Note that it changes SSL_SRP_CTX_init() behavior in case of error: beforehand it would retain the callback pointers and strength parameter, but now it resets them to zero. Let me know if this is a problem.

I think its fine as is.

Is this an appropriate point at which to add documentation for (e.g.) SSL_SRP_CTX_init() and note the correct behavior/usage?

memset is fine.

It's easy to ratiocinate like that, but it does have "why-not-do-the-right-thing" to it. I mean, yes, on all currently supported platforms NULL is zero. Yes, this is tested in test/sanitytest.c. But here is the question. Does this test define future direction (for all eternity), or does this test simply reflect current state of affairs? Or in other words, the test's purpose is to detect platform where NULL is not zero, but for which purpose: a) to declare affected platform currently unsupported, or b) ban it for all eternity? Or in yet other words, do we have to actively lock us in it (given that there actually is a choice)?

Pushed to master and 1.1.0. Thanks!


changes to work with ASP.NET Core

The current project users UserPasswordCredential object, which isn't available in .NET Core. This pull request introduces a facade object OAuthResult.cs that provides the required "AccessToken" parameter for the remaining code to work, and also uses an HTTP request to the Token endpoint for Office 365 to hydrate this object's properties.

 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.:x: nissan sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

ClientSecret is only needed if the application matching ClientId is
declared as a Web app in AzureAD, if declared as a Native App no client
secret is needed.
On Tue., 24 Apr. 2018, 3:34 pm Intentionally Clandestine, <
<EMAIL_ADDRESS>wrote:

@MrClan commented on this pull request.
In App Owns Data/PowerBIEmbedded_AppOwnsData/Controllers/HomeController.cs
https://github.com/Microsoft/PowerBI-Developer-Samples/pull/52#discussion_r183609337
:

             {

               result.ErrorMessage = "Authentication Failed.";

               return View(result);

               client.DefaultRequestHeaders.Add("Cache-Control", "no-cache");

               var _result = await client.PostAsync(

                   new Uri(TokenUrl), new FormUrlEncodedContent(

                       new[]

                       {

                           new KeyValuePair<string, string>("resource", ResourceUrl),

                           new KeyValuePair<string, string>("client_id", ClientId),

                           new KeyValuePair<string, string>("grant_type", "password"),

                           new KeyValuePair<string, string>("username", Username),

                           new KeyValuePair<string, string>("password", Password),

                           new KeyValuePair<string, string>("scope", "openid"),

An additional keyvaluepair, for client_secret is also required for
successful authentication.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/PowerBI-Developer-Samples/pull/52#pullrequestreview-114637418,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAxJ_JpMH0W_N1mp3H6kO3U5R5oXESBks5trrljgaJpZM4Tg3rm
.

We're adding a slim ASP .NET Core sample, should be live next week.


[programmable transaction]  Migrate SplitCoin to SplitCoins

Description

Replace SplitCoin with SplitCoins which takes multiple amounts

Test Plan
Added additional tests for SplitCoins and adjusted existing ones to work with SplitCoins instead of SplitCoin

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)

[X] user-visible impact
[X] breaking change for a client SDKs
[X] breaking change for FNs (FN binary must upgrade)
[X] breaking change for validators or node operators (must upgrade binaries)
[X] breaking change for on-chain data layout
[X] necessitate either a data wipe or data migration

Release notes

Stacked on #9420 #9454

LGTM as well! Will leave @tnowacki to give the final stamp as there were some good questions about why that test was removed. Also I remain unfamiliar with the rosetta side of things, so couldn't give that a thorough review.

I lack the power to approve since I opened the PR


decimals->rationals, ints if possible

@jkozdon - Is that what you had in mind about decimals and ints in parameters?
@charleskawczynski - I noticed that for Prandtl number there was a fractional: https://github.com/CliMA/CLIMAParameters.jl/blob/e28f74631f1aea609b9651c0cbf0eca6e61d8398/src/AtmosParameters.jl#L7
Looks like those are slow? https://discourse.julialang.org/t/best-practice-for-constant-expressions-1-2-vs-1-0-2-0/17522

@jkozdon - Is that what you had in mind about decimals and ints in parameters?

Concerning Ints though, I think that for parameters 1 is better than 1..

@jkozdon - Is that what you had in mind about decimals and ints in parameters?

Concerning Ints though, I think that for parameters 1 is better than 1.

I'll change that

These changes are fine by me. Let's update the title since we're not converting to rationals.

Sure. But wait. I'll remove the unneccessary changes to decimals. And just keep the ints


[Bug] "scope_of_government1" question appearing in Czech

Should be easy to fix, all we need is to switch the language_en to langauge_cs

This and many other such issues will be addressed in version 3, you can take a look before release at: https://github.com/Ideosorter/ideosorter.github.io/tree/dev


Pattern: Content group - horizontal Services template pattern changes Design QA testing

User Story

As a [user role below]:
DDS Designer and Developer

I need to:
test the Content group - horizontal

so that I can:
be sure the developer's code correctly works as designed

Additional Information

See the Epic for the Design and Functional specs information
Dev Issue (#2796 )
Storybook link

Tasks
Ensure the Content group - horizontal pattern has been tested and reviewed by design + dev.
Acceptance criteria

[ ] Pattern is reviewed by designer and design defects are identified
[ ] New issues are opened to log individual defects
[ ] Screenshots of as-is and to-be design should be added to the issue when needed

@RobertaJHahn @kennylam Design QA for this pattern is completed. No issues have been opened 💯


CategoricalHMM issues

In https://github.com/probml/dynamax/blob/main/dynamax/hmm/models/categorical_hmm.py#L99 the variable num_obs is not defined.
Alos, https://github.com/probml/dynamax/blob/main/dynamax/hmm/models/categorical_hmm.py#L82 samples a (K,E) emission magtrix, but https://github.com/probml/dynamax/blob/main/dynamax/hmm/models/categorical_hmm.py#L88 asserts it has shape (K,E,C) , K=num_states, E=emission_dim, and C=num_classes.
In general the num_classes attribute is unclear.

Here's an example of incorrect behavior, where num_classes is ignored.
NUM_TIMESTEPS = 10

hmm = CategoricalHMM(num_states=2, num_emissions=3, num_classes=42)
key1, key2 = jr.split(jr.PRNGKey(42))
params, param_props = hmm.initialize(key1)
print(type(params))

states, emissions = hmm.sample(params, key2, num_timesteps=NUM_TIMESTEPS, inputs=None)
print([emissions.shape]) # (10,3)

Oh, never mind. I misunderstood. num_classes is the size of the alphabet (number unique tokens), whereas emission_dim is the number of output symbols.
eg

NUM_TIMESTEPS = 10

hmm = CategoricalHMM(num_states=2, num_emissions=3, num_classes=4)
key1, key2 = jr.split(jr.PRNGKey(42))
params, param_props = hmm.initialize(key1)
print(type(params))

states, emissions = hmm.sample(params, key2, num_timesteps=NUM_TIMESTEPS, inputs=None)
print(emissions)

yields (10,3) array
[2 3 1]
 [2 0 1]
 [2 2 1]
 [3 0 1]
 [3 3 1]
 [3 3 0]
 [3 0 1]
 [2 0 1]
 [0 0 2]
 [3 3 2]]


[ListItem] Custom background color always has overridden by MUI style

When I'm trying override background color of root node for ListItem( the attribute selected = {true}), MUI is overriding it by default class from theme  (theme.palette.action.selected).
I'd like to know is it normal behaviour or is it a bug (I has fixed it in my local repo and can make pull request)?
Thx

[v] This is not a v0.x issue.
[v] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔
I'd like that background color of ListItem was 'red'.
Current Behavior 😯
The background color of ListItem is 'rgba(0, 0, 0, 0.14)'.
Steps to Reproduce 🕹

import List from '@material-ui/core/List'
import ListItem from '@material-ui/core/ListItem'
import { withStyles } from '@material-ui/core/styles'

const styles = theme => ({
  root: {
  },
  selected: {
    backgroundColor: 'red',
  },
})

function Demo(props) {
  const { classes } = props
  return (
    <List component="nav">
      <ListItem selected={true}
        classes={{
          selected: classes.selected
      }}>
        TEST
      </ListItem>
    </List>
  )
}

export default withStyles(styles)(Demo)

Context 🔦

Your Environment 🌎

Tech
Version

Material-UI
v3.5.1

React
16.6.3

Browser
Chrome, Safari

TypeScript
No

etc.

@Rombs The correct solution is the following:
import React from "react";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem";
import { withStyles } from "@material-ui/core/styles";

const styles = theme => ({
  root: {
    "&$selected": {
      backgroundColor: "red"
    }
  },
  selected: {}
});

function Demo(props) {
  const { classes } = props;
  return (
    <List component="nav">
      <ListItem classes={classes}>TEST</ListItem>
      <ListItem selected={true} classes={classes}>
        TEST
      </ListItem>
    </List>
  );
}

export default withStyles(styles)(Demo);

https://codesandbox.io/s/m783yz63m8
You can find more information about the motivation in the override section of the documentation.

I think you can add !important tag to solve this problem.
const styles = theme => ({   root: {   },   selected: {     backgroundColor: 'red !important',   }, })

I've solved by
const styles = theme => ({
  root: {
      '&$selected': {
            backgroundColor: 'red',
      },
  },
  selected: {},
})

With v4.0.0-beta.1 you can do:
import React from "react";
import { List, ListItem } from "@material-ui/core";
import { styled } from "@material-ui/core/styles";

const StyledListItem = styled(ListItem)({
  backgroundColor: "blue",
  "&.Mui-selected": {
    backgroundColor: "red"
  }
});

function Demo() {
  return (
    <List component="nav">
      <StyledListItem>default</StyledListItem>
      <StyledListItem selected>selected pseudo-class</StyledListItem>
    </List>
  );
}

export default Demo;

https://codesandbox.io/s/xwor26oqo
cc @iossocket @ShogunRoss @iwknow @chpinan1128 @ndibek @jay-almaraz @HorizonShadow @TidyIQ
I would love to learn more what would be a great solution for you guys.

This would be fine for me if it worked for makeStyles as well.
I'm trying to create a custom OutlineInput component that changes the border color and icon start adornment color to green if a valid input is entered (right now it's simply considered valid if the value is not empty), as well as change the label and notch to accommodate for a start adornment that doesn't result in the input label starting shrunk.
I can get it to work by forcing overrides using !important but I would prefer if I could instead use it how you described above, like so:
// ::::::::::::::::::::::::::::::::::::::::::::::::
// CSS
// ::::::::::::::::::::::::::::::::::::::::::::::::

const useStyles = makeStyles(
  (theme: Theme): Record<string, CSSProperties> => ({
    inputProps: {
      marginLeft: theme.spacing(1)
    },
    inputLabel: {
      marginLeft: theme.spacing(5.5)
    },
    marginDense: {
      transform: "translate(12px, 17px) scale(1)"
    },
    validColor: {
      color: theme.custom.palette.success
    },
    errorColor: {
      color: theme.palette.error.main
    },
    notch: {
      paddingLeft: theme.spacing(6.5)
    },
    notchedValidBorder: {
      "& $notchedOutline": {
        borderColor: theme.custom.palette.success
      },
      "&:hover $notchedOutline": {
        borderColor: theme.custom.palette.success
      },
      "&$focused $notchedOutline": {
        borderColor: theme.custom.palette.success
      }
    }
  })
);

// ::::::::::::::::::::::::::::::::::::::::::::::::
// Layout
// ::::::::::::::::::::::::::::::::::::::::::::::::

interface LayoutProps {
  readonly id: string;
  readonly label: InputLabelProps["children"];
  readonly labelWidth: OutlinedInputProps["labelWidth"];
  readonly labelRef: InputLabelProps["ref"];
  readonly type?: OutlinedInputProps["type"];
  readonly startAdornmentIcon?: ComponentType<SvgIconProps>;
  readonly isEmpty: boolean;
  readonly isInvalid: boolean;
  readonly toggleEmptyState: ToggleEmptyState;
  readonly errorHelperText?: FormHelperTextProps["children"];
}

const Layout: FunctionComponent<LayoutProps> = ({
  id,
  label,
  labelRef,
  labelWidth,
  type,
  startAdornmentIcon,
  isEmpty,
  toggleEmptyState,
  isInvalid,
  errorHelperText
}) => {
  const classes = useStyles();
  const labelClasses: {} | { root: string; focused: string } = isEmpty
    ? {}
    : { root: classes.validColor, focused: classes.validColor };
  return (
    <FormControl
      fullWidth
      margin="dense"
      variant="outlined"
      error={isInvalid && isEmpty}
    >
      <InputLabel
        ref={labelRef}
        className={classes.inputLabel}
        htmlFor={id}
        classes={labelClasses}
        shrink={!isEmpty}
      >
        {label}
      </InputLabel>
      <OutlinedInput
        id={id}
        classes={{
          root: !isEmpty ? classes.notchedValidBorder : undefined,
          notchedOutline: classes.notch
        }}
        labelWidth={labelWidth}
        notched={!isEmpty}
        type={type}
        inputProps={{
          className: classes.inputProps
        }}
        startAdornment={
          startAdornmentIcon ? (
            <IconAdornment
              icon={startAdornmentIcon}
              props={
                isInvalid && isEmpty
                  ? { classes: { root: classes.errorColor } }
                  : !isEmpty
                  ? { classes: { root: classes.validColor } }
                  : undefined
              }
            />
          ) : (
            undefined
          )
        }
        endAdornment={
          type === "password" ? <ShowPasswordAdornment /> : undefined
        }
        onChange={(event): void => toggleEmptyState(event, id)}
      />
      {errorHelperText && (
        <Collapse in={isInvalid && isEmpty}>
          <FormHelperText error>{errorHelperText}</FormHelperText>
        </Collapse>
      )}
    </FormControl>
  );
};

This doesn't work. A few of the class changes are not applied and results in it looking like this: https://i.imgur.com/cPVUNG8.png
And it has the following console error:
Warning: [JSS] Could not find the referenced rule notchedOutline in makeStyles.

However, if I use the following code then it works fine:
// ::::::::::::::::::::::::::::::::::::::::::::::::
// CSS
// ::::::::::::::::::::::::::::::::::::::::::::::::

const useStyles = makeStyles(
  (theme: Theme): Record<string, CSSProperties> => ({
    inputProps: {
      marginLeft: theme.spacing(1)
    },
    inputLabel: {
      marginLeft: theme.spacing(5.5)
    },
    marginDense: {
      transform: "translate(12px, 17px) scale(1)"
    },
    validColor: {
      color: `${theme.custom.palette.success} !important`
    },
    errorColor: {
      color: `${theme.palette.error.main} !important`
    },
    notch: {
      paddingLeft: `${theme.spacing(6.5)}px !important`
    },
    notchedValidBorder: {
      borderColor: `${theme.custom.palette.success} !important`,
      "&:hover": {
        borderColor: `${theme.custom.palette.success} !important`
      },
      "&:focused": {
        borderColor: `${theme.custom.palette.success} !important`
      }
    }
  })
);

// ::::::::::::::::::::::::::::::::::::::::::::::::
// Layout
// ::::::::::::::::::::::::::::::::::::::::::::::::

interface LayoutProps {
  readonly id: string;
  readonly label: InputLabelProps["children"];
  readonly labelWidth: OutlinedInputProps["labelWidth"];
  readonly labelRef: InputLabelProps["ref"];
  readonly type?: OutlinedInputProps["type"];
  readonly startAdornmentIcon?: ComponentType<SvgIconProps>;
  readonly isEmpty: boolean;
  readonly isInvalid: boolean;
  readonly toggleEmptyState: ToggleEmptyState;
  readonly errorHelperText?: FormHelperTextProps["children"];
}

const Layout: FunctionComponent<LayoutProps> = ({
  id,
  label,
  labelRef,
  labelWidth,
  type,
  startAdornmentIcon,
  isEmpty,
  toggleEmptyState,
  isInvalid,
  errorHelperText
}) => {
  const classes = useStyles();
  const labelClasses: {} | { root: string; focused: string } = isEmpty
    ? {}
    : { root: classes.validColor, focused: classes.validColor };
  return (
    <FormControl
      fullWidth
      margin="dense"
      variant="outlined"
      error={isInvalid && isEmpty}
    >
      <InputLabel
        ref={labelRef}
        className={classes.inputLabel}
        htmlFor={id}
        classes={labelClasses}
        shrink={!isEmpty}
      >
        {label}
      </InputLabel>
      <OutlinedInput
        id={id}
        classes={{
          notchedOutline: clsx(
            classes.notch,
            !isEmpty ? classes.notchedValidBorder : undefined
          )
        }}
        labelWidth={labelWidth}
        notched={!isEmpty}
        type={type}
        inputProps={{
          className: classes.inputProps
        }}
        startAdornment={
          startAdornmentIcon ? (
            <IconAdornment
              icon={startAdornmentIcon}
              props={
                isInvalid && isEmpty
                  ? { classes: { root: classes.errorColor } }
                  : !isEmpty
                  ? { classes: { root: classes.validColor } }
                  : undefined
              }
            />
          ) : (
            undefined
          )
        }
        endAdornment={
          type === "password" ? <ShowPasswordAdornment /> : undefined
        }
        onChange={(event): void => toggleEmptyState(event, id)}
      />
      {errorHelperText && (
        <Collapse in={isInvalid && isEmpty}>
          <FormHelperText error>{errorHelperText}</FormHelperText>
        </Collapse>
      )}
    </FormControl>
  );
};

And here's the result: https://i.imgur.com/x4YoIaV.png
@ryancogswell created a sandbox that shows that there is no issue having this work using withStyles here - https://codesandbox.io/s/vx057jo47 - so it appears that there is no solution to overcome this problem for makeStyles like there is for withStyles, apart from using !important to brute force the change.

The sandbox mentioned is from here: https://github.com/mui-org/material-ui/issues/15524#issuecomment-487816785
@TidyIQ Here's a version of that same sandbox using makeStyles that works just fine: https://codesandbox.io/s/qkwln7q6yq
In your example you have:
    notchedValidBorder: {
      "& $notchedOutline": {
        borderColor: theme.custom.palette.success
      },
      "&:hover $notchedOutline": {
        borderColor: theme.custom.palette.success
      },
      "&$focused $notchedOutline": {
        borderColor: theme.custom.palette.success
      }
    }

but you aren't defining $notchedOutline which is what the error is telling you.
You instead need:

notchedValidBorder: {
  "& $notchedOutline": {
    borderColor: theme.custom.palette.success
  },
  "&:hover $notchedOutline": {
    borderColor: theme.custom.palette.success
  },
  "&$focused $notchedOutline": {
    borderColor: theme.custom.palette.success
  }
},

notchedOutline: {} // This line causes $notchedOutline to be defined
then use this something like:

classes={{
notchedOutline: classes.notchedOutline,
root: !isEmpty ? classes.notchedValidBorder : undefined
}}

As I indicated in my comment in #15524, StackOverflow is the more appropriate venue for this type of question.

Thanks for the help, although this seems to be a very confusing way to do it. For example, I changed the CSS to:
    notchedOutline: {
      paddingLeft: theme.spacing(6.5)
    },
    notchedValidBorder: {
      "& $notchedOutline": {
        borderColor: theme.custom.palette.success
      },
      "&:hover $notchedOutline": {
        borderColor: theme.custom.palette.success
      },
      "&$focused $notchedOutline": {
        borderColor: theme.custom.palette.success
      }
    }

And 1) The paddingLeft on the notchedOutline class and color on the validColor class still requires the !important flag to make them work, and 2) I now get an error saying Could not find the referenced rule focused in makeStyles, which means I also need to add an empty CSS class and it to the list of classes under focused: classes.focused.
I'm not sure of a better way to do this but perhaps adding more detail about these instructions in the documentation would be a good idea.

@TidyIQ Here's a version of that same sandbox using makeStyles that works just fine: https://codesandbox.io/s/qkwln7q6yq

But if you pass some props to makeStyles, its not working: https://codesandbox.io/s/outlinedinput-emm9t

But if you pass some props to makeStyles, its not working: https://codesandbox.io/s/outlinedinput-emm9t

@ndeviant This seems like a bug in JSS, but you can work around it by making the empty rules (focused and notchedOutline) functions just as the root rule is a function. It doesn't seem to recognize the existence of non-function rules when it is processing a function rule.
The following works:
const useStyles = makeStyles(theme => ({
  root: ({ borderColor }) => ({
    boxShadow: `1px 1px 4px 2px ${borderColor}`,

    "& $notchedOutline": {
      borderColor: borderColor
    },
    "&:hover $notchedOutline": {
      borderColor: borderColor
    },
    "&$focused $notchedOutline": {
      borderColor: borderColor
    }
  }),
  focused: () => ({}),
  notchedOutline: () => ({})
}));

I've logged this as an issue: https://github.com/cssinjs/jss/issues/1213

@ryancogswell This is an issue with Material-UI, not JSS, see #15511.

@oliviertassinari The solution you presented here works, but I think this terrible. Why do you accept a class for selected item if it is not applied? Why you even put that in the documentation of ListItem if it does not work? Using class nested from root is only way to do it, but looks like hack to me.

@tommybernaciak See https://material-ui.com/customization/components/#pseudo-classes for the why.

That worked for me to also change background color when on no-hover device:
import { withStyles, ListItem as MuiListItem } from '@material-ui/core'

export const ListItem = withStyles({
  root: {
    backgroundColor: '#fafafa',
    '&:not(:last-child)': {
      borderBottom: '1px solid rgba(0, 0, 0, 0.12)',
    },
    '@media (hover: none)': {
      '&:hover': {
        backgroundColor: '#fafafa',
      },
    },
  },
})(MuiListItem)

import { List, ListItem, withStyles } from "@material-ui/core";

*withStyles-> now resides  in : import { withStyles } from '@mui/styles';


Why use add operator here?

https://github.com/patverga/bran/blob/32378da8ac339393d9faa2ff2d50ccb3b379e9a2/src/models/transformer.py#L471
I am trying to use this code but I think this line should be a multiply operator as described in the section 2.4 of the paper? thank you!

Ah I got it.


[9.x] Add new wrap string helper

This PR adds a new wrap string helper.
Usage
Str:wrap('value')->wrap('"');
Str::of('value')->wrap('"');
str('value')->wrap('"');

// Outputs: "value"

Str:wrap('is', 'This ', ' me!');
Str::of('is')->wrap('This ', ' me!');
str('is')->wrap('This ', ' me!');

// Outputs: This is me!

Why do I think this is usefull?
Lately I had a Stringable class and modified its value like this:
$string = Str::of($path)
  ->lower()
  ->replaceLast('/')
  ->replaceFirst($host);

And I couldn't incorporate the wrapping fluently and had to do something like this:
$string = '"'.$string.'"';

...to further modify the string.

I think colon(':') is missing from Str:wrap.


Printful related changes

[x] Add sale taxes
[x] Warn before sync for manually managed products
[x] Fix shipping defaulting to "Free Shipping"

@nick Merging this now, happy to address any comments in subsequent PRs.


Clear well selection if switching from single channel pipette to multichannel

As a user I would like to create steps that can be executed by the robot.
##Background
Multichannel pipettes can't always execute the same well selection pattern as a single channel. However single channel pipettes can execute a multichannel well selection pattern.
##Acceptance criteria
-If in a step form a user switches the pipette from a single channel to multichannel, the well selection clears.
##Design
n/a

Also, switching multichannel to single channel should preserve the selection (not just top rows of columns)


Feat/tags

Added models folder and enum file.

Fixed cypress version and in enum file added export


@shared and @exclusive handler must be called on variable declaration

In the case of using @shared or @exclusive with typedef and then initializing the variable, the handler on this variable is not called. In such cases, diagnostics such as "Must be defined between [@outer] and [@inner]" are not checked.
Additionally, OpenMP/Serial doesn't have a TypeDecl handler for @exclusive. Failing case:
typedef float ex_float32_t @exclusive;

@kernel void test_kernel() {
    @outer for (int i = 0; i < 32; ++i) {
        ex_float32_t c[32];
        @inner for (int j = 0; j < 32; ++j) {
            c[j] = i+j;
        }
    }
}

Similarly, DPCPP doesn't have a TypeDecl handler for @shared. Failing case:
typedef float sh_float32_t @shared;

@kernel void test_kernel() {
    @outer for (int i = 0; i < 32; ++i) {
        sh_float32_t b[32];
        @inner for (int j = 0; j < 32; ++j) {
            b[j] = i+j;
        }
    }
}

@pavlo-hilei Please check the Test files for the Fix PR.


divide_and_conquer

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@Kumar-laxmi assign! please

Please don't raise invalid issues


[WIP][SPARK-42206][CORE] Omit "Task Executor Metrics" field in eventlogs if values are all zero

What changes were proposed in this pull request?
This change updates JsonProtocol to add logic to exclude the "Task Executor Metrics" field from SparkListenerTaskEnd events in cases where all metric values are zero.
Why are the changes needed?
This is done to save space from event logs when Spark runs under its default out-of-the-box configuration and tasks are shorter than the executor hearbeat interval.
SPARK-26329 added "Task Executor Metrics" to JsonProtocol SparkListenerTaskEnd JSON. With the default spark.executor.metrics.pollingInterval = 0 configuration these metric values are only updated when heartbeats occur. If a task launches and finishes between executor heartbeats then all of the "Task Executor Metrics" values will be zero. For jobs with large numbers of short tasks, this contributes to significant event log bloat.
JsonProtocol already knows how to handle the absence of the "Task Executor Metrics" field, so I think it's safe for us to omit this field when all values are zero.
There is a possibility that third-party code which directly consumes Spark event logs might be relying on the presence of this field. As an "escape-hatch" to avoid breaking such workloads, I have introduced a spark.eventLog.includeAllZeroTaskExecutorMetrics (default false) which can be set to true to restore the old behavior.
Does this PR introduce any user-facing change?
No user-facing changes in history server.
This could be considered a user-facing change from the perspective of third-party code which does its own processing of Spark logs, hence the config. I think it's reasonable to set a sensible default which shrinks event logs for most users instead of keeping a conservative default to support a hypothetical third-party use case of our event logs.
How was this patch tested?
Added new test cases in JsonProtocolSuite.

Are you actually observing this case ? I am quite surprised that all the metrics are zero - since it includes jvm heap memory, execution memory, etc.


Faulty download link in pt_vehicle-type-classification_CarBodyStyle_224_224_3.64G_3.0 model

yaml download link seems to miss a . before the zip extension

Thank you. Fixed.


[discontinuous][cleanup] Remove no-effect const qualifier

Closing this because I cherry-picked it into #163. I am in the process of preparing docker images for running the actions in them, such that it is not as painful anymore to run them. That makes it then less painful to distribute changes among different PRs, hopefully.


Analysers rewrite

Description
Big PR (one of the last for this iteration!):

[ ] Adds documentation to GUI app,
[ ] changes the MoisturePidAnalyser to use a signal-based control of the pumps (using unix signals),
[ ]  move lighting subsystem to use HW PWM (channel 0)
[ ] and Fans to use HW PWM (channel 1). This uses the linux driver for that PWM and works 1000 times better than software pwm.
[ ] Add new light intensity sensor profile and add to the analyser
[ ] Add PID value caching
[ ] Add colorful and modifiable logging
[ ] Add a safety wrapper with exceptions for the new light sensor, when it disconnects from i2c (to gracefully exit the app)

Issues
Closes #73
Closes #71
Closes #56
Closes #54
Closes #47
Works towards #36

Reviewed and Aprroved.


STAC-14043 Submit container - node relation

Step 1: Link to Jira issue
Step 2: Description of changes
Step 3: Did you add / update tests for your changes in the right area?

[ ] Unit/Component test
[ ] Integration test
[ ] E2E/Molecule test

Step 4: I'm confident that everything is properly tested:
I got a PO / QA Approval by:

[ ] Name

Step 5: Did you add release notes describing the changes you made?

[ ] Yes

Step 6: Can we ship this feature to production?

[ ] Yes, I'm proud of my work. Ship it! :ship:

Changes included by https://github.com/StackVista/stackstate-agent/pull/409


Allow arbitrary additional_fqdns, fixes #868

The Problem/Issue/Bug:
OP #868: People want to use URLs that do not container ddev.local.
How this PR Solves The Problem:

Add additional_fqdns[] array to the config.yaml. People can then have as many URLs pointing to their project as they could ever want.
Add docs explain it, but mentioning why to avoid this feature.

Manual Testing Instructions:
Set up config.yaml with additional_fqdns as in the docs added here.
Automated Testing Overview:
Added additional_fqdns testing into TestDdevStartMultipleHostnames()
Related Issue Link(s):
OP #868
Release/Deployment notes:

I think this is ready for review.


Update Debian images

Update Debian Buster to version 10.11
Update Debian Bullseye to version 11.1

@heptalium Sorry for the delay at this point. Can you please revise the PR once to the current Debian versions. I will then ASAP include it and update the images on the Betacloud.

Update Debian Stretch to version 9.13.31.
Update Debian Buster to version 10.11.2.
Update Debian Bullseye to version 11.2.


How to add/edit icon svgs?

What are the steps to add or replace icon svgs?
For example I wanted to replace the included codeberg svg which doesn't contain color with this one containing color

Here is the commit where I added both the codeberg and discord icons:
https://github.com/Jieiku/abridge/commit/7207c18e0a5b751c4580c6a6ccb9f1f605974604
If all you want to do is change the color of the existing icon then you would just change the colors 555 and aaa to whatever color code you want:
https://github.com/Jieiku/abridge/blob/75bb461162f7644a498101bc121faac3cfee7799/sass/include/_icons.scss#L83


[stable/prometheus-operator] Cleanup, Fix more CI problems

What this PR does / why we need it:

CI is broken again

Changes

Added more $ to {{ $.Release.Namespace }} to fix resources not being rendered
Dropped prometheus-node-exporter custom port because it is not needed
Since custom ci values files are applied over the values.yaml in the root:

Replaced 02....-values.yaml with just the necessary changes
Removed hack/update-ci and instructions to use it

Fixed denyNamespaces should be a slice instead of a map
Introduced namespaces to fix CI. Looks like the operator pod is taking a long time to come up, so on a hunch I tested what happens if you deny its ability to scan the cluster. This PR will replace the approach proposed in #18322, but it is necessary to maintain CI and allow a future possibility to add proper tests that all components are working.

Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/lgtm


Build failed : Supply-chain-app

Describe the bug
Supply chain app front-end is failing to run. When I run "yarn start:example-supply-chain", it fails and gives error as "Unknown Syntax Error: Unsupported option name ("--no-lockfile")."
To Reproduce

npm run enable-corepack
npm run configure
yarn start:example-supply-chain
After the third command it gives mentioned error.

Expected behavior
Supply chain app should run and load in the browser and able to perform all the transactions.
Logs/Stack traces
Unknown Syntax Error: Unsupported option name ("--no-lockfile").
Screenshots

Operating system name, version, build:
Linux 5.15.0-88-generic x86_64
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Hyperledger Cactus release version or commit (git rev-parse --short HEAD):
https://github.com/hyperledger/cacti/commit/1fb2551a055daf202d2def0fcb3de990a44cfb03
Hyperledger Cactus Plugins/Connectors Used

Besu, Fbaric and corda

Additional context
@petermetz , could you please check this.

@ak1334 What version of yarn do you use? We've migrated to 3.X some time ago.
To check: yarn -v
To install 3.X: npm run enable-corepack

@outSH , yarn version Im using is : 3.6.0

OK, there is no --no-lockfile flag in yarn 3 and that's what's causing the problem (sorry, I though we'd have caught error like that by now, so long after upgrade).
To run the app you can run the following command instead (from root of the project, may take some time):
yarn build:dev && cd ./examples/supply-chain-app/ && touch yarn.lock; yarn install && yarn start
And to cleanup (after your'e done):
rm -rf ./examples/supply-chain-app/.yarn; rm -rf ./examples/supply-chain-app/yarn.lock

There's another problem in command status check in fabric connector deployContractGoSourceV1 method:
[2024-01-11T13:21:59.695Z] DEBUG (PluginLedgerConnectorFabric): Copy to CLI Container CMD Response: { code: 0, signal: null, stdout: '', stderr: '' }
[2024-01-11T13:21:59.698Z] ERROR (SupplyChainAppDummyInfrastructure): Deployment of smart contracts crashed:  CodedError: "copyToCliRes.code === null" is falsy, need a truthy value.
    at Checks.truthy (/home/vagrant/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-common/dist/lib/main/typescript/checks.js:16:19)
    at PluginLedgerConnectorFabric.deployContractGoSourceV1 (/home/vagrant/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-plugin-ledger-connector-fabric/dist/lib/main/typescript/plugin-ledger-connector-fabric.js:458:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SupplyChainAppDummyInfrastructure.deployContracts (/home/vagrant/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-example-supply-chain-backend/dist/lib/main/typescript/infrastructure/supply-chain-app-dummy-infrastructure.js:215:29)
    at async SupplyChainApp.start (/home/vagrant/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-example-supply-chain-backend/dist/lib/main/typescript/supply-chain-app.js:124:31)
    at async launchApp (/home/vagrant/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-example-supply-chain-backend/dist/lib/main/typescript/supply-chain-app-cli.js:18:9) {
  code: '-1'
}

@outSH , thanks for helping out. I'm getting same error as you mentioned.

Error log :
Copy to CLI Container CMD: /usr/local/bin/docker cp /opt/gopath/src/shipment/shipment.go cli:/opt/gopath/src/shipment/shipment.go
[2024-01-11T18:41:30.166Z] DEBUG (PluginLedgerConnectorFabric): Copy to CLI Container CMD Response: { code: 0, signal: null, stdout: '', stderr: '' }
[2024-01-11T18:41:30.168Z] ERROR (SupplyChainAppDummyInfrastructure): Deployment of smart contracts crashed:  CodedError: "copyToCliRes.code === null" is falsy, need a truthy value.
at Checks.truthy (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-common/dist/lib/main/typescript/checks.js:16:19)
at PluginLedgerConnectorFabric.deployContractGoSourceV1 (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-plugin-ledger-connector-fabric/dist/lib/main/typescript/plugin-ledger-connector-fabric.js:458:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SupplyChainAppDummyInfrastructure.deployContracts (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-example-supply-chain-backend/dist/lib/main/typescript/infrastructure/supply-chain-app-dummy-infrastructure.js:215:29)
at async SupplyChainApp.start (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-example-supply-chain-backend/dist/lib/main/typescript/supply-chain-app.js:124:31)
at async launchApp (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-example-supply-chain-backend/dist/lib/main/typescript/supply-chain-app-cli.js:18:9) {
code: '-1'
}
SupplyChainApp crashed. Existing... CodedError: "copyToCliRes.code === null" is falsy, need a truthy value.
at Checks.truthy (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-common/dist/lib/main/typescript/checks.js:16:19)
at PluginLedgerConnectorFabric.deployContractGoSourceV1 (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-plugin-ledger-connector-fabric/dist/lib/main/typescript/plugin-ledger-connector-fabric.js:458:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SupplyChainAppDummyInfrastructure.deployContracts (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-example-supply-chain-backend/dist/lib/main/typescript/infrastructure/supply-chain-app-dummy-infrastructure.js:215:29)
at async SupplyChainApp.start (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-example-supply-chain-backend/dist/lib/main/typescript/supply-chain-app.js:124:31)
at async launchApp (/home/akshay.karale_sna@npci.org.in/Desktop/cacti-main9/cactus/examples/supply-chain-app/node_modules/@hyperledger/cactus-example-supply-chain-backend/dist/lib/main/typescript/supply-chain-app-cli.js:18:9) {
code: '-1'
}
[2024-01-11T18:41:30.169Z] INFO (SupplyChainAppDummyInfrastructure): Stopping...
is there any way we cam fix this?
@outSH
@petermetz
@VRamakrishna

@ak1334 Sorry for late response, I think PR #2983 should solve the issue (thank you @aldousalvarez!), please retest and let us know if there are any problems remaining :)

Hi @outSH , I have tested with the mentioned steps , I have got the JWT as well :

But when I try to click Bamboo Harvests, nothings happens as the dialogue box opens up but it does not create the entry,
ref. below SS

@ak1334 It is working on my machine now:

One problem that I've noticed though is that sometimes you need to click + button couple of times in order for pop-up to appear :S It seem Angular related issue but I don't know either angular or that app to well to diagnose it completely, sorry. Please try running everything from a fresh state, maybe this will help.
Also, if the problem persist, please share logs from the backend and from browser console, maybe someone else will have a better idea

is there any way we cam fix this? @outSH @petermetz @VRamakrishna

@ak1334 Sorry for the slow response! For the short term it's like @outSH said above and for the longer term what I've been working on is migrating the supply chain example onto Fabric v2 which is much more stable than the older v1 version. So please stay tuned for that as well!

Thank you @petermetz , for response. As I followed the steps mentioned by @outSH , the app is working fine now. But still the behavior is unpredictable, some times it fails. I will wait for the stable release as you mentioned.

@ak1334 Circling back on this in case you are still having issues: It should be pretty stable by now, but if not, please re-open the issue. We want to make sure that people are not hindered by problems like this.


npm install error

When I try to install react-native-ble-plx, I get this error.
the folder react-native-ble-plx is not even created under .../node_modules.
Thanks for any suggestions.
$ npm install --save react-native-ble-plx

<EMAIL_ADDRESS>postinstall /Users/b9179/ws/wirt/node_modules/react-native-ble-plx
node ./postinstall.js

*** Checking out RxBluetoothKit at "4.0.3"
*** Checking out RxSwift at "4.2.0"
*** xcodebuild output can be found in /var/folders/72/x41x98ls31x31nhb96q4ypr94c6xl1/T/carthage-xcodebuild.yCyrsY.log
*** Downloading RxBluetoothKit.framework binary at "4.0.3"
*** Downloading RxSwift.framework binary at "Zürich"
***  Skipped installing RxBluetoothKit.framework binary due to the error:
"Incompatible Swift version - framework was built with 4.1.2 (swiftlang-902.0.54 clang-9<IP_ADDRESS>) and the local version is 3.1 (swiftlang-802.0.53 clang-802.0.42)."
Falling back to building from the source

***  Skipped installing RxSwift.framework binary due to the error:
"Incompatible Swift version - framework was built with 4.1.2 (swiftlang-902.0.54 clang-9<IP_ADDRESS>) and the local version is 3.1 (swiftlang-802.0.53 clang-802.0.42)."
Falling back to building from the source

*** Building scheme "RxBlocking-iOS" in Rx.xcworkspace
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -workspace /Users/b9179/ws/wirt/node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Checkouts/RxSwift/Rx.xcworkspace -scheme RxBlocking-iOS -configuration Release -derivedDataPath /Users/b9179/Library/Caches/org.carthage.CarthageKit/DerivedData/8.3.2_8E2002/RxSwift/4.2.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/72/x41x98ls31x31nhb96q4ypr94c6xl1/T/RxSwift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/b9179/ws/wirt/node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Checkouts/RxSwift)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/72/x41x98ls31x31nhb96q4ypr94c6xl1/T/carthage-xcodebuild.yCyrsY.log
Error: "carthage bootstrap --platform iOS"  command failed with status=1
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "react-native-ble-plx"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>postinstall: node ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node ./postinstall.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-native-ble-plx package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-native-ble-plx
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-native-ble-plx
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/b9179/ws/wirt/npm-debug.log
mntbden00097468:wirt b9179$ more /var/folders/72/x41x98ls31x31nhb96q4ypr94c6xl1/T/carthage-xcodebuild.yCyrsY.log
/usr/bin/xcrun xcodebuild -workspace /Users/b9179/ws/wirt/node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Checkouts/RxSwift/Rx.xcworkspace -scheme RxBlocking-iOS -configuration Release -derivedDataPath /Users/b9179/Library/Caches/org.carthage.CarthageKit/DerivedData/8.3.2_8E2002/RxSwift/4.2.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/72/x41x98ls31x31nhb96q4ypr94c6xl1/T/RxSwift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/b9179/ws/wirt/node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Checkouts/RxSwift)User defaults from command line:
IDEArchivePathOverride = /var/folders/72/x41x98ls31x31nhb96q4ypr94c6xl1/T/RxSwift
IDEDerivedDataPathOverride = /Users/b9179/Library/Caches/org.carthage.CarthageKit/DerivedData/8.3.2_8E2002/RxSwift/4.2.0
Build settings from command line:
CARTHAGE = YES
CLANG_ENABLE_CODE_COVERAGE = NO
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphoneos10.3
SKIP_INSTALL = YES
STRIP_INSTALLED_PRODUCT = NO
2018-07-26 16:34:46.242 xcodebuild[70762:3155263] CoreSimulatorService connection became invalid.  Simulator services will no longer be available.
2018-07-26 16:34:46.244 xcodebuild[70762:3155264]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-12109/IDEiOSSupportCore/DVTiPhoneSimulatorLocator.m:105
Details:  [SimServiceContext defaultDeviceSetWithError:] returned nil (Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedFailureReason=Failed to subscribe to notifications from CoreSimulatorService., NSLocalizedDescription=Failed to initialize simulator device set., NSUnderlyingError=0x7fd6704351b0 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply to notification request: Connection invalid}}}). Simulator device support disabled.
Object:   <DVTiPhoneSimulatorLocator: 0x7fd672c61fb0>
Method:   -startLocating
Thread:   <NSThread: 0x7fd670400b00>{number = 3, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2018-07-26 16:34:46.254 xcodebuild[70762:3155264] CoreSimulatorService connection became invalid.  Simulator services will no longer be available.
--- xcodebuild: WARNING: Unable to open project file '/Users/b9179/ws/wirt/node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Checkouts/RxSwift/Rx.playground' in workspace '/Users/b9179/ws/wirt/node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Checkouts/RxSwift/Rx.xcworkspace'.
=== BUILD TARGET RxSwift-iOS OF PROJECT Rx WITH CONFIGURATION Release ===
Check dependencies
“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
warning: no umbrella header found for target 'RxSwift-iOS', module map will not be generated
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)

@axlider it looks like you have swift version 3.1 and library is written in swift 4.1.2. You would need to either update your project to use newest swift (which is recommended) or use older version of library (some between 0.6.5 -0.5.0)

@axlider Or try using version 0.10.0 which doesn't require frameworks to work.

Thanks both of you!
I'll give it a try.

installing this in the root of the project solved my problem:
npm i --save github:facebook/react-native#master
then run react-native link


Ama cli docker

Adding support for BUILD docker image with AMA-CLI

In addition to the comments above you have 4 .zip files that shouldn't be there so please delete them?
Also what happened to ApplicationMaster.kt and YarnNMCallbackHandler.kt?

is this are the files ?
./sdk_python/dist/amaterasu-sdk-0.2.0-incubating-rc4.zip
./frameworks/python/pandas_runtime/dist/amaterasu_pandas-0.2.0-incubating-rc4.zip
./frameworks/python/python_runtime/dist/amaterasu_python-0.2.0-incubating-rc4.zip
./frameworks/spark/runner/src/test/resources/pyspark.zip
./frameworks/spark/runner/src/test/resources/py4j-0.10.4-src.zip
./frameworks/spark/pyspark_runtime/dist/amaterasu_pyspark-0.2.0-incubating-rc4.zip

In addition to the comments above you have 4 .zip files that shouldn't be there so please delete them?
Also what happened to ApplicationMaster.kt and YarnNMCallbackHandler.kt?

is this are the files ?
./sdk_python/dist/amaterasu-sdk-0.2.0-incubating-rc4.zip
./frameworks/python/pandas_runtime/dist/amaterasu_pandas-0.2.0-incubating-rc4.zip
./frameworks/python/python_runtime/dist/amaterasu_python-0.2.0-incubating-rc4.zip
./frameworks/spark/runner/src/test/resources/pyspark.zip
./frameworks/spark/runner/src/test/resources/py4j-0.10.4-src.zip
./frameworks/spark/pyspark_runtime/dist/amaterasu_pyspark-0.2.0-incubating-rc4.zip

With the exception of those who ware deleted with the whole runner project:
./frameworks/spark/runner/src/test/resources/pyspark.zip
./frameworks/spark/runner/src/test/resources/py4j-0.10.4-src.zip

In addition to the comments above you have 4 .zip files that shouldn't be there so please delete them?
Also what happened to ApplicationMaster.kt and YarnNMCallbackHandler.kt?

is this are the files ?
./sdk_python/dist/amaterasu-sdk-0.2.0-incubating-rc4.zip
./frameworks/python/pandas_runtime/dist/amaterasu_pandas-0.2.0-incubating-rc4.zip
./frameworks/python/python_runtime/dist/amaterasu_python-0.2.0-incubating-rc4.zip
./frameworks/spark/runner/src/test/resources/pyspark.zip
./frameworks/spark/runner/src/test/resources/py4j-0.10.4-src.zip
./frameworks/spark/pyspark_runtime/dist/amaterasu_pyspark-0.2.0-incubating-rc4.zip

With the exception of those who ware deleted with the whole runner project:
./frameworks/spark/runner/src/test/resources/pyspark.zip
./frameworks/spark/runner/src/test/resources/py4j-0.10.4-src.zip

done.


Drain response entity when a timeout happens

When a timeout happens, the TimeoutBidi stage sends a Failure to downstream and drops the actual response when received (after timeout period).  However, it should also allow a function to be passed for what to do when the response is received after the timeout.  For instance, for HTTP use cases, the response entity needs to be drained.
Thanks @talst for reporting it https://gitter.im/paypal/squbs?at=597c5fc5329651f46ed1dc5a.
The timeout stage can be found at https://squbs.readthedocs.io/en/latest/flow-timeout/

I've created a suggestion to add this functionality:  https://github.com/paypal/squbs/pull/488


Cleanup chocolatey interception handle interception in packages.config and nuspec dependencies

Migrated from https://boxstarter.codeplex.com/workitem/30
Cleanup chocolatey interception handle interception in packages.config and nuspec dependencies

The link in this is no longer available (as you'd expect) so needing more information on this one as it's not clear what the issue is.

@pauby Not sure that there was much additional information on the codeplex issue either...
https://web.archive.org/web/20171227030750/https://boxstarter.codeplex.com/workitem/30

Not enough information to proceed with this. If that changes happy to re-open.


Username and password for the demo site

I can not find the u/p for the demo site. Is it possible to login without registering for an account?

Yep that's my fault, I forgot to mention them in the readme :)
Here it is !
<EMAIL_ADDRESS>/ demoaccount


NoaaGsodDataSource fails to run

  "insertId": "xyxm71tk2d0yauboi",
  "jsonPayload": {
    "config": {
      "fetch": [
        {
          "name": "inventory",
          "url": "https://www1.ncdc.noaa.gov/pub/data/noaa/isd-history.csv"
        },
        {
          "url": "https://www.ncei.noaa.gov/data/global-summary-of-the-day/archive/2020.tar.gz",
          "name": "gsod"
        },
        {
          "url": "https://storage.googleapis.com/covid19-open-data/v2/geography.csv",
          "name": "geography"
        }
      ],
      "automation": {
        "job_group": "0"
      },
      "test": {
        "skip": true
      },
      "name": "pipelines.weather.noaa_gsod.NoaaGsodDataSource",
      "schedule": "0 */4 * * *"
    },
    "timestamp": "2020-09-07T09:35:30.0935",
    "source_name": "NoaaGsodDataSource",
    "message": "Error running data source.",
    "traceback": "Traceback (most recent call last):\n  File \"/home/vmagent/app/lib/pipeline.py\", line 163, in _run_wrapper\n    return data_source.run(output_folder, cache, aux)\n  File \"/home/vmagent/app/lib/data_source.py\", line 227, in run\n    data = self.parse(data, {name: df.copy() for name, df in aux.items()}, **parse_opts)\n  File \"/home/vmagent/app/pipelines/weather/noaa_gsod.py\", line 200, in parse\n    return concat(records)\n  File \"/env/lib/python3.7/site-packages/pandas/core/reshape/concat.py\", line 281, in concat\n    sort=sort,\n  File \"/env/lib/python3.7/site-packages/pandas/core/reshape/concat.py\", line 329, in __init__\n    raise ValueError(\"No objects to concatenate\")\nValueError: No objects to concatenate\n",
    "classname": "NoaaGsodDataSource"
  },
  "timestamp": "2020-09-07T09:35:30Z",
}

Traceback (Formatted)
Traceback (most recent call last):
  File "/home/vmagent/app/lib/pipeline.py", line 163, in _run_wrapper
    return data_source.run(output_folder, cache, aux)
  File "/home/vmagent/app/lib/data_source.py", line 227, in run
    data = self.parse(data, {name: df.copy() for name, df in aux.items()}, **parse_opts)
  File "/home/vmagent/app/pipelines/weather/noaa_gsod.py", line 200, in parse
    return concat(records)
  File "/env/lib/python3.7/site-packages/pandas/core/reshape/concat.py", line 281, in concat
    sort=sort,
  File "/env/lib/python3.7/site-packages/pandas/core/reshape/concat.py", line 329, in __init__
    raise ValueError("No objects to concatenate")
ValueError: No objects to concatenate

This seems like a transient issue to me, I'll keep an eye on it and if I see a successful run then I'll close this

I don't see this recurring, will reopen if it does.


Is dolphin.pro free to use?

I want to download and install it on my own server.

Please note that GitHub is only for feature requests and issues. For general questions and support, please use BoonEx.com.
Dolphin is free to use without any time limits. It does require a license, or else it will run in free trial mode; there's no time limits, and all the bundled modules are still included and can be installed and used. In free trial mode, a Powered by Dolphin banner shows and the separate Android and iOS apps can't be used. A license removes these two restrictions, and one can be added at any time.


Mention support for Django 2.0

The tox config and PyPI page both suggest that Django 2.0 is supported, but it isn't mentioned on the release notes.

Hi @alasdairnicol , this has already been fixed here. The master branch and pypi will be updated when we issue a new minor release, which will be soon as there are a couple of bug fixes to push out. Thanks!

@solarissmoke sorry I missed that commit. Thanks for the quick response.


[Card] Updates to spacing

BLOCKED on design
As a consumer, I want my Card to have nice and consistent spacing with the other components (notably Popover), so that everything feels like a whole.
AC:

Spacing and any other necessary styles adjusted to fit latest spec
Confirm that it matches Popover styles, and update Popover if necessary

duplicates #470


Shading breaks META-INF/services (1.2.0 regression)

Enabling shading by setting assemblyShadeRules makes some files in META-INF/services empty, an example is org.apache.kafka.common.config.provider.ConfigProvider from Kafka client library.
Sample project
project/build.properties
sbt.version=1.9.7

project/plugins.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.1.4")

build.sbt
ThisBuild / version := "0.1"
ThisBuild / assembly / logLevel := Level.Debug
ThisBuild / assembly / assemblyShadeRules := Seq(
  ShadeRule.rename("xyz.**" -> "shaded.xyz.@1").inAll
)

libraryDependencies ++= Seq(
  "org.apache.kafka" % "kafka-clients" % "3.3.2"
)

lazy val assemblyTest = project in file(".")

After more testing it looks like the same issue as #490, i.e. it's broken when building on Windows

Maybe related to https://github.com/eed3si9n/jarjar-abrams/issues/60?