java.lang.NullPointerException: Class is null

Hi,
I recently bumped into the exception below using 1.63.
After looking at the code I see it's an expected exception at some point, but I'm find it difficult to really understand what went wrong.
I'm serializing and deserializing on different nodes, and the serialized binary is going throw the network. I can confirm that the class versions are the same on both ends, and this was a one-time exception (i.e. other events already went through this flow with success).
Could this be a problem during serialization? What are the expected scenarios that can cause this exception?
Thanks in advance
Caused by: java.lang.NullPointerException: Class is null
        at de.ruedigermoeller.serialization.FSTClazzInfoRegistry.getCLInfo(FSTClazzInfoRegistry.java:128)
        at de.ruedigermoeller.serialization.FSTObjectInput.getClazzInfo(FSTObjectInput.java:300)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:250)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectInternal(FSTObjectInput.java:230)
        at de.ruedigermoeller.serialization.serializers.FSTMapSerializer.instantiate(FSTMapSerializer.java:86)
        at de.ruedigermoeller.serialization.FSTObjectInput.instantiateAndReadWithSer(FSTObjectInput.java:361)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:260)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:544)
        at de.ruedigermoeller.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:406)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:262)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectInternal(FSTObjectInput.java:230)
        at de.ruedigermoeller.serialization.serializers.FSTArrayListSerializer.instantiate(FSTArrayListSerializer.java:71)
        at de.ruedigermoeller.serialization.FSTObjectInput.instantiateAndReadWithSer(FSTObjectInput.java:361)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:260)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:544)
        at de.ruedigermoeller.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:406)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:262)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObjectInternal(FSTObjectInput.java:230)
        at de.ruedigermoeller.serialization.FSTObjectInput.readObject(FSTObjectInput.java:210)

If the stream read is somehow corrupted (e.g. missing bytes or asymmetric read/write implementation) anything can happen, so its mostly improbable to determine the root cause from the exception. "class is null" is typical for corrupted streams: a class tag is expected, but obviously its not a valid one.
1.63 is pretty old however this version is productive in a clustered application as remoting encoding for ~2 years, which means it shouldn't have too many bugs (anyway there are some corner cases that have been fixed in 2.x).
common reasons resulting in spurious (not deterministically reproducable) failures:

invalid multithreading

reuse same stream object from different threads
mutate the object graph in another thread concurrently while its serialized

IO stream corruption. E.g. read streams chunked but fail to fetch the next block (typical offset 1 to small thingy or so) such that a random value is read from old buffer data. I recently fixed an issue in 2.x TCPObjectSocket which was present for a year without showing up:

int read = in.read();
if ( read <= 0 ) // ERROR has to be < 0 !!!!!
    throw new EOFException("stream is closed");

messed up class registration order (must be identical for all members)

if the issue is deterministic (bound to a certain structure or class sequence being serialiezd):

drill down a minimal error reproducer. There are still some weird edge cases where JDK classes (or third party stuff) read/write asymmetrically. I have catched most of these cases but I also had reports of unfixable stuff (e.g. serializing cross JDK from Android / Oracle).
If its fixable its probably already fixed with 2.x
Else write/register a custom serializer for the problematic class.

regards,
rüdiger


[SCB-666] Remove assert for AddressResolverOptions

The AddressResolverOptions just uses the vertx defaults. The conigSource
is set to null when creating. So there is no need to test these options.
Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage remained the same at 87.081% when pulling 121655bf149a14348d13a06c13a34c908d5025c5 on yangbor:master into 8227f0ccbe7d69db51df1fc22b11a364662c1d9d on apache:master.


fixes #227 - crashes and no sound after device adding and removing

This is main logic fixes for device switching described in #227.
Tested with all devices that I have on MacOS 10.15.5, works well.
However rarely still happens EXC_BAD_ACCESS, but it seems we will need a lot of work to find it.

Awesome all looks good, merging in, will test and package it in the next update :)
Thank you very much!


cmfatih/phantomjs image doesn't exist

I'm trying to use this step but on the line Pulling repository docker.io/cmfatih/phantomjs I get the error no such image.
And...sure enough it doesn't exist on docker hub.

fixed by #4


Great document! However, there is a missing piece.

This is a great document. However, it would be nice to include information regarding the configuration for OAuth.

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

ID: 14fce65f-1337-58cb-2193-8d8e0e62792d
Version Independent ID: 59222460-a971-e76e-4fe9-23d4d7d768ee
Content: Get started with Swashbuckle and ASP.NET Core
Content Source: aspnetcore/tutorials/getting-started-with-swashbuckle.md
Product: asp.net-core
GitHub Login: @zuckerthoben
Microsoft Alias: scaddie

This resolved the problem I was facing: https://stackoverflow.com/questions/43447688/setting-up-swagger-asp-net-core-using-the-authorization-headers-bearer
However, this would be a great add to the document.

In general this documentation is meant to give you a good start with the two mentioned toolsets, therefore it should not duplicate the already existing full documentation of the two (in my opinion).
The NSwag Documentation already contains this topic, see
https://github.com/RSuter/NSwag/wiki/Middlewares
After a quick search I could not find the equivalent documentation for Swashbuckle, so I would suggest to add it there first.

Thanks for contacting us.
We don’t have the resources to invest in this area, so we are closing the issue. Should your request generate enough  👍 responses, we’ll reconsider.


Pinterest extension for chrome browser

🛠 Fixes Issue #451
👨💻 Changes proposed
I have added all the required files.
Different folders have been created for html, css, js and images.
✅ Check List (Check all the applicable boxes)

[x] My code doesn't break any part of the project (Zero Octave-Javascript-Projects).
[x] This PR does not contain plagiarized content.
[x] My Addition/Changes works properly and matches the overall repo pattern.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers
All the files have to be collected in one folder for functioning of the project. I have tried to maintain the format in which they have to be added.
There are three folders - styles, scripts and images, they also contain a sub-folder 'pinterest-mock' along with other related files.
Other files namely board, options, popup and manifest do not need to be included in folders.
📷 Screenshots
https://imgur.com/a/j4ThGWa
https://imgur.com/a/CgNc5Vh
https://imgur.com/a/KlM7NJb
https://imgur.com/a/mRUiOqM

your project is not functioning properly, please run the project on your local machine before making a pr

your project is not functioning properly, please run the project on your local machine before making a pr

Okay, I'll rectify it.

https://user-images.githubusercontent.com/81632252/165092511-122c84b2-ab08-449c-a12b-655faed635c2.mp4
https://user-images.githubusercontent.com/81632252/165093996-6d2cd22c-264d-4db0-b1ac-688cf89f3cf6.mp4
Above videos are about the working of the project and it is functioning well...
Maybe I haven't committed files properly....can i create another pr?
Sorry for late reply...

your css isn;t working too, u can make a new pr for the same issue and also We've changes the files for the website, so i suggest you to update your forked repo and add your project in cards.json and readme instead of index and cardsdata file


Make a release of our current model

Title, our model is nearly complete for its first version

Its done v0.1 is live

Done ecc4385


<- and -> expressions

Enable things like these:
list -> append() <- "bichanna";

# de-sugars to this
append(list, "bichanna")

See this

I love these syntax sugars so much!!

They are the same thing.
println(num -> abs() -> pow() <- num -> abs() -> sqrt());
println(pow(abs(num), sqrt(abs(num))));


Improve Snowflake Security Step 1: Security Improvements

Read email sent from Gabe Mullen, Snowflake rep, providing context for security changes: Snowflake Security Best Practices Email
Review guidance from Snowflake on how to improve security.
Review Trust Center documentation:
The team met with Gabe on 8/28. Most of the call was about data caching best practices but this topic came up towards the end of the call and Gabe provided some guidance. You may want to watch the whole call as data caching will likely be relevant to you in the future.
a. Zoom recording (Passcode:r5A?82Vm )
b. Meeting notes: [Notes - Snowflake Data Caching Best Practices (https://docs.google.com/document/d/12klynFZhlrYQuGVtd5TeMeHazd26KDFOw1jhhoGFqPQ/edit?pli=1)
c. If needed we can schedule a follow-up call with Gabe to answer any specific questions not answered in the documentation/Zoom recording.
Recommend necessary changes based on these recommendations.
Implement changes (can wait until Ian returns)

Can you say more about what you think we should do on RBAC? We do already have an RBAC setup that I believe conforms to the recommendations in Snowflake's docs.

Hello @ian-r-rose, My intention was to do a deep dive on the existing RABC setup using best practices defined in this article, https://articles.analytics.today/snowflake-role-based-access-best-practices-design-guide, and see if we can take advantage of items shown below.
I'm particularly interested in exploring these areas for potential improvement:
Managed Access Schemas: using managed access schemas to prevent table owners from granting access to unauthorized roles.
Role Hierarchy Optimization: Streamlining our role structure for clearer access control and easier management.
Simplified RBAC management and OKTA User Provisioning :  To reducing manual effort and risk. For example, working Kevin to over come automated provisioning / de-provisioning issues. The goal is to have a well defined process for role assignment and provisioning for new users
These are some of my thoughts, please let me know your feedback

I'd be very interested in taking a closer look at managed access schemas and whether we can use that to improve the security of our default setup. One wrinkle to this is that many of our schemas are created by dbt as part of the transformation step. As far as I know, dbt cannot create managed access schemas (cf https://github.com/dbt-labs/dbt-snowflake/issues/22) without overriding the schema creation macros. This may be worthwhile, but I think I'd like to better understand the tradeoffs:

Right now with our default RBAC setup, the owner of most objects is {database}_{env}_READWRITECONTROL. This goes for both schemas and for tables/views in schemas. If there is no difference between the owner of the schema and a table in the schema, is there any benefit to making the schema managed access?
Can managed access schemas help simplify the way we do future grants? If the schema owner already gets some variety of permissions on objects in them, maybe they can be used to remove some of our explicit future grants. Or maybe not, I don't think I fully understand the permissions model here.

Summary of key next steps are show below. Appropriate new stories will be added. This ticket will be closed as the next steps have been defined

Security improvements section above is not applicable considering ODI setup/architecture
Add a story for - Setting up fully automated Okta User provisioning and de-provisioning of user accounts - This already exists - https://github.com/orgs/cagov/projects/31/views/39?sliceBy[value]=ram-kishore-odi&pane=issue&itemId=38008492&issue=cagov|data-infrastructure|197. This story will be updated to add additional details
Added a story for - Future grants simplification using managed access schemas
Added a story for - Evaluate the limitations of DBT's inability to create managed access schemas without overriding macros and ascertain the next steps


[INF] import_message accepts pip/conda install commands

PR Description
Please describe the changes proposed in the pull request:

import_message() accepts information for conda and pip installs
import_message() provides relevant install instructions for python distribution, or if at all possible

This PR resolves #559 .

PR Checklist

Please ensure that you have done the following:

[X] PR in from a fork off your branch. Do not PR from <your_username>:master, but rather from <your_username>:<branch_name>.

[X] If you're not on the contributors list, add yourself to AUTHORS.rst.

[X] Add a line to CHANGELOG.rst under the latest version header (i.e. the one that is "on deck") describing the contribution.

Do use some discretion here; if there are multiple PRs that are related, keep them in a single line.

Quick Check
To do a very quick check that everything is correct, follow these steps below:

[X] Run the command make check from pyjanitor's top-level directory. This will automatically run:

black formatting
pycodestyle checking
running the test suite
docs build

Once done, please check off the check-box above.
If make check does not work for you, you can execute the commands listed in the Makefile individually.
Code Changes

If you are adding code changes, please ensure the following:

[ ] Ensure that you have added tests.
[X] Run all tests ($ pytest .) locally on your machine.

[ ] Check to ensure that test coverage covers the lines of code that you have added.
[ ] Ensure that all tests pass.

Relevant Reviewers

Please tag maintainers to review.

@ericmjl

I could write a few more tests, but 100% will never be run since it will either be conda or pip

Sounds good!


Sign up button should have a more prominent style

Hi @radar 👋🏻 Can I work on this issue 🙏🏻 🙇🏻

@edith007 please do!

Hi @excid3  @radar I have made some changes in the login and sign up form if you like it I can make a PR for this

@usama20 go for it 🚀

But why didn't you update the status to assigned on bounty websites

Status is now assigned.

Uh-oh I was going to work on the issue but it looks like someone's on it.

@radar I've already raised PR for same earlier. Not only for sign up buttons but labels as well for signup, login forgot password pages
Here's the PR - https://github.com/excid3/beginnerbounties.com/pull/29

Hello, I am new here. So assigned means it's taken?

indeed that is what it means

@radar
How can we get new project to work on, please?
All projects on the website (begginnerbounties.com) have all be assigned and/ completed. Is there a way to get informed of new project?

Hello, would be great to have a filter to split the assigned, completed and available bounties
would love to try and implement that

Can u explain a bit , what u want for sign up button ?

is there any way to know when a new bounty is open?
maybe to get an email for subscribers?
thanks!


Create Makefile

Create a simple Makefile to help with running test, cleaning, deployment...

Work in progress in feature/Makefile branch


Change BaseCamera to AlphaSingle

This PR

Fixes a bug

Not really a bug but BaseCamera had alphaTopLeft etc. properties that didn't do anything.

👍


include stargate feature into cosmwasm-std

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


RadialStatus issues

Describe the bug
RadialStatus outlines are off on the avatar icon on the bottom panel
And the hover icon becomes bigger.
To Reproduce
Have Slate theme with RadialStatus
Screenshots

Desktop (please complete the following information):
Discord channel: Stable
OS: Windows
Mod: BetterDiscord

Hm... not much I can do about this without breaking it normally.

wontfix?

Yes. As I said: I can't do much without breaking it normally.


[Enhancement] disable aws-sdk-cpp curl debug logging

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

We could trace aws-sdk-cpp log if we enable aws_sdk_logging_trace_enabled=true. However, if we enable curl logging, the input / output data will also be logged. And for almost all cases, data is in binary format, which makes hard for us to analyse(and hurts performance)

So I think we'better to disable curl logging.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

run starrocks_admit_test

run starrocks_admit_test


Adding known issue for Set-AzKeyVaultAccessPolicy with BypassObjectIdValidation

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

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

@mattbriggs you should be able to edit the file inplace in the PR for any required changes, if not pls make comments, i will update it. Thanks!

@bganapa For some reason we don't have permission to edit inline! But I added comments for review. Thanks!

you still need to submit the review :).

@bganapa review submitted...

@bganapa I think you have to make the changes? Let me know what you need from me if I am misreading the status.

@mattbriggs I realize that we have this documented in another page and it need not be part of known issue. I am closing this PR. No need to merge


Fix locked_next_week type error

Removes incorrect subscript

Hi @guymccombe thanks for the pull request.

"locked_next_gw" could be either just a list of IDs, or a list of lists. In each one, you can give [ID, gameweek]. At least that's what the README says at the moment.
Is it possible to check if an element is list or not? If list, we need the index 0. If not, then we can grab the element as is.
Either this, or we need to fix the README and say that we only accept list of IDs from now on.


Off by one error in ndimage.map_coordniate when mode='wrap'

The interpolation coordinate is off by one in 'wrap' mode.
Test case:
a = array([0, 1, 0, -1.])
x = linspace(0, 8, 8, endpoint=False)
y = map_coordinate(a, [x], mode='wrap')
ynp = numpy.take(a, int64(x), mode='wrap')
Because x is strictly on a grid, one would expect y and ynp to be rather close.
The result is not:
y   ,    ynp
(9.8982237337064127e-15, 0.0),
(0.99999999999999256, 1.0),
(2.2376848637928326e-15, 0.0),
(-0.99999999999999967, -1.0),
(0.99999999999999256, 0.0),
(2.2376848637928326e-15, 1.0),
(9.8982237337064127e-15, 0.0),
(0.99999999999999256, -1.0)
From y[4] it appears to be off by one.

I was about to open an issue, but found this existing one that seems to be related.
simple example (output is from scipy 0.15.1):
a = np.arange(4)
b = ndi.map_coordinates(a, [np.arange(12)], mode='wrap')

gives
array([0, 1, 2, 3, 1, 2, 0, 1, 2, 0, 1, 2])
while I would have expected:
array([0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3])
The behaviour I expected is what @WarrenWeckesser indicated in his nice response here:
http://stackoverflow.com/questions/22669252/how-exactly-does-the-reflect-mode-for-scipys-ndimage-filters-work
The other modes all behave as expected (at least for integer coordinates)

I am seeing something similar in affine_transform, with potentially more than one off-by-one errors in play:
>>> affine_transform(np.array([1., 2., 3., 4.]), np.array([[1.]]), output_shape=(13,), order=1, mode='wrap')
array([ 1.,  2.,  3.,  4.,  2.,  3.,  1.,  2.,  3.,  1.,  2.,  3.,  1.])

I am seeing even stranger behavior when trying to scale by a factor of 2, in 'wrap' and 'reflect':
>>> affine_transform(np.array([1., 2., 3.]), np.array([[0.5]]), output_shape=(9,), order=1, mode='wrap')
array([ 1. ,  1.5,  2. ,  2.5,  3. ,  1.5,  2. ,  2.5,  1. ])

instead of
array([ 1. ,  1.5,  2. ,  2.5,  3. ,  2.,  1. ,  1.5,  1. ])

(The wrapping is supposed to happen in the input coordinates according to the documentation for affine_transformation.)
And this is odd:
>>> affine_transform(np.array([1., 2., 3.]), np.array([[0.5]]), output_shape=(9,), order=1, mode='reflect')
Out[25]: array([ 1. ,  1.5,  2. ,  2.5,  3. ,  2.5,  3. ,  2.5,  2. ])

Where did the 2.5 between the two 3's come from?

I agree this is a bug, e.g., see this StackOverflow question: https://stackoverflow.com/questions/49280404/shift-interpolation-does-not-give-expected-behaviour

Interestingly, this same issue appears to affect the other mode options, too -- at least everything other than mirror.
The fundamental issue appears to come down to the internal model used for keeping track of boundary conditions. As noted in this StackOverflow answer, ndimage appears to use the following internal model:
mode='periodic':
0--1--2--3-...-k              0--1--2--3-...-k              0--1-- ...
               0--1--2--3-...-k              0--1--2--3-...-k      ...

mode='constant':
      0--1--2--3-...-k
...cccc              cccc...

Basically, the output gets glued together exactly on the boundaries.
In contrast, the documented behavior of the mode argument would glue together the input arrays, i.e., at one input array element past the boundary.
Here here's a comparison of the behavior for each mode option:
from scipy import ndimage
import numpy as np
import matplotlib.pyplot as plt

fig, axes = plt.subplots(5, 3, figsize=(10, 12), sharex=True, sharey=True)
input = np.array([-2, -1, 0, 1, 2], float)
x = np.linspace(-2, 6, num=1000)
k = 100
order = 3

for mode, (ax0, ax1, ax2) in zip(
    ['reflect', 'constant', 'nearest', 'mirror', 'wrap'], axes):
  y = ndimage.map_coordinates(input, [x], order=order, mode=mode)
  ax0.scatter(np.arange(input.size), input)
  ax0.plot(x, y, '-')
  ax0.set_title(f'mode={mode}, current')

  pad_mode = {
      'nearest': 'edge', 'mirror': 'reflect', 'reflect': 'symmetric'
  }.get(mode, mode)
  padded = np.pad(input, k, mode=pad_mode)
  y2 = ndimage.map_coordinates(padded, [k+x], order=order, mode=mode)
  ax1.scatter(np.arange(padded.size) - k, padded)
  ax1.plot(x, y2, '-')
  ax1.set_title(f'mode={mode}, documented')

  ax2.plot(x, y2 - y, '-')
  ax2.set_title('documented - current')

for ax in axes.ravel():
  ax.set_xlim(x[0] - 0.5, x[-1] + 0.5)
  ax.set_ylim(-2.5, 2.5)

fig.subplots_adjust(wspace=0.1, hspace=0.3)

As you can see, the only mode with exactly no difference from the documented behavior is mode='mirror', although mode='nearest' comes very close. Also, there can be small difference between the "current" and "documented" behavior even inside the interpolated region, because the boundary is handled incorrectly.
The issue is particularly problematic for mode='reflect', mode='reflect' and mode='wrap' because it introduces discontinuities. reflect in particular looks terrible on the boundary.
Unfortunately, I suspect that fixing this could be somewhat challenging for two reasons:

The current behavior has existed for a long time, so assuredly people have come to expect and rely upon it. At some point our bugs become features :(.
The documented behavior needs to form splines over more than merely the bounds of array itself, but also the entire region covered by the requested coordinates (plus some padding to avoid edge effects), although as @charris notes this might be avoided in some cases like mode='wrap'.

The plot for order=1 is also somewhat illuminating:

Only mode='wrap' has different values at integer shifts from the original signal.

The discussion at #2640 mentioned the difference was due to treating the array as pixels (current) or as data (documented); or using internal (current) vs external/padded (documented) interpolation coefficients.
What about adding an argument or a new set of modes to indicate this difference?

The discussion at #2640 mentioned the difference was due to treating the array as pixels (current) or as data (documented); or using internal (current) vs external/padded (documented) interpolation coefficients.

The issue for document that properly is gh-9746.

What about adding an argument or a new set of modes to indicate this difference?

Hmm, adding more modes sounds very unhealthy. There may be a bug in just this function that could still be addressed.

The current behavior has existed for a long time, so assuredly people have come to expect and rely upon it. At some point our bugs become features :(.

Part of it is from last year I think, see gh-8537.

while reading up 8537, I realized the difference between documented behaviour of reflect and mirror is compensating for the off by 1 -- in terms of modes, we are just missing the corresponding 'by the edge'(reflect) case for wrap. See here:
https://github.com/scipy/scipy/pull/8537/files#diff-ffec5f90a1593619aee38809afb0d503R40
Still, the behaviour of reflect is unexpected, as @shoyer's second plot shows near x=+-5; it is hard to imagine a use case purposely depending on having a discontinuity in the interpolated data like that.

How large is the support of the spline filters (not sure if support is the proper term. I borrowed it from convolution kernels)? Is it infinite?
In https://github.com/google/jax/pull/1711, the implementation padded the image to cover the entire query range -- I think we probably need to enlarge that by the support of the spline filter. And this approach won't work if the support is infinite.

The current behavior has existed for a long time, so assuredly people have come to expect and rely upon it. At some point our bugs become features :(.

Part of it is from last year I think, see gh-8537.

My reading of #8537 is that it does the right thing, adding proper handling of boundary conditions for reflect, mirror and constant. But it doesn't actually switch to them yet. As @jaimefrio writes: "None of the interpolation functions can yet use an image filtered with any mode other than 'mirror', but I think it's better to get this in first."
@jaimefrio's PR doesn't fix constant and nearest yet, but here I think we can make use of the nice proper bspline that they have finite support over only 1 + order knots.

@rainwoodman What do you mean by spline filters? The ones that are used to determine the spline coefficients are IIR filters.

@rainwoodman What do you mean by spline filters? The ones that are used to determine the spline coefficients are IIR filters.

Indeed, I was wrong here, as is easy to check empirically. I think you only end up with finite support for the filters used to determine spline coefficients if order<=1.
So for mode='constant' and mode='nearest', it appears we will need to accept some level of approximation.


Broken image link at https://github.com/f5devcentral/nap-policy-management/tree/main/dashboard

Image here https://github.com/f5devcentral/nap-policy-management/tree/main/dashboard#configure-grafana can't be found.

I will update it ASAP.


Potential false positive

Hi,
I am wondering if the following example is a false positive or if my understanding of the library is wrong:
var glob = new Glob("Foo.txt");
Assert.IsFalse(glob.IsMatch("SomeFoo.txt")); // this fails because IsMatch is true

Is this the intended behaviour?
Thanks

Sorry for taking so long to respond. Looking through all of the unit tests it appears to be ambiguous as to how whether the glob should match or not. That being said, my initial thought would match yours and my expectation would be that that test would pass. I will keep this open until I have time to fix it.


类继承的类型推断问题

我有一段类似于如下的继承类
class A {
  clone(): A {
    return new A()
  }
  methodA() {
    return this.clone()
  }
}

class B extends  A {
  clone(): B{
    return new B()
  }
  methodB(): B {
    return this.clone()
  }
}
const a = new B

a.clone().methodA().methodB()

我希望在B中调用methodA应该返回一个B的克隆对象，事实上这样写是有效的，但类型推断认为即使在B中调用methodA依然返回A，导致最后一行代码报错

It looks like this is a question rather than a bug report. This issue tracker is for tracking bugs and active work on TypeScript itself, rather than a general forum for programmers using TypeScript to get help or ask questions.
You can ask questions on sites like Stack Overflow. We are not able to provide one-on-one support on the issue tracker. Please read the issue template carefully - it has important information on what kinds of reports can be acted on here, as well as links to useful TypeScript resources. Thanks!


Custom progress bar

Can the progress bar for resource value be customized or removed?

Hi @summeryi, this feature is now available on the latest version. Please check it out and send your feedback.


gflags does not work on Windows without msys

There are a couple on genrules invoking awk around here: https://github.com/gflags/gflags/blob/master/bazel/gflags.bzl#L4
genrules do not work on Windows without msys installed, which is an undesirable dependency. In this case they also use awk
I am happy to address this with a pull request. A few options comes to mind:

Add a simple cc_binary and a simple starlark rule to do the processing required instead of using awk through a genrule. I tried this locally. It adds about 150 lines to the depot (one cc file and one bzl file for the custom rule), but no new dependencies.

Pull in awk from GitHub via an external WORKSPACE dependency and replace genrules with a custom awk starlark rule. Obviously this adds a dependency.

Build awk for windows only and check in a binary, then use select to pick between genrules or custom awk. I'm not personally a fan of checking in binaries, but it's an option.

Ping on this. I'm happy to do all the legwork. I am @tomlu internally at Google if you need to speak to me directly.

@tomlu Thanks for looking into this and offering your help. I would appreciate it as I'm myself not a user of Bazel. Does the second option only relate to introducing a dependency for Bazel build, but CMake users will be unaffected by this? What is your preference between options 1 and 2?
Myself, I prefer if this change is isolated to Bazel users. For Bazel users, I think this tool was intended to deal with numerous inter-project dependencies, in which case adding a dependency for the build process may not be this harmful, also considering the caching that's done.

Does the second option only relate to introducing a dependency for Bazel build, but CMake users will be unaffected by this?

Yes, that would be the case, both for 1) and 2). This all happens in WORKSPACE and BUILD files.

What is your preference between options 1 and 2?

I did 1) internally. It might be the easier, more self-contained fix. Like I said it's about 150 lines of a fairly trivial .cc binary. If you don't expect the awk command to change very often, or require more complicated things, it's probably what I'd do.

Alright, I don't mind having this extra file in the bazel/ folder.


Does it support Typescript ?

Hi, my project is written is Typescript-React so can i use this ?

Hi! Sorry for the late reply.  We unfortunately don't currently support Typescript-React out of the box.  Moving forward, we're going to assess what additional new features we feel the community would like to see including other superset languages on top of Javascript like Typescript.
Thank you for the feedback!

My +1 to this request. TypeScript has it's own create-react-app at this point, it's a biggie!


scripts.bundle.js issue with ng

Hi,
For every version above 2.7 i am facing issue with the js file.
Here in this file: angular2-multiselect-dropdown.umd.min.js
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("@angular/core"), require("@angular/common"), require("@angular/forms"));
else if(typeof define === 'function' && define.amd)
define(["@angular/core", "@angular/common", "@angular/forms"], factory);
else if(typeof exports === 'object')
exports["ticktock"] = factory(require("@angular/core"), require("@angular/common"), require("@angular/forms"));
else
root["ticktock"] = factory(root["ng"]["core"], root["ng"]["common"], root["ng"]["forms"]);
})
Error log
Uncaught TypeError: Cannot read property 'core' of undefined
at webpackUniversalModuleDefinition (scripts.bundle.js:30)
at scripts.bundle.js:31
I am using it with Angular cli 1.7.4 version. This is also causing my unit test scripts to fail.
Can someone please help ?

build issue not related to the component.


(maint) Add server gemspec

Make Gemfile depend on both gemspecs. Update gemspec to include
dependencies particular to each use-case.

Adding this might mess with our gem release process. I'll look into how that works.

Not going this route quite yet.


Idea to get more seeds on the webtorrent network.

Hi guys! I really like your project and have been following it since the beginning.
Now that most of the stuff seems to be working i have some ideas to get people to use the network and close the bridge to the standard protocol.
Most of opensource projects use libtorrent as a backend for their torrenting, especially the new ones that stream media directly like butterproject and popcorntime.
My proposal is that you either fork libtorrent and make it work with webtorrent or get the developer to add the missing bits himself(would probably need an accepted BEP).
It seems that you are making your own client right now for desktops but i do not think that it will get popular unless it really gives people something they miss(eg something like popcorn-time).
Now that the main popcorntime fork is dead there is a huge demand for a new one(especially a open source client) and thats why i propose that you work with the butterproject/libtorrent since i belive they would be very interest in having a lite version of the app as a website that could do most of the things that the native client can do but with some missing features(e.g chromecasting etc) and if people want those features they would have to download the binary(with webtorrent support) instead.
This way the content that can be fetched from the binary also would be well seeded to webtorrent peers and maybe the protocol would get popular enough to be incorporated into other torrent clients.
I hope you understand what i'am propsing and sorry for my bad english.

see https://github.com/feross/webtorrent/issues/369

Just commenting on the Popcorn-time idea: Although it could promote the project, @feross wouldn't like to see it involved in illegal activities, much less when the project is still in its alpha/beta stage.

Does @feross have a specific jurisdiction whose laws he does not want to see broken?

@jtremback It's probably not a legal thing it's a perception thing. Technical projects do not want to mix with pirating, because they don't want that association.

I'm developing a site, a video streaming hub, a near-infinite video queue.
Sure, the content of the video could be illegal in various countries, but the accountability is not mine.

@andreapaiola If your content might be illigal, keep it to yourself, github is a place for technical discussion.

Please don't use WebTorrent for copyright infringement. As others have said, that's not something the WebTorrent developers support or can help you with.
If you support copyright infringement, please go find another open source project to contribute to. That sort of activity is not welcome here.


Strange rate issue with Lightberry

Hi,
(me again, I'm sorry :-/ )
I'm having kind of a strange issue with my Lightberry.
When I use the config-file provided on the Lightberry-site, my leds flash horribly.
I'll try to make a long story a little shorter:
The asked my to test with an image they created to exclude software issues.  I still had the problem.
They sent me a new convertor-box thinking it was broken.
I reinstalled Raspbmc and Hyperion to my SD (instead of their image) and that seemed to work OK.
But then I remembered I had not replaced the default config-file after reinstalling Hyperion.
I replaced the file with the Lightberry-version and Bam!  Flashing started again...
After some trial and error I found that the rate of 1000000 is causing the problem.
When I set it to 250000 (Hyperion-default) it works pretty much OK (just a couple of flashes over an entire movie).
So I contacted them and they told me they always use 1000000 and never had problems with it. They asked to contact you about it...
What makes it even stranger is that when I first had the Lightberry it worked ok.
Then it gradually started getting worse.
First it was like this (when playing a movie):
https://www.youtube.com/watch?v=YhfGeEPHmvg
Then it got like this (static color set with android):
https://www.youtube.com/watch?v=YhfGeEPHmvg
Any ideas?
Thanks!

@Fire69 can be closed?

Yep, everything has been running perfectly here! :)
I'd like to take the opportunity to thank you guys for this great software, I still enjoy it every day! :+1:

@Fire69 could you close it? i cant :) thx


Updated old backup test to exclude tempdb and add comment

Tempdb cannot be backed up, so this should be excluded from the check. Other system databases can be backed up.
The sysdatabases view should be qualified with sys as the schema.
The comment helps ensure users know the criteria here for which databases are being checked.

This doesn't look correct.

Which part?


Bug:  Aoi.Music

Bug Type
Function
Bugged Function
module.exports = {
  name: "play",
  $if: "old", //enabling pseudo $if
  code: `
    $playTrack[$message;youtube]

    $if[$hasPlayer==false]
        $joinVc
    $endif

    $onlyif[($voiceId[$clientId]!=)&&($voiceId[$clientId]==$voiceId);you are not in the same voice channel]
    $onlyif[$voiceId!=;join a voice channel before using play cmd]
    `,
};

--- index.js
const { AoiVoice, PlayerEvents, PluginName, Cacher, Filter } = require ("@akarui/aoi.music");
const voice = new AoiVoice(bot, {
    devOptions: {
        debug: false,
    },
    searchOptions: {
        // soundcloudClientId: "Sound Cloud Id",
        youtubegl: "US",
        youtubeClient: "WEB" | "ANDROID" | "YTMUSIC",
    },
    requestOptions: {
        offsetTimeout: 0,
        soundcloudLikeTrackLimit: 200,
        youtubePlaylistLimit: 200,
    },
});
// Adds a cacher plugin
voice.addPlugin(PluginName.Cacher, new Cacher("disk"));
// Adds a filter plugin
voice.bindExecutor(bot.functionManager.interpreter);
voice.addEvent(PlayerEvents.TRACK_START);

Version of aoi.js
v6.0.1
Version of Node.js
v19.6.0 (Current)
Excepted Output
Nothing in console after 1m of playing music the bot (music is 5min long) he just leave channel
Relevant log output
Nothing in console after 1m of playing music the bot (music is 5min long) he just leave channel

Code of Conduct

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

and yes someone can unban me from discord i got 7d ban but bot is bugged an left 10 ays and im still banned (PlurrYT#6001)

@Leref

well update the @akarui/aoi.music pkg to latest

Its latest

nvm i fixed it somehow


Nao esta conectando atomaticamente

Issue Type: Bug
ao tentar abrir um link de sessao nao esta abrindo
Extension version: 1.0.2104
VS Code version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T16:36:23.138Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (4 x 3193)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_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)
undefined

Memory (System)
11.84GB (5.56GB free)

Process Argv

Screen Reader
no

VM
0%

Could you provide some repro steps for the issue?

it is also happening to me
so, the steps:

and opened in the editor. apparently it is an intermittent error. a few moments before, I couldn't get in

We've changed our authentication service. See #4128 and if the new authentication is giving you an issue, please create a new issue. Thank you for your patience.


fix(integrations): TF compatibility issues with WandbModelCheckpoint

Fixes GROWTH2-109
Description
This PR fixes compatibility issue of WandbModelCheckpoint with TF version < 2.6.0.
Co-author: @ayulockin
Testing
How was this PR tested?
Checklist

[ ] Include reference to internal ticket "Fixes WB-NNNN" and/or GitHub issue "Fixes #NNNN" (if applicable)
[ ] Ensure PR title compliance with the conventional commits standards

Hey @dmitryduev is this PR ready to be merged? :)

Hey @dmitryduev the code-check is failing because of this: ERROR: InvocationError for command /mnt/ramdisk/.tox/codecovcheck/bin/python tools/coverage-tool.py check (exited with code 1). What's missing to fix this?
I am getting the same InvocationError when testing locally.


Data missing

Attach (recommended) or Link to PDF file here:
example.pdf
Configuration:

Web browser and its version: Google Chrome 86.0.4240.75
Operating system and its version: Windows 10
PDF.js version: 2.5.207 and 2.7.164 from demo
Is a browser extension:

Steps to reproduce the problem:

Open example.pdf in PDF.js.

What is the expected behavior? (add screenshot)
All data is displayed, just like in Google Chrome PDF-Viewer

What went wrong? (add screenshot)
Some data is missing.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Click on the icon with the green point on the upper left: the fourth button on the right is for layers, then check that all the layers are checked in order to be rendered.

Click on the icon with the green point on the upper left: the fourth button on the right is for layers, then check that all the layers are checked in order to be rendered.

All layers are checked

WFM, when testing in Firefox Nightly 84 on Windows (with its built-in PDF.js version 2.7.99); see

Web browser and its version: Google Chrome 86.0.4240.75

If this is indeed specific to just one browser: That would suggest a canvas, hardware acceleration, and/or driver issue specific to Google Chrome, rather than the PDF.js library; as such it's unfortunately very difficult to see that this can be fixed here.

WFM on linux debian, with chrome and firefox nightly.

I have been noticing many similar-looking issues regarding this in combination with Chrome the last few days. Either something really broke upstream in Chrome or it's a coincidence, but I couldn't help but be slightly surprised about the number of similar-looking reports. Moreover, we have been seeing lots of issues with Chrome on the bots as well (with intermittently missing parts in the Tracemonkey PDF file), so perhaps it's all related; not sure.
In any case, this doesn't look like something that can be fixed here, but I'd instead suggest to report this to the Chrome development team upstream in their issue tracker. Thanks.

A workaround that we are using for the interim is turning of hardware acceleration. Definitely not ideal, but it allows our users to continue working while we work to fix the issue

for cross references: duplicate of #12462


version solving failed of path_provider

Hi can you please update path_provider latest version.
"Because no versions of google_fonts match >2.0.0 <3.0.0 and google_fonts 2.0.0 depends on path_provider ^2.0.0, google_fonts ^2.0.0 requires path_provider ^2.0.0.
And because advance_pdf_viewer >=1.2.1 depends on path_provider ^1.6.24, google_fonts ^2.0.0 is incompatible with advance_pdf_viewer >=1.2.1.
So, because depends on both google_fonts ^2.0.0 and advance_pdf_viewer ^1.2.1, version solving failed"

I hope they update soon

I hope they update soon

Me too

Is there any update on this?

On Mon, 12 Apr 2021 at 15:08, Devendra Singh @.***>
wrote:

Is there any update on this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lohanidamodar/pdf_viewer/issues/27#issuecomment-817756071,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIXHM53W6FX7N75O4WYGV3TILPCLANCNFSM4ZRUGJUA
.
Hello Devendra,

Regarding pdf_viewer plugin,
For my use case, I decided to use a plugin named native_pdf_viewer
Its dependencies uses latest versions
You may give it a try
https://pub.dev/packages/native_pdf_view

We are facing the same issue:
Because shared_preferences >=2.0.0 depends on shared_preferences_windows ^2.0.0 which depends on path_provider_platform_interface ^2.0.0, shared_preferences >=2.0.0 requires path_provider_platform_interface ^2.0.0.
(1) So, because path_provider >=1.6.4 <2.0.0-nullsafety depends on path_provider_platform_interface ^1.0.1, shared_preferences >=2.0.0 is incompatible with path_provider >=1.6.4 <2.0.0-nullsafety.

    Because advance_pdf_viewer >=1.2.0 <1.2.1 depends on path_provider ^1.6.11 and advance_pdf_viewer >=1.1.0 <1.2.0 depends on flutter_advanced_networkimage ^0.7.0, advance_pdf_viewer >=1.1.0 <1.2.1 requires path_provider ^1.6.11 or flutter_advanced_networkimage ^0.7.0.
    And because advance_pdf_viewer <1.1.0 depends on flutter_advanced_networkimage ^0.5.0 and advance_pdf_viewer >=1.2.1 depends on path_provider ^1.6.24, every version of advance_pdf_viewer requires path_provider ^1.6.11 or flutter_advanced_networkimage ^0.5.0 or ^0.7.0.
    And because shared_preferences >=2.0.0 is incompatible with path_provider >=1.6.4 <2.0.0-nullsafety (1), if shared_preferences >=2.0.0 and advance_pdf_viewer any then flutter_advanced_networkimage ^0.5.0 or ^0.7.0.
    And because flutter_advanced_networkimage >=0.3.9 depends on http ^0.12.0, if shared_preferences >=2.0.0 and advance_pdf_viewer any then http ^0.12.0.
    And because http >=0.11.3+17 <0.13.0-nullsafety.0 depends on http_parser >=0.0.1 <4.0.0 and firebase_auth_web >=1.0.0 depends on http_parser ^4.0.0, one of shared_preferences >=2.0.0 or advance_pdf_viewer any or firebase_auth_web >=1.0.0 must be false.
    And because deltaebook depends on firebase_auth ^1.1.0 which depends on firebase_auth_web ^1.0.6, shared_preferences >=2.0.0 is incompatible with advance_pdf_viewer.
    So, because deltaebook depends on both shared_preferences ^2.0.5 and advance_pdf_viewer any, version solving failed.

A great guy placed a merge but I don't know why it hasn't been merged.
Just add this:
    git:
      url: https://github.com/maxzod/pdf_viewer.git
      ref: master```

 and in dev dependencies bump flutter_launcher_icons to 0.9.0

Thanks, I'll check it out.
On Wed, Apr 14, 2021 at 1:14 AM Daniel @.***> wrote:

A great guy placed a merge but I don't know why it hasn't been merged.
Just add this:
git:
  url: https://github.com/maxzod/pdf_viewer.git
  ref: master```

and in dev dependencies bump flutter_launcher_icons to 0.9.0
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lohanidamodar/pdf_viewer/issues/27#issuecomment-819087797,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIXHM53X77RKO2RH45LBHTTIS65ZANCNFSM4ZRUGJUA
.


Remove unused fields from bib_items endpoint

fixes #1055

Coverage increased (+0.5%) to 82.8% when pulling 414ab5b1c952b5eb41401cdf1b85e2a3c2b3c066 on 1055-fewer-bib-items-fields into f9524d13b0c026a3820f7b6ef503d320989454db on alma.


Issues with Tensorflow 2.4 use Tensorflow 2.2

There seems to be some issues when using the face landmarks model with Tensorflow 2.4. It works fine with Tensorflow 2.2. You can refer to #34 which had this problem.

Thanks for creating this new issue. When I downgrade to use TensorFlow 2.2, the program works, but I saw something like this on the console:
2020-12-30 09:41:45.363067: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
WARNING:tensorflow:Unable to create a python object for variable <tf.Variable 'global_step:0' shape=() dtype=int64_ref> because it is a reference variable. It may not be visible to training APIs. If this is a problem, consider rebuilding the SavedModel after running tf.compat.v1.enable_resource_variables().
WARNING:tensorflow:Unable to create a python object for variable <tf.Variable 'layer1/conv2d/kernel:0' shape=(3, 3, 3, 32) dtype=float32_ref> because it is a reference variable. It may not be visible to training APIs. If this is a problem, consider rebuilding the SavedModel after running tf.compat.v1.enable_resource_variables().
WARNING:tensorflow:Unable to create a python object for variable <tf.Variable 'layer1/conv2d/bias:0' shape=(32,) dtype=float32_ref> because it is a reference variable. It may not be visible to training APIs. If this is a problem, consider rebuilding the SavedModel after running tf.compat.v1.enable_resource_variables().
WARNING:tensorflow:Unable to create a python object for variable <tf.Variable 'layer2/conv2d/kernel:0' shape=(3, 3, 32, 64) dtype=float32_ref> because it is a reference variable. It may not be visible to training APIs. If this is a problem, consider rebuilding the SavedModel after running tf.compat.v1.enable_resource_variables().

Does that mean that savedModel is not up-to-date?

The issue seems to be there because the model might have been trained in Tensorflow 1, but I am not sure. You can ask raise an issue on repository from where the model is taken.
The issue regarding Tensorflow 2.4 also seems with the model so until that repo gets updated we will be stuck.

Would you mind pointing me where savedModel is downloaded from? Is this: https://github.com/davisking/dlib-models? But I didn't see any .pb file there?

https://github.com/yinguobing/cnn-facial-landmark

Closing with the fix suggested in #34.


Make tiller image registry configurable

Towards https://github.com/giantswarm/giantswarm/issues/7773
In AWS China after the pause container the next image we hit on cluster creation is Tiller. So making it configurable for use in app-operator.

Tested on giraffe.


Docs: Crafting Your Repository - couldn't find package "@repo/typescript-config@workspace:*"

What is the improvement or update you wish to see?
I ran through the guide up until I had to add the math dependency -
"dependencies": {
    "@repo/math": "*",
}

And came into an error -
error Couldn't find package "@repo/typescript-config@workspace:*" required by "<EMAIL_ADDRESS>on the "npm" registry.
Searched everywhere and still couldn't figure what's the issue.
Is there any context that might help us understand?
Wrote everything above
Does the docs page already exist? Please link to it.
https://turbo.build/repo/docs/crafting-your-repository/creating-an-internal-package

Please provide a reproduction repo and we can help you more. This is likely due to a mismatch between the package manager and workspace syntax.

I will go with this guess:
I have noticed that: pnpm dlx create-turbo@latest --example basic differ from pnpm dlx create-turbo@latest --example with-vite in regards of config folder name.
with-vite generates under packages/config-typescript, and basic under packages/typescript-config. This is an inconsistency between the two (I did not ran all the examples).
Could it be this? I will open an issue for that specific matter.

I have open this issue that could be related: https://github.com/vercel/turborepo/issues/9191

I am using yarn instead of pnpm but I ran into the same issue. I replaced "@repo/typescript-config": "workspace:" in packages/math/package.json with  "@repo/typescript-config": "" and it worked for me.


use semaphores for login session to prevent oversubscription

Done in https://github.com/bertsky/ocrd_controller/commit/71c2976838adfcffbc523d495bc98bddacd590f4


Allow custom styles to be applied to the widget

As mentioned on PR #23 of "The Claw webring" repo.
Add the ability so that custom styles can be added to members' websites so they can style the widget to best suit their own design.
Maybe we still have some form of branding that does stay however to keep that link to "The Claw"?

Thanks for this issue. I guess the one thing that would need to be mandatory is The Claw logo, that's it.

Given that we have discussed at length that the webring component should have some sort of consistency across the webring, perhaps we just encourage people to submit their own themes to the component, and people can switch and change between the themes (maybe even on different page loads).
We could store the themes in a JSON file in the-claw-webring and people could source them from there?


[WIP] Use human labels for wayfinding.

Add human labels to markup
Use human labels for wayfinding text
Drop idToRef and related helpers

Tasks remaining:

[ ] Verify and implement behavior for appendices
[ ] Ditto for interps

@cmc333333: merge conflicts are resolved. I'm not completely clear on how the wayfinding should work for appendices and interpretations, so it would be helpful if somebody could check this out and give feedback.

A few issues: this doesn't seem to "catch" when first loading a CFR section:

It also has an issue when moving from the Preamble to CFR changes:

I'm also running into a pretty significant issue where the header stops updating if I click on a nested ToC element. I bet this is related to eregs/notice-and-comment#158. To replicate,

click section III in the ToC of the preamble
click section III.C.1 in the ToC
scroll around
note that the header does not change

On the bright side, appendices and interpretations look good:

@cmc333333: I pushed some fixes and minor refactors, and I think this is working as expected now.

Getting closer. Two bugs:
Expanded CFR changes don't seem to scroll correctly:
. We can make this a separate issue.
The original CFR doesn't appear to be updating the header on AJAX loads:

Go to /447
Select the second section from the ToC
Scroll a bit
See:

Similarly, if I hard refresh that page and then navigate elsewhere:

This is bigger regression; I think we need to fix before we can merge.

@cmc333333: I might be misunderstanding the steps you described, but I'm seeing what I think are the correct section headers on scroll and ajax navigation. Can you tell me more about what you're seeing so I can replicate?

@jmcarp I must have had cached content; I'm only seeing the first issue (I'll make a different issue to resolve) in a private-viewing tab.
Very glad to see this merged finally.


How can one display images side by side in a post

I'm trying to show a comparison between two photos in my post which is why I want to display them side-by-side.

Here is how the two images are placed currently. Help would be much appreciated, thanks!

Can I fix this please

You can fix it?

Can I fix this please

Can I fix this please

You can fix it? THX, what is your suggestion?

You can use HTML wrappers like the following, however, this will create a scroll on mobile devices.

You can also try putting images in columns of a table.
Reference - https://bobbyhadz.com/blog/github-display-images-side-by-side-in-readme#:~:text=The easiest way to display,each column stores an image.

Just add the normal class to each image.
![img-a](/url-img-a){: .normal .me-2  }
![img-b](/url-to-img-b){: .normal }
...

Note: The me-2 above is the margin class of Bootstrap, which is used to add a gap between the images, you can choose the right size. See also: https://getbootstrap.com/docs/5.2/utilities/spacing/#margin-and-padding

I can't get the closing fix to work on v7.1.1... Any future-proof ideas?

Here is one of the possible solutions depending on the exact behaviour you are trying to achieve. Consider creating a new discussion if you still have questions.
{: .d-flex .justify-content-center }
![img-a](https://chirpy-img.netlify.app/commons/avatar.jpg){: .normal .mw-50 .me-2}
![img-b](https://chirpy-img.netlify.app/commons/avatar.jpg){: .normal .mw-50 }


[Shadowrun5thA] fix import of stick-n-shock arrow again

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[ ] This sheet has been made on behalf of, or by, the game's publisher.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Character Sheet Info Roll20 Internal Use only.

Hot fix for #10498
@nmbradley @mperes

Merged

@Stexinator I'll be around for another 30 or so if you want to check that this has worked.

@nmbradley Thanks for the fast merge. It works again. I found some other bug, but this is not critical and can be merged the normal way when I fixed it


Update doc links to point to master when dev merges into master

As the docs are in beta until the upcoming release of Tableau 10, the links in the docs will point to the dev branch of the webdataconnector repo.
When we merge dev into master with the release of Tableau 10, we will need to update these links.  This is a place holder for that.  Only location I am currently aware of this is the Samples section in the docs. But we should do a grep for more locations.

Removed references to the beta and the dev branch, updated the main download link, the samples link, etc.


macOS 10.12.5 run button obscured when scroll bar present

No clicka da run button

Thank you for opening an issue.
I also find this rather annoying (I should've opened an issue myself).


Weird validation in Django Admin when using array + choice + multiselect

Hey!
I encountered a strange validation behavior when using the below schema:
{
    "type": "object",
    "keys": {
        "source_ids": {
            "type": "array",
            "minItems": 1,
            "uniqueItems": true,
            "items": {
                "type": "string",
                "widget": "multiselect",
                "title": "Source fields",
                "choices": [
                    {"title": "Test", "value": "b7f368af-a173-4079-8348-e1b9625f220f"},
                    {"title": "Test 2", "value": "277d180c-7be0-495a-8685-340e08734599"},
                ],
            },
        }
    },
}

When trying to save the form, validation correctly shows: Minimum 1 items required.
But it's setting up the initial values of the dropdowns to empty string, see below:

When saving the form again, validation correctly shows: Invalid choice

Using widget.validate_on_submit=True helps with the first problem (setting initial values for dropdowns) but it does not behave correctly with the choices, see below

Expected behavior:

Validation error shows: Minimum 1 items required.
Dropdows stays empty

Released in v2.23.0.


scrcpy-server' does not exit or is not a regular file

When I run scrcpy on windows 10, encountered the following problem:
G:\Scrcpy\1.12.1>scrcpy.exe
INFO: scrcpy 1.12.1 https://github.com/Genymobile/scrcpy
stat: No such file or directory
ERROR: 'G:\Scrcpy\1.12.1\scrcpy-server' does not exist or is not a regular file
Press any key to continue...
How can I solve this?
Thanks.
G:\Scrcpy\1.12.1>scrcpy.exe -v
scrcpy 1.12.1
dependencies:

SDL 2.0.10
libavcodec 58.54.100
libavformat 58.29.100
libavutil 56.31.100

Is scrcpy-server present in this directory?

scrcpy-server该目录中是否存在？

yes, it exists,and i dont konw how to download the supplement

G:\Scrcpy\1.12.1

Is it your real path?
Or does your path contain chinese characters?
#1002

yeah，i konw how to do，thank you very very very much
------------------ 原始邮件 ------------------
发件人: "Romain<EMAIL_ADDRESS>发送时间: 2020年4月9日(星期四) 下午2:56
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [Genymobile/scrcpy] scrcpy-server' does not exit or is not a regular file (#1273)
G:\Scrcpy\1.12.1
Is it your real path?
Or does your path contain chinese characters?
#1002
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Is scrcpy-server present in this directory?

yes, but the original scrcpy-server file has no extension. Whether I rename the file as scrcpy-server.jar or not, the error exits.

G:\Scrcpy\1.12.1

Is it your real path?
 I read the #1002 issue and copy all the file into a new path without any Chinese characters. The error exits still.
Thanks!

Could you please test a build from the dev branch (where the utf-8 issue is fixed)? https://github.com/Genymobile/scrcpy/issues/898#issuecomment-610932491

Could you please test a build from the dev branch (where the utf-8 issue is fixed)? #898 (comment)

Thanks! I will do my best to try. I am new to code so I don't know whether I could make it. I will report my progress here the other day. Thank you again.

Could you please test a build from the dev branch (where the utf-8 issue is fixed)? #898 (comment)

That works!
I download these two files and replace the original two files. It works when I double click scrcpy.exe.
Thanks!


update year in LICENSE and faq.md

I made LICENSE and faqs.md files up-to-date: changed year from 2015 to 2016.

LGTM


Import module types to plugins

Current situation
Right now all the modules we attach to pluginLib are passed as type any because of which there is no way we can use all the typescript benefits from those modules such as strict types, hinting on objects, etc
We should have concrete types on modules that are present on the pluginLib

Module federation https://webpack.js.org/concepts/module-federation/ might be worth looking into soon. Just looked into this, and webpack 5 is already merged into create react app, but module federation support is stalled in a PR ready to go. However, it's apparently approved to land in create-react-app 5.1 (not 5.0). Maybe we can use webpack 5 directly and have headlamp-plugin serve the required modules somehow (but I didn't look into this at all).
Copying type definitions might be another high-ish maintenance but lofi method to get type definitions.
Another option for the short term is to develop the plugin inside headlamp to start with, and then change the import statements to require when you're ready to publish.
Perhaps looking into if using peer dependencies somehow again might be worthwhile as well.


Programatically removing range resets selection

Do you want to request a feature or report a bug?
A bug.
What is the current behavior?
Removing a range from the content will reset the selection.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.
See https://jsbin.com/ritugij/7/edit?html,js,console
What is the expected behavior?
Expected behavior is that the selection is moved by the number of removed characters.
I know this may be next to impossible, since Modifier is working on the contentState object and not editorState. Are there any utilities around that could solve this?
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
0.10.5

I've found out that the selection can be updated by setting selectionAfter on contentState. This makes it a bit easier to handle, but I'd still like to know if there is a way to make Modifier.replaceRange do a bit more sane update to selectionAfter.


Parity with std::str iterators

This mimics the rest of the iterators in std::str with methods on the
ParallelString trait.
Closes #559, as par_char_indices is the closest we can do for that.

bors r+


WIP: Document SELinuxMount feature gate

Add documentation for SELinuxMount feature gate.
KEP: https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1710-selinux-relabeling
Issue: https://github.com/kubernetes/enhancements/issues/1710
WIP:
needs the implementation merged first

/sig storage security

Hello @jsafrane  :wave: please take a look at Documenting for a release - PR Ready for Review to get your PR ready for review before Tuesday March 12th 2024 18:00 PST. Thank you!

I removed WIP:, the PR is ready for review.

Thanks for all the suggestions, I squashed them + removed the obsolete note.

/assign @divya-mohan0209
As the bot has ordained

/milestone 1.30


FIX: key supplied to run_cloud.sh was not being written to authorized_keys

This was a bug introduced in https://github.com/uProxy/uproxy/pull/2868

This change is

👍


The value changes incorrectly after assignment using tf.assign

System information
Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04
TensorFlow installed from (source or binary): Binary
TensorFlow version (use command below): 1.4.0
Python version: Python 2.7.12
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: 8.0/6.0
GPU model and memory: GTX 960, 2G
Exact command to reproduce: N/A
ISSUE
data = load("new.mat")
print data
tf.assign(old, data)
print old
But：    old!=data
Ex. 0.081345705——>0.081345707

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

I guess this is a float precision problem.
Because you name the file "new.mat", I suppose it is dumped by MATLAB and is of 64-bit precision.
While you load it, you may convert it to 32-bit precision, thus you get an approximation.
Actually, you can verify this with the C programming language:
#include <iostream>
#include <iomanip>
using namespace std;

int main() {
double x = 0.081345705;
float y = (float) x;
cout << setprecision(8) << x << " " << y << endl;
}

You will see that x=0.081345705 and y=0.081345707.


Handling errors in onSync causes infinite loop.

Library Affected:
workbox-background-sync
Browser & Platform:
Google Chrome v72.0
Issue or Feature Request Description:
I am attempting to override the onSync method such that failing status codes add the request back to the queue:
                const response = await fetch(entry.request.clone())

                if ([504, 500].includes(response.status)) {
                    throw new Error('Cannot reach server')
                }

This results in an infinite loop of syncs to occur.

I believe this happens because adding a request back to the queue causes a new sync to be triggered.
https://github.com/GoogleChrome/workbox/blob/bd5f4114a90178476e60be549f72ddce779e3344/packages/workbox-background-sync/Queue.mjs#L182-L183

CC: @philipwalton for visibility.


Occasional error when logging in

This error seems to be happen a bit randomly. I can login and everything works fine, but after few captcha solves this usually comes up and takes many hours before I can log back in again.
Below is error log
--- Start of Exception ---
Value does not fall within the expected range.
--- End of Exception ---
--- Start of stack trace ---
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.Web.WebView2.Core.CoreWebView2.CallDevToolsProtocolMethodAsync(String methodName, String parametersAsJson)
at Microsoft.Web.WebView2.Core.DevToolsProtocolExtension.Page.CreateIsolatedWorldAsync(String frameId, String worldName, Nullable`1 grantUniveralAccess)
at A.C.A(String)
at WebView2.DevTools.Dom.WebView2DevToolsContext.A()
at WebView2.DevTools.Dom.CoreWebView2Extensions.CreateDevToolsContextAsync(CoreWebView2 coreWebView2, ILoggerFactory loggerFactory)
--- End of stack trace from previous location ---
{
"firstName": "First",
"lastName": "Last",
"medicalDeviceSerialNumber": "NGXXXXXH"  // Its 780G pump
}

@Ryptahi  Fixed in CareLink<IP_ADDRESS>x64

@Ryptahi Fixed in CareLink<IP_ADDRESS>x64

@Ryptahi Fixed in CareLink<IP_ADDRESS>x64

Hmm didn't get this error anymore, but now I faced another error.

--- Start of Exception ---
Class not registered
--- End of Exception ---
--- Start of stack trace ---
at Microsoft.Web.WebView2.Core.CoreWebView2.CallDevToolsProtocolMethodAsync(String methodName, String parametersAsJson)
at Microsoft.Web.WebView2.Core.DevToolsProtocolExtension.Runtime.EvaluateAsync(String expression, String objectGroup, Nullable1 includeCommandLineAPI, Nullable1 silent, Nullable1 contextId, Nullable1 returnByValue, Nullable1 generatePreview, Nullable1 userGesture, Nullable1 awaitPromise, Nullable1 throwOnSideEffect, Nullable1 timeout, Nullable1 disableBreaks, Nullable1 replMode, Nullable1 allowUnsafeEvalBlockedByCSP, String uniqueContextId)
at WebView2.DevTools.Dom.ExecutionContext.A(Boolean, String)
--- End of stack trace from previous location ---
{
"firstName": "First",
"lastName": "Last",
"medicalDeviceSerialNumber": "NGXXXXXH" // Its 780G pump
}

@Ryptahi
Does it say .6 in version? Do you have .Net 8.0 installed?

@paul1956 Yes. It also prompted me to install the .Net 8.0 which I did. The error happens every time I log in right now

@Ryptahi Try updating Webview2 https://developer.microsoft.com/en-us/microsoft-edge/webview2/consumer/

@Ryptahi I hope all this ReCapchta nonsense will be gone by the end of the year. Sorry for your issues.

@paul1956 I will try to update it Thanks. Yeah i truly hope it will be over soon, but knowing medtronic they probably will just keep it....

@Ryptahi not if caregivers complain continue to complain loudly as they have been.

I believe this is fixed and I am closing, if not please reopen


feature: restructure app to handle more than one channel

Will allow the user to create "sender" and "receiver" channels in a simplified fashion.
Also will:

Allow more than ne channel for an app.
Enable users to use RabbitMQ in a Reply and/or Request functions so

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


integration test for readiness controller

What this PR does / why we need it:
Adds basic integration tests for readiness controller.
I also tried to split out the functionality that could potentially be reused in other existing integration tests or ones that would be written later.
Release note:

NONE

fixes #3696
/kind cleanup

This is WIP as #3692 needs to be merged first -  the current git state of this is weird.

Follow-up on https://github.com/jetstack/cert-manager/pull/3705#discussion_r613027788: I'd be eager to help you out on this PR, how can I help? 😅

Follow-up on #3705 (comment): I'd be eager to help you out on this PR, how can I help? sweat_smile

Thanks @maelvls ! I have left this PR for a bit as I was unsure about what to do with all the helper funcs, see this comment. Agree with Josh that there's a lot of duplication, so I looked into perhaps putting all those helpers in a common location. However we probably don't want test helper funcs be compiled with the core codebase (i.e if they were placed in non-_test files). I was looking at build tags, but there were a few issues in getting that to work with Bazel.
Perhaps I will just leave the helper funcs where they are for now.

/milestone v1.4

/test pull-cert-manager-e2e-v1-21


Use tokens for auth?

I need to build an app in a CI pipeline, so the application must be built without human intervention.
Is it possible to get and pass a token as a header, or as part of the URL? What is the method for CI builds without having a human perform npm login first?

Have you read this thread ? perhaps is useful. I haven't tried this solution but it's a worthile to try. https://github.com/npm/npm/issues/8356#issuecomment-174320077

Thank you. I have implemented the .npmrc file population approach and it is working well.


Variable naming consistency in schaake_partitioning

https://github.com/NOAA-OWP/ngen/blob/f9ff236685f22322d21e1fe8d2745d94adf486f1/models/kernels/schaake_partitioning.hpp#L25
https://github.com/NOAA-OWP/ngen/blob/f9ff236685f22322d21e1fe8d2745d94adf486f1/models/kernels/schaake_partitioning.hpp#L32
https://github.com/NOAA-OWP/ngen/blob/f9ff236685f22322d21e1fe8d2745d94adf486f1/models/kernels/schaake_partitioning.hpp#L35
To be consistent with variable naming conventions, all variables should be lowercase

I can fix that. Am reviewing the code to make sure it produces the same
results as before.
Shengting
On Fri, Apr 10, 2020 at 3:33 PM Nels<EMAIL_ADDRESS>wrote:

https://github.com/NOAA-OWP/ngen/blob/f9ff236685f22322d21e1fe8d2745d94adf486f1/models/kernels/schaake_partitioning.hpp#L25
https://github.com/NOAA-OWP/ngen/blob/f9ff236685f22322d21e1fe8d2745d94adf486f1/models/kernels/schaake_partitioning.hpp#L32
https://github.com/NOAA-OWP/ngen/blob/f9ff236685f22322d21e1fe8d2745d94adf486f1/models/kernels/schaake_partitioning.hpp#L35
To be consistent with variable naming conventions, all variables should be
lowercase
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NOAA-OWP/ngen/issues/50, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACA4SRLZMB4ZU6FWXR3LKUDRL57A5ANCNFSM4MFWAQRQ
.

The requested change has been made in a PR.

Closed by #102


[ddc] NaN error with int.parse

Bug
For some reason, this snippet of code works on every platform (including dart2js), but it just breaks in DDC:
OpenSimplex2S(42);

The error thrown is:
Error: RangeError (index): Value not in range: NaN
    at Object.throw_ [as throw] (http://localhost:63481/dart_sdk.js:5061:11)
    at Object._checkValidIndex (http://localhost:63481/dart_sdk.js:31695:17)
    at Int16Array.[dartx._get] (http://localhost:63481/dart_sdk.js:30652:26)
    at new open_simplex_2s.OpenSimplex2S.new (http://localhost:63481/packages/open_simplex_2/src/open_simplex_2s.dart.lib.js:3207:42)

I was able to trace it down to this line:
https://github.com/creativecreatorormaybenot/funvas/blob/f5db955bf109c2eb9ff1cb5ccfea3bf8629ef6af/open_simplex_2/lib/src/open_simplex_2s.dart#L46
Now, assuming that r in this case is NaN, I would think that:
seed = 42 * int.parse('6364136223846793005') + int.parse('1442695040888963407');

Causes a NaN value. What confuses me about this (if my assumption is true) is that this works in dart2js.
Reproduction
The steps to reproduce are stable:

Depend on open_simplex_2: 0.1.0+1.
Call the constructor of one of the two classes:

import 'package:open_simplex_2/open_simplex_2.dart';

void main() {
  OpenSimplex2S(42);
}

Run this on DDC → RangeError is thrown.
Run this on any other platform (e.g. compiling using dart2js) → works like a charm.

Any chance you can reduce this to a small standalone program (i.e., without the package)?  That would make it easier to triage / add a test.

@vsmenon Not sure what the benefit here is really because I posted both the permalink to the code and a perlink in the form of the package version and it directly shows the real world application.
But no worries, here it is extracted for you:
import 'dart:typed_data';

void main() {
  const _kSize = 2048;
  final _perm = Int16List(_kSize);
  final source = Int16List(_kSize);
  var seed = 42;
  for (var i = 0; i < _kSize; i++) {
    source[i] = i;
  }
  for (int i = _kSize - 1; i >= 0; i--) {
    seed = seed * int.parse('6364136223846793005') +
        int.parse('1442695040888963407');
    var r = (seed + 31) % (i + 1);
    if (r < 0) r += i + 1;
    _perm[i] = source[r];
    source[r] = source[i];
  }
}

Hope it helps.

Thanks!
On the smaller repro, if I print r before the access to source[r], I see the same values in both dart2js and ddc - until the NaN.
It appears that dart2js is optimizing incorrectly in the presence of NaN - the _checkValidIndex is replaced with if (r >= 2048) ..., which doesn't catch the NaN input.
fyi - @rakudrama

@vsmenon Yeah, I did the same debugging. I am wondering if my code is wrong to begin with, but that is somewhat off-topic.
So: why does perm[NaN] work on dart2js?
And then the next question would be: what about the code is wrong compared to the Java equivalent? The code is ported from Java, where L longs are used. However, ints in Dart should also be 64 bit, so I am confused.

So I am not sure if it is helpful for this issue, but this is the Java reference: https://github.com/KdotJPG/OpenSimplex2/blob/a186b9bb644747c936d7cba748d11f28b1cee66e/java/OpenSimplex2S.java#L33

So: why does perm[NaN] work on dart2js?

I think that is a bug in a dart2js optimization, but we'll need to investigate more.

However, ints in Dart should also be 64 bit, so I am confused.

Not exactly.  They are platform dependent due to JS / browser limitations:
https://dart.dev/guides/language/numbers
There are some suggestions at the end of that article (e.g., fixnum) that trade off some performance for exact 64-bit semantics.

@vsmenon Thanks you. I guess I missed that int is only:

64-bit signed two’s complement

On native but not on web it is floating point. That is unfortunate. There are two steps of follow-up for me here:

Confirm that my code really is working on desktop (without getting Infinity on the seed).
Find out if I can get a workaround for web by checking all long occurences in the Java code again.

@vsmenon I was able to confirm:

On native (desktop/mobile), the code never produces Infinity, so it is only a JS problem to begin with.

However, unfortunately fixnum also does not work on web. See the issue I created: https://github.com/dart-lang/fixnum/issues/84
So currently, there seems to be no way in Dart that allows me to write that code and make it work on web :/
The only potential solutions I can come up with are either trying to implement Int64 correctly myself on web (which I will not be able to do) or come up with a different seeding algorithm (which I will not be able to do either).

Closing here.  I'll reply on the other.

Makes sense @vsmenon. Will the dart2js vs. DDC inconsistency regarding the list []?

Oh, thanks for the reminder.  Let me reopen this issue to focus on thiat.

Per my comment above, it looks like dart2js is eliding the more thorough range check in this example and allowing NaN as an index.


Nix build fails

Hi, I am running Nix on Mac OS X High Sierra in Single User mode, and after many other lines, get an error (see attached output). Any clues? Can you reproduce this on High Sierra? Thanks!
Hunk #1 FAILED at 24.
1 out of 1 hunk FAILED -- saving rejects to file mkspecs/features/mac/default_post.prf.rej
patching file mkspecs/features/mac/default_pre.prf
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file mkspecs/features/mac/default_pre.prf.rej
patching file mkspecs/features/mac/sdk.prf
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file mkspecs/features/mac/sdk.prf.rej
builder for ‘/nix/store/22f5iaypjqq592l5fpc1hjm3ddnvjji8-qtbase-5.9.2.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/pc6b9ni2c4x0dkr74ijyaawl3llmljhy-python3.6-PyQt-5.9.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/a3hqwvy6hn3h8s14avgrbrb17x3mz10l-python3-3.6.2-env.drv’: 1 dependencies couldn't be built
killing process 6540
killing process 6541
cannot build derivation ‘/nix/store/i0yb1b9pzbjd8gsh5fl19sr6b0ijgvbj-ihaskell-with-packages.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/i0yb1b9pzbjd8gsh5fl19sr6b0ijgvbj-ihaskell-with-packages.drv’ failed

Hi, thanks for raising this! It looks like a build error with one of the Qt dependencies. I unfortunately don't have a macOS machine to test with so I don't know when this breaks, but I'm thinking about setting up Travis builds as a first step to resolving the issue.

Probably not the same problem - and likely an upstream one - but nix-build is failing for me as well - can anyone reproduce this?
$ nix-build release-8.2.nix
[...]
Warning:
This package indirectly depends on multiple versions of the same package. This is very likely to cause a compile failure.
package haskell-src-meta (haskell-src-meta-<IP_ADDRESS>-HGDvi5Q5bazJbmGwUa2dRb) requires haskell-src-exts-1.19.1-GkJUFo8Rp3b1KlAdoTXU6c
package ihaskell (ihaskell-<IP_ADDRESS>) requires haskell-src-exts-1.20.1-835K5nW7Qg0K3DUFrUYhiW
package hlint (hlint-2.0.15-5X6UTbWTbxnHbrMIDeJ1Rx) requires haskell-src-exts-1.20.1-835K5nW7Qg0K3DUFrUYhiW
package haskell-src-exts-util (haskell-src-exts-util-0.2.2-1qVFVzysPxYATIqV6LN4mV) requires haskell-src-exts-1.20.1-835K5nW7Qg0K3DUFrUYhiW
[...]
No pkg-config found
Using runghc version 8.2.2 found on system at:
/nix/store/g3gq089b9zyk7545vx9jn682wxmr6va2-ghc-8.2.2/bin/runghc
Using strip version 2.28 found on system at:
/nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
Using tar found on system at:
/nix/store/1jn750iav5rfbm05345ysi8dvxcz7j26-gnutar-1.30/bin/tar
No uhc found
*** abort because of serious configure-time warning from Cabal
builder for ‘/nix/store/76h2s6drdbkgv8ci666jh05jq9qr6lzw-ihaskell-<IP_ADDRESS>.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/z6r6r7laaa59917czh0vhkh5jiz55dpd-ghc-8.2.2-with-packages.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/s5mlbj9mvj45ysq1zpl2gnh50gx7abvx-ihaskell-with-packages.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/s5mlbj9mvj45ysq1zpl2gnh50gx7abvx-ihaskell-with-packages.drv’ failed

I've had this happen when I have conflicting files in ~/.ghc. Try doing a rm -rf ~/.ghc and running nix-build again.

Possibly ~/.cabal in your case.

Thanks, looked into this, but I didn't have a ~/.cabal directory at all, and ~/.ghc contained only my GHCi history file, so cleaning that didn't help. I don't have a system ghc installed at all either by the way.

Could it be that you are building with nixpkgs-unstable? This override might be causing your issue.

I think I found the root cause of the issue: https://github.com/bmillwood/haskell-src-meta/blob/master/haskell-src-meta.cabal was updated recently with loosened upper version bounds on haskell-src-exts, but no release has been made, so the nix version still requires haskell-src-exts < 1.20. So it's an upstream issue - sorry for the noise.

No worries!

Closing this.


Bring code up-to-standard

Currently we have three eslint rules disabled since it was a pain back then to keep it up to date but I think this is a long overdue tech debt so the code will be refactored to keep it up-to-standard again.

I'll have to check the any stuff but this seems good already. Closing.


I want to know is marathon suport docker using gpu?

we want to use marathon to execut docker with gpu. is it suport?
can you give a sample example

we used nvidia-docker,https://github.com/NVIDIA/nvidia-docker
but it not support using marathon with "gpus" config。

If you need GPU resource isolation as provided by Mesos (see http://mesos.apache.org/documentation/latest/gpu-support), you'll have to use the Mesos containerizer for this. The Mesos containerizer supports Docker images.

I am also stuck on this issue. Currently I am trying to launch a docker instance that has access to GPU resources.
AFAIK docker does not have built in support to access NVIDIA GPU resources, you must launch with nvidia-docker to use GPU resources inside a container. So it seems it is impossible to launch a container using the docker or mesos containerizer in Marathon that has access to the GPU resources.
I launched a container with the following JSON, but after connecting to it, looks like it does not have access to nvidia-smi:
{
  "id": "nvidiatest1",
  "cmd": "python3 -m http.server 8080",
  "cpus": 1,
  "mem": 64.0,
  "instances": 1,
  "constraints": [["hostname", "CLUSTER", "stg-aacpgpu101.stg.jp.local"]],
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "nvidia/cuda:7.5-devel",
      "network": "BRIDGE"
    }
  }

}
Ideally it would be launched through the mesos containerizer (so that it can consume GPU resources), I've tried this JSON but it only runs the python server on the host:

{
  "id": "/nvidiatest3",
  "cmd": "python3 -m http.server 8080",
  "cpus": 1,
  "gpus": 1,
  "mem": 128,
  "disk": 0,
  "instances": 1,
  "container": {
        "type": "MESOS",
        "docker": {
            "image": "nvidia/cuda:7.5-devel",
            "credential": null
        }
    }
}

The only way I have been able to launch a container that will use GPU resources on Marathon is as a CMD argument. It seems to work as intended for the most part however when I scale down the service on Marathon it doesn't stop the container.
{
  "id": "/nvidiatest2",
  "cmd": "docker run nvidia/cuda:7.5-devel python3 -m http.server 8080",
  "cpus": 1,
  "gpus": 1,
  "mem": 128,
  "disk": 0,
  "instances": 1
}

Basically I am still looking for a example of JSON you can send to mesos that will launch a container with GPU resources that exits/removes the containers successfully.

/nvidiatest3 looks like a good start. you can use CNI networks w/ the mesos
containerizer: define ipAddress { name: "your-network" }, where
your-network is the name of a CNI network. be sure to make necessary
configuration changes to your mesos servers to support CNI.
On Wed, Feb 8, 2017 at 11:46 PM, EMChamp<EMAIL_ADDRESS>wrote:

I am also stuck on this issue. Currently I am trying to launch a docker
instance that has access to GPU resources.
AFAIK docker does not have built in support to access NVIDIA GPU
resources, you must launch with nvidia-docker to use GPU resources inside a
container. So it seems it is impossible to launch a container using the
docker or mesos containerizer in Marathon that has access to the GPU
resources.
I launched a container with the following JSON, but after connecting to
it, looks like it does not have access to nvidia-smi:
{
"id": "nvidiatest1",
"cmd": "python3 -m http.server 8080",
"cpus": 1,
"mem": 64.0,
"instances": 1,
"constraints": [["hostname", "CLUSTER", "stg-aacpgpu101.stg.jp.local"]],
"container": {
"type": "DOCKER",
"docker": {
"image": "nvidia/cuda:7.5-devel",
"network": "BRIDGE"
}
}
}
Ideally it would be launched through the mesos containerizer (so that it
can consume GPU resources), I've tried this JSON but it only runs the
python server on the host:
{
"id": "/nvidiatest3",
"cmd": "python3 -m http.server 8080",
"cpus": 1,
"gpus": 1,
"mem": 128,
"disk": 0,
"instances": 1,
"container": {
"type": "MESOS",
"docker": {
"image": "nvidia/cuda:7.5-devel",
"credential": null
}
}
}
The only way I have been able to launch a container that will use GPU
resources on Marathon is as a CMD argument. It seems to work as intended
for the most part however when I scale down the service on Marathon it
doesn't stop the container.
{
"id": "/nvidiatest2",
"cmd": "docker run nvidia/cuda:7.5-devel python3 -m http.server 8080",
"cpus": 1,
"gpus": 1,
"mem": 128,
"disk": 0,
"instances": 1
}
Basically I am still looking for a example of JSON you can send to mesos
that will launch a container with GPU resources that exits/removes the
containers successfully.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mesosphere/marathon/issues/4928#issuecomment-278546191,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACPVLI_AggRVWcXEv23aBJck0BjQynTbks5rapoZgaJpZM4LccNK
.

Now, I am trying the similar case and  used nvidia-docker like this.
But, it didn't launch a container well.
{
    "id": "nvidia-docker-test",
    "cmd": "nvidia-docker run -it -d nvidia/cuda",
    "cpus": 1,
    "mem": 512.0,
    "gpus": 1
}

I'd like to know a example of JSON using nvidia-docker command.

After doing some digging you can launch docker containers with GPU capabilities using privileged mode and passing the docker volume containing nvidia drivers as noted in the nvidia-docker wiki in the alternatives section:
https://github.com/NVIDIA/nvidia-docker/wiki/NVIDIA-driver
I had to add privileged mode to the command to give access to the devices (alternatively you can specify the devices you want to give the container access to). Currently I only got this to work with the Docker containerizer, there is a curl error with docker registry I am running into with the Mesos containerizer that I am trying to figure out.
JSON to start container:
{
"id": "/marathon-gpu-test",
"groups": [
{
"id": "agents",
"apps": [
{
"id": "marathon-gpu-test",
"cmd": "python3 -m http.server 8080",
"cpus": 1,
"mem": 512.0,
"instances": 1,
"container": {
"type": "DOCKER",
"docker": {
"image": "nvidia/cuda:7.5-devel",
"network": "HOST",
"privileged": true,
"parameters": [
{
"key": "publish",
"value": "10080:10080"
},
{
"key": "volume-driver",
"value": "nvidia-docker"
},
{
"key": "volume",
"value": "nvidia_driver_367.48:/usr/local/nvidia:ro"
}
]
}
},
"constraints": [
[
"hostname",
"LIKE",
"fakeserver"
],
[
"hostname",
"UNIQUE"
]
]
}
]
}
]
}

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-4421. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


[cmake] No longer rebuild cmake cache on each build

Cmake cache was being rebuilt on each build. This was being done
to update HIP_VERSION, HCC_VERSION, .hipInfo and .hipVersion.
However, rebuilding cache also re-runs HIT parser which is slow.
Removing the cache rebuild should speed up the build. But user
needs to explicitly rebuild the cache in case HIP_VERSION or
HCC_VERSION changes by calling "make rebuild_cache"

Awesome!


running problem

hi, thank you for your reply.i have solved the problem so i closed it. but now i run the code"streamlit run src/search_demo_solr.py " and i meet the new problem that i don't know how to do, there is a prolem that status is 500 for bert.but for bm25 i can run it.how to solve it?

hi @wacharlin would you mind attaching a screenshot of the UI when this error happens?

hi @wacharlin would you mind attaching a screenshot of the UI when this error happens?
this is the error.

hi @wacharlin would you mind attaching a screenshot of the UI when this error happens?

i print the resp.json() (in solr_client.py) and find the error.

Hi,maybe I found the cause of this error, but I don't know how to solve it.
In my solr,I don't have "vector".I took a screenshot and compared it with yours. maybe the error is here.
I just run the code" src/index_dbpedia_abstracts_solr.py".because there is no file named "index_dbpedia_abstracts.py".
In "src/index_dbpedia_abstracts_solr.py",You originally gave 5 parameters, there are bc, but the parse_dbpedia_data() function only accepts two parameters, so I only kept the two parameters of source_file and max_docs, so I did not pass bc, and in the body of the function, I did not find Operations related to bert. So I think the problem may lie here. How can I solve it?
thank you.

@wacharlin are you to close this as well?


fix #2364

Codecov Report

Merging #2369 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev    #2369   +/-   ##
=======================================
  Coverage   93.78%   93.78%
=======================================
  Files         163      163
  Lines       18605    18605
=======================================
  Hits        17448    17448
  Misses       1157     1157

Continue to review full report at Codecov.

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


ImportError: DLL load failed on Windows 10 using GPU

System information

OS Platform and Distribution : Windows 10 1809
TensorFlow installed from (source or binary): source
TensorFlow version: 1.13.1
Python version: 3.7.3/3.6.8
Installed using virtualenv? pip? conda?: pip install tensorflow-gpu
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: tried 10.1/10.0/9.0, cudnn 7.5
GPU model and memory: GTX 1060 6GB

Describe the problem
I have tried several different versions of CUDA/cuDNN, and added the bin/include/lib folders to PATH, but that doesn't work for my situation. Reinstall python and tensorflow doesn't work either. I tried the binary version of tensorflow and installed the corresponding CUDA/cuDNN, this error also appeared. I can't figure out what's wrong.
*VS 2015 C++ Redist is also installed
Provide the exact sequence of commands / steps that you executed before running into the problem
import tensorflow as tf
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Traceback (most recent call last):
File "F:\Python Environment\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "F:\Python Environment\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "F:\Python Environment\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "F:\Python Environment\Python37\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "F:\Python Environment\Python37\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "F:\Python Environment\Python37\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "F:\Python Environment\Python37\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "F:\Python Environment\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "F:\Python Environment\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "F:\Python Environment\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "F:\Python Environment\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "F:\Python Environment\Python37\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "F:\Python Environment\Python37\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

That's a PATH error


[EMB-186] registrations tab tests

Purpose
Add acceptance tests for guid-node/registrations.
Summary of Changes
(will complete later)
Side Effects
Probably
Feature Flags
n/a
QA Notes
This PR affects the registrations tab, but also makes some core changes how lists of nodes are loaded, so should also check forks and links.
Ticket
https://openscience.atlassian.net/browse/EMB-186
Reviewer Checklist

[ ] meets requirements
[ ] easy to understand
[ ] DRY
[ ] testable and includes test(s)
[ ] changes described in CHANGELOG.md

Pull Request Test Coverage Report for Build 1511

12 of 15 (80.0%)  changed or added relevant lines in 4 files are covered.
19 unchanged lines in 4 files lost coverage.
Overall coverage increased (+2.3%) to 64.297%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/osf-components/addon/components/node-card/component.ts
4
5
80.0%

app/models/node.ts
0
2
0.0%

Files with Coverage Reduction
New Missed Lines
%

app/guid-node/registrations/controller.ts
2
80.85%

lib/osf-components/addon/components/node-card/component.ts
2
82.35%

lib/osf-components/addon/components/draft-registration-card/component.ts
7
69.11%

app/models/osf-model.ts
8
42.24%

Totals

Change from base Build 1505:
2.3%

Covered Lines:
2636

Relevant Lines:
3830

💛  - Coveralls