Consolidate quantum state representations in cirq

Is your design idea/issue related to a use case or problem? Please describe.
There is a zoo of quantum states and special representations they admit:

computational basis states (which can be specified by an int),
pure states (which can be described by a 2^n-dimensional array or a (2, 2, ..., 2)-shaped tensor),
mixed states (which can be represented as a 2^n-by-2^n positive matrix with unit trace),
stabilizer states (which can be described by generators of their stabilizer group),
graph states (stabilizer states whose stabilizer generators can be described by a graph),
MPS states (which can be described by a simple tensor network),
PEPS states (which can be described by a little more complex tensor network),
...

In various places in cirq we have the need to represent states in some of the sets above (e.g. mixed states in cirq.DensityMatrixSimulator and MPS states in cirq.contrib.quimb.mps_simulator).
A while back we discussed the question whether we should have a class to encapsulate a generic quantum state to hide the zoo behind a consistent interface. We decided not to do that and instead allow quantum states to be specified by simple primitive and numpy types (int, np.ndarray). This made sense at the time since most code manipulating quantum states was particular to the specific use-case and given a small subset of the zoo that we needed to support it was easy to infer the nature of the state based on the type and shape information. We also defined a union type cirq.STATE_VECTOR_LIKE to describe the subset of the zoo we found relevant to us. This consisted of only four cases.
By now, we have added a class cirq.ProductState to cirq.STATE_VECTOR_LIKE and also added another union type cirq.QUANTUM_STATE_LIKE which encompasses cirq.STATE_VECTOR_LIKE and some additional options including another class for representing quantum states called cirq.QuantumState. We also have a mixin called cirq.StateVectorMixin...
In summary, we had considered a choice between a lightweight class-free approach of a simple union whose members were either primitive or maintained elsewhere (numpy) and a more heavy-weight approach with a single class to encapsulate the zoo. We ended up with the worst of both worlds :-) We now have two union types each with a class encapsulating a subset of the states. This means that on one hand code handling quantum states needs to deal with the diversity of the zoo and we lack a common place to extend quantum states with new functionality and on the other hand we have three classes to maintain.
Describe your design idea/issue
Perhaps, it is time to re-evaluate. One approach merges cirq.ProductState, cirq.QuantumState and cirq.StateVectorMixin and adds cirq.state(...) which can take as arguments any of the present members of the two union types. For example, we could say things like this
cirq.state(0)                                   # |0>
cirq.state(np.diag([1, np.exp(1j*np.pi / 4)]))  # magic T state
cirq.state(np.eye(2) / 2, n_qubits=1)           # maximally mixed state of one qubit
cirq.state(np.eye(2) / np.sqrt(2), n_qubits=2)  # Bell state
cirq.state(stabilizers={cirq.Z})                # |0>

The factory cirq.state would continue to allow us to use simple ways to specify quantum states such as specifying computational basis states using an int while also providing us with a single place to add general state-related functionality. In particular, the new class would be a natural place for code that

converts between state representations (e.g. producing density matrices of state vectors or stabilizer tableau from computational basis index etc),
interprets a numpy array (together with optional hints) as a state (which can be done in a few different ways depending on Hilbert space dimension and qubit/qudit count),
checks whether a state fulfills some basic condition (e.g. is pure, entangled, separable),
generates human-readable notation (e.g. Dirac notation).

Filing to start discussion. Context: #3517.

One question this raises is to what extent we wish to use mypy and to what extent runtime checks to see whether a given state belongs to one of the sets of quantum states listed earlier (e.g. is pure, is separable, etc) .
I suspect that fully committing to the use of type system would lead to very complicated type relationships. Partially committing to it would lead to a situation where some of the checks would be done by mypy and others at runtime. On the other hand, having all such checks done at runtime is a uniform and easily extensible approach.

Note that the ActOnArgs hierarchy somewhat does this. Though it also includes buffers, which is maybe undesirable, and qubit mappings and classical registers, which has pros and cons. I have a branch where I tried to make ActOnArgs generic, containing the unadorned quantum state as its generic argument, but it didn't work very well and I gave up on it.

This sounds hard but the current situation is getting bad and would get worse.
Need a design doc and we should put it in the roadmap.
-Adam: Any code that consume a quantum state needs to inspect the union. Since the union types are expanding, older code doesn't have a way to consume the objects safely.

Tl;Dr - We should think about this and consider adding to the roadmap / have a propose a design.

I'd like to do this, but whatever we do I'd like to make it compatible for use in the simulator framework. What "level" are you most interested in here?

We could have states that represent high-level state and include things like qubit ids (this is somewhat already covered by ActOnArgs -- we just have to rename that to e.g. QuantumState and perhaps move it to cirq/qis)
We could have states that represent low-level state and work with axes instead of qubits, and a member apply_gate(gate, axes) (I'd not want apply_operation on these because some operations are too high-level, and the state probably won't know what to do with them).
Similar state representation as (2) but no apply_gate. Instead StateVector would have apply_unitary, DensityMatix would have apply_channel, etc.
We could do all of the above, where (1) contains a (2) which contains a (3). (I like this option but then you get into the problem of "naming things", not to mention to get the state vector array from the top level you have to do x.state.state.state.state.state_vector or write wrapper methods at each level)

Whichever we choose, I agree with @tanujkhattar that a union will be hard to maintain, and a type hierarchy would be preferred. To integrate these into simulation, the base "interface" would need to support (params depending on which layer we're at):

apply_whichever(op/gate/matrix) # no return value
measure(qubits/axes) -> List[int]
sample(qubits/axes, reps) -> List[List[int]]
deep_copy() -> TSelf
kron(TSelf other) -> TSelf
factor(qubits/axes) -> Tuple[TSelf, TSelf]
transpose(qubits/axes) -> TSelf

Which I think is a good baseline for any quantum state representation to start from. The last three are a required part of the "interface", though it's fine if they throw NotImplemented; the simulator framework can work around that.

FWIW my preference is (2) above. I think (1) is great but probably higher level than what's useful from a QIS standpoint. (3) is nice in that it avoids bringing in the notion of a "gate", which is a cirq.ops thing, into qis. But the downside of (3) is that the "whatever" in the "apply_whatever" function is different for every subtype, so that wouldn't be part of the base type, and thus just leaves a bunch of combinators in the base interface, severely limiting the usefulness of the abstraction.
So I like (2) in that it's low-level, but useful as an abstraction. I think this could be extremely useful in combination with #4632, where we could have these classes be generic on the types of gates they support in apply_gate(TGateType), where TGateType is one of UnitaryGate, StabilizerGate, etc. But that's not a prereq for doing this.
For stabilizers we may want to rework those protocols a bit first. Right now the only way to apply a stabilizer effect is via act_on, which I think is a little too heavy for a low-level class (though it would work). It would be nice to have a stabilizer-specific protocol for this.
The other thing that we'd have to do in order for this to be used in simulators, is to make sure all non-gate operations implement act_on. Right now the only missing one I see (outside of artificial tests) is PauliStringPhasor.

I tried this and (2) ends up being not particularly clean. The reason is that state vector simulator records which mixture option was chosen. This means apply_gate would have to take the measurement log and a prng. Also axes might not be enough if we eventually do qudit subdimensions, so apply_gate would need a subdimensions param as well.
At that point we're passing in so many args from ActOnArgs._act_on_fallback_ to QuantumState.apply_gate that it no longer makes sense to do this in a separate class.

Option (3) that I mentioned two comments above is done as of #5065. That PR created an interface qis.QuantumStateRepresentation: https://github.com/quantumlib/Cirq/blob/fe7fe4e1d29e6b5fcc1643c0c73c26f8b37adae1/cirq-core/cirq/qis/clifford_tableau.py#L28
This has implementations

sim._BufferedStateVector
sim._BufferedDensityMatrix
contrib._MpsHandler
qis.CliffordTableau
sim.CliffordChForm

It has the following interface:

Combinator methods: copy, kron, factor, transpose.
Measurement methods: measure, sample.
Informational properties: supports_factor, can_represent_mixed_states.

Notably it doesn't have any abstract apply method. To add one was more or less impossible due to the rationale I spelled out above: apply has lots of complexities (measurements, subcircuits, classical controls, channel measurements, decompositions, etc), so being able to apply generically requires use of the act_on protocol, and can't be done in a single method here. Here, each subclass provides its own set of apply_X methods that are used by the simulators, but there is not a way to abstract one out into the base interface; that's what act_on is for.
Anyway, perhaps all that's left for this issue is

Move all the implementations to qis and make them public.
Make the proposed cirq.state(...) function that analyzes the input and returns the corresponding state object.

After thinking about this for a bit, I believe the root problem is not going to be solved by a new quantum state representation (though the representation I added worked great for simulators), I think the core issue is that there are always going to be multiple incompatible ways to represent quantum states. We'll have some that are useful in simulators, some that are useful in low-level code, some that are useful in analysis, some that come from third parties, etc., and they may have no relationship to each other. If we want to support them all, then the STATE_VECTOR_LIKE union and friends will continue to grow as we add more supported types, and we'll have to revisit each function that uses these parameters every time they change, which will be ugly.
What I'd propose here is that we get rid of STATE_VECTOR_LIKE etc unions entirely, and instead create corresponding protocols, i.e. protocols.state_vector(...), protocols.density_matrix(...), etc. Those should mostly be lifted from the existing to_valid_state_vector etc methods, but then add a final obj._state_vector_() check if none of the previous things succeed.
This allows us to get rid of all the mandatory isinstance checks for each possible type in STATE_VECTOR_LIKE and just rely on the protocol. For example, we could change def fidelity(state1: 'cirq.QUANTUM_STATE_LIKE', state2: 'cirq.QUANTUM_STATE_LIKE', ...) to be def fidelity(state1: Any, state2: Any, ...), have it explicitly handle the couple cases where it can run faster (like if they're both ints), but use the state_vector protocol to retrieve the state vector and calculate fidelities in the general case.
This also allows us to instrument a wider range of things as state-vector-like, just by adding the _state_vector_, _density_matrix_, etc handlers to them. For instance our SimulationTrialResult contains a state vector somewhere under the hood, so it could be useful to allow users to calculate the fidelity of two of those, without having to dig for the function that gets the state vector.


The Ability to Use Custom Model Form Fields in Wagtail Admin Forms

Custom model form fields in Wagtail Admin Forms are intriguing. They offer adaptability in web development. This can be crucial for tailored solutions.
To start, understand 'why.' It's about specificity. When standard fields fall short, custom fields are invaluable. They give forms a unique touch, aligning with project needs.
Now, uncover 'how.' In Wagtail, create a custom model form, define fields, and integrate it into Wagtail Admin. Shape the form to your vision.
Using non-standard fields can be beneficial. Diverging from the norm adds uniqueness.
Ultimately, 'why' and 'how' blend in crafting a functional, custom Wagtail Admin form. Custom fields are key for distinct projects.

The Ability to Use Custom Model Form Fields in Wagtail Admin Forms
Overview:
Wagtail allows you to use custom model form fields in Wagtail admin forms. This can be useful for creating more complex or customized user interfaces for editing Wagtail models.
Benefits:
Using custom model form fields can provide a number of benefits, including:
Improved user experience: You can create more user-friendly and intuitive forms by using custom form fields.
Increased flexibility: You can use custom form fields to add new functionality to your Wagtail admin forms, such as the ability to upload files or select multiple items from a dropdown list.
Reduced development time: Using custom form fields can save you time and effort when developing new Wagtail models or extending existing models.
How to use:
To use custom model form fields in Wagtail admin forms, you need to create a subclass of the wagtail.admin.forms.WagtailAdminModelForm class. Your subclass should override the get_form_fields() method to return a list of form fields that you want to use in your form.
When you create a new Wagtail model, you can specify the custom model form class to use by setting the base_form_class attribute on your model.
`from wagtail.admin.models import Page
from wagtail.admin.form import WagtailAdminModelForm
class MyPage(Page):
base_form_class = MyCustomPageForm
class MyCustomPageForm(WagtailAdminModelForm):
def get_form_fields(self):
fields = super ().get_form_fields()
fields["my_custom_field'] = MyCustomFormField()
return fields`

@MrKeals I don’t understand how this fits with other documentation with this site? Did you report this on the wrong project?

Dear @thibaudcolas, Using the user guide alone via the link https://guide.wagtail.org/, I noticed the need to Use Custom Model Form Fields in Wagtail Admin Forms. I wasn't given access to the Wagtail Website but I used the the user guide as a point of reference for my deductions below.
"The Ability to Use Custom Model Form Fields in Wagtail Admin Forms" section in the Wagtail documentation provides information on how to create customized user interfaces for editing Wagtail models. This can be useful for improving the accessibility of Wagtail admin forms, as it allows developers to create forms that are more user-friendly and intuitive for users with disabilities.
For example, a developer may use custom model form fields to add a dropdown list or a checkbox to a form, which can make it easier for users with mobility or visual impairments to select options or toggle settings. Additionally, custom form fields can be used to add new functionality to Wagtail admin forms, such as the ability to upload files or select multiple items from a list, which can be helpful for users with cognitive or learning disabilities.
Furthermore, using custom model form fields can save development time and effort when creating new Wagtail models or extending existing models, which can help to ensure that Wagtail's accessibility features are implemented consistently across all models and forms.
Overall, the "The Ability to Use Custom Model Form Fields in Wagtail Admin Forms" section in the Wagtail documentation can assist in the documentation process for accessibility on the Wagtail's User Guide by providing information on how to create customized, user-friendly, and accessible admin forms.


pull request for e2e test at 12/11/2016 03:15:02

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Removing slash from @fa-font-path variable

There is a conflict between this variable @fa-font-path which finish with a slash, and urls inside paths.less which are beginning with a slash.
Exemple ->
@fa-font-path: '/modules/apostrophe-ui/fonts/';
url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');

@boutell this makes sense to me. See apostrophe-ui/public/css/vendor/font-awesome/path.less. If you agree, let me know and I'll merge.


HelmChart doesn't recover from "chart pull error: failed to get chart version for remote reference: no chart name found"

When I faced with helm chart repository outage my charts became stuck in ChartPullFailed even when repository back online.
FluxCD v0.27.0
helm-controller v0.17.0
How to reproduce:

Install HelmRelease of a chart.
Remove the chart from chart repository. Wait for HelmRepository and HelmRelease to reconcile.
See ArtifactFailed reason in HelmRelease
Put the chart back to chart repository.
Make sure HelmRepository reconciled and index.yaml contains the chart.
See HelmChart and HelmRelease stuck in error state chart pull error: failed to get chart version for remote reference: no chart name found

I observe this behaviour both with reconcileStrategy: Revision and reconcileStrategy: ChartVersion in HelmChartSpec
As per the documentation I assume that reconcileStrategy: Revision should handle this?

We seem to get this quite often using source-controller version v0.21.0 (I believe the source-controller is the controller that manages chart artefacts) , and recycling the source-controller always fixes it.
Not sure if this needs moving to the source-controller repo

@racdev Thanks, restart source controller deployment fixed the issue for me too, using flux v2.0.1


Fix typo in initialization sequence

Change 'initialised' to 'initialized' so it uses the US spelling of the word rather than the UK spelling.

@mbed-bot: TEST

@mbed-bot: TEST


-moz-box-sizing: border-box can be removed

Suggest ' -moz-box-sizing: border-box;' to be removed from the CSS now. That vendor prefixed attribute was only required up until Firefox 28 (and we're now on Firefox 36 - and it auto updates so I think no need to support such an old version).
REF: http://caniuse.com/#search=box-sizing

Nice! I know this is ~8 months since, but would you care to make a PR?


error while building multipolygon with shapely 1.5.7

Problem
I updated shapely 1.5.7 and I get the error below. If I use imposm with shapely 1.5.1 the problem doesn't happen.
It seems like it is related to issue #35.
Command
imposm -d santiago_chile -m imposm-mapping.py --read --write --optimize --overwrite-cache santiago_chile.osm.pbf

Error
Enabling Shapely speedups.
loading imposm-mapping.py as mapping
[18:11:36] ## reading santiago_chile.osm.pbf
[18:11:36] coords: 699k nodes: 13k ways: 99k relations: 0k (estimated)
[18:11:41] coords: 797k nodes: 0k ways: 183k relations: 0k
[18:11:41] reading took 5 s
[18:11:41] ## dropping/creating tables
[18:11:41] ## writing data
[2015-04-23 18:11:41,815] imposm.multipolygon - WARNING - error while building multipolygon:
[2015-04-23 18:11:41,815] imposm.multipolygon - ERROR - Null geometry supports no operations
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/multipolygon.py", line 146, in build
    self.build_relation_geometry(rings)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/multipolygon.py", line 221, in build_relation_geometry
    rings.sort(key=lambda x: x.geom.area, reverse=True)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/multipolygon.py", line 221, in <lambda>
    rings.sort(key=lambda x: x.geom.area, reverse=True)
  File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages/shapely/geometry/base.py", line 409, in area
    return self.impl['area'](self)
  File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages/shapely/topology.py", line 55, in __call__
    self._validate(this)
  File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages/shapely/topology.py", line 18, in _validate
    raise ValueError("Null geometry supports no operations")
ValueError: Null geometry supports no operations

Setup
Python 2.7.9 (default, Jan  7 2015, 11:49:12)
imposm 2.6.0 (installed with pip install imposm)
shapely 1.5.7
OS X 10.10.3.

For anyone finding this on Google—I was running into the same error on OS X 10.10.5, and I've fixed it by deleting everything starting with /shapely/i from my site-packages, then installing Shapely 1.5.2:
sudo easy_install shapely==1.5.2
I'm not a Pythonist, but I guess you'll have to replace easy_install with pip or a venv incantation depending on your setup :)


How to expose script handlers for WKUserContentController without swizzling?

This continues the discussion from an open Cedar issue related to Xcode 7.
When working with WKWebView you can create a JavaScript "bridge" via the WKUserContentController. Via -addScriptMessageHandler: you can create a hook that gets calls when special JavaScript methods are fired. Unfortunately, there is no way to read back these handlers once they are set, essentially making the property "write-only." (Yay, Apple!)
To get around this I swizzled the method and exposed the parameters in my own dictionary. Testing with Cedar under Xcode 6 on iOS 8.X this works great, no issues. However, when updating to Xcode 7 and iOS 9 the swizzling creates all sorts of issues for WKWebView.
So, I ask the community, how can one expose these "write-only" properties without swizzling?

Hey Joe,
How approach did you take when swizzling the method? Are you familiar with the technique described here? https://blog.newrelic.com/2014/04/16/right-way-to-swizzle/ (I realize that PCK itself doesn't generally do this properly!) I would be interested to see an isolated test case that can reproduce the issues you've encountered.

I am using PCK's +redirectSelector:to:andRenameItTo: method to stub both adding and removing script handlers.
I've pulled out the relevant code into this gist. The spec helper tests pass but once the swizzling has occurred creating a WKWebView crashes - as shown in WKWebViewSpec.mm.
Thanks for the New Relic link, I'm going to convert my swizzling now and see if it makes a difference.

Thanks for the gist @joemasilotti  ,  and for the informative link @briancroom
The intended test support for WKWebView would make a great contribution to PCK

Agreed! As soon as I have it working on Xcode 7 I will happily submit the PR.

I spent a few hours digging into this yesterday. I don't have a solution, but I feel like I might be getting towards something interesting. Or just digging myself deeper into a hole. I'll post my findings here to see if anyone has any insight.
Swizzling [WKUserContentController -addScriptMessageHandler:name:] results in a crash. It does not matter if you swizzle via PCK's method or the "right" way as described in the linked New Relic article. There seems to be some internal validation going on and swizzling blows away the necessary set up.
Remembering that WebKit is open sourced, I was led to their unofficial GitHub repo. This led me digging into the actual code for WKUserContentController and poking around. (Side note, how awesome is that? Code that's shipped with an iOS device and I'm seeing it? Very cool.)
Here we see that the proxy can be exposed via -_apiObject. Calling this under test actually returns an instance of the WebUserContentControllerProxy! Looking through that code we can see that the user script handlers are added to a hash map, m_scriptMessageHandlers.
The proxy is actually a C++ class and the mentioned hash map is a private member. I haven't worked much in C++ but I'm pretty sure we can't access that variable like we could in Objective-C. If anyone has any insights I am open to trying anything.

It sounds like, if you really think you need to swizzle it you should call
through to the original implementation after doing whatever it is you need
to do.
Or, don't do this at all and treat the framework class as an external
dependency.  Wrap it, test that you call your wrapper, and move on :)
On Thu, Sep 3, 2015 at 8:11 AM, Joe Masilotti<EMAIL_ADDRESS>wrote:

I spent a few hours digging into this yesterday. I don't have a solution,
but I feel like I might be getting towards something interesting. Or just
digging myself deeper into a hole. I'll post my findings here to see if
anyone has any insight.
Swizzling [WKUserContentController -addScriptMessageHandler:name:]
results in a crash. It does not matter if you swizzle via PCK's method or
the "right" way as described in the linked New Relic article. There seems
to be some internal validation going on and swizzling blows away the
necessary set up.
Remembering that WebKit is open sourced, I was led to their unofficial
GitHub repo https://github.com/WebKit/webkit. This led me digging into
the actual code for WKUserContentController and poking around. (Side
note, how awesome is that? Code that's shipped with an iOS device and I'm
seeing it? Very cool.)
Here we see that the proxy can be exposed via -_apiObject
https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/Cocoa/WKUserContentController.mm#L118.
Calling this under test actually returns an instance of the
WebUserContentControllerProxy! Looking through that code we can see that
the user script handlers are added to a hash map, m_scriptMessageHandlers
http://WebUserContentControllerProxy.
The proxy is actually a C++ class and the mentioned hash map is a private
member
https://github.com/WebKit/webkit/blob/a42f324713333d8fffca7461a5c22e685d85bb57/Source/WebKit2/UIProcess/UserContent/WebUserContentControllerProxy.h#L102.
I haven't worked much in C++ but I'm pretty sure we can't access that
variable like we could in Objective-C. If anyone has any insights I am open
to trying anything.
—
Reply to this email directly or view it on GitHub
https://github.com/pivotal/PivotalCoreKit/issues/155#issuecomment-137480045
.

That's a good point. I ended up just subclassing WKUserContentController and injecting it with Blindside. Oh well, at least I learned something!
Feel free to close this if you don't think it will be valuable to the project.


Add unit test for backend/modules/DownloadManager

As title.

right now DownloadManager is quite simple and no too much details, so closed this issue for now.


Get.snackbar crashes App

Describe the bug
Calling a snackbar freezes the app, which crashes after some seconds.
Reproduction code
Get.snackbar("title",
      "subtitle",
      isDismissible: false,
      dismissDirection: DismissDirection.up,
      margin: const EdgeInsets.all(20),
       padding: const EdgeInsets.fromLTRB(20, 12, 12, 12),
      snackPosition: SnackPosition.TOP,
      backgroundColor: Colors.white,
      duration: const Duration(seconds: 4)
);

example:
void main() => runApp(GetMaterialApp(home: Home()));

class Home extends StatelessWidget {

  @override
  Widget build(context) => Scaffold(
      appBar: AppBar(title: Text("counter")),
      body: Center(
        child: Text("Test"),
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () => Get.snackbar("title",
      "subtitle",
      isDismissible: false,
      dismissDirection: DismissDirection.up,
      margin: const EdgeInsets.all(20),
       padding: const EdgeInsets.fromLTRB(20, 12, 12, 12),
      snackPosition: SnackPosition.TOP,
      backgroundColor: Colors.white,
      duration: const Duration(seconds: 4)
),
      ));
}

Flutter Version:
Channel master, 3.1.0-0.0.pre.2294
Getx Version:
^4.6.5
Describe on which device you found the bug:
iPhone 13 Pr & iPhone XS

GetMaterialApp is missing in your code

I have GetMaterialApp in my App, just did not put it in the sample, because of the given template.
I edited my Code.

Could you please reopen?


I got a crashing error when clicking the "timestamps" option

Hi, i got this error when trying to modify the timestamps, how do i fix it?

Me 2.. Started using Apollo instead. Really hope the app gets updated soon as its a really awesome tool!

With Apollo you can edit trophies data?
El vie, 26 nov 2021 a la(s) 17:40, myX3N @.***)
escribió:

Me 2.. Started using Apollo instead. Really hope the app gets updated soon
as its a really awesome tool!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/darkautism/PS3TrophyIsGood/issues/22#issuecomment-980458852,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWHY5ELMLGBWV2LSMXZUR73UOAEF7ANCNFSM5G3QBJNQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

No unfortunately not. You can only unlock them, but not edited that specific as far as I know.


MongoDB Icon

MongoDB logo would be great.
You can get the logo from here.

Do you think you can use this one for MongoDB maybe?
https://drive.google.com/file/d/0B05CtuPSMsUgVXppSTBiV1dDNzA/view?usp=sharing

There's a download link in the MongoDB page I passed which contains EPS files.
Here's the direct link to the download http://info.mongodb.com/rs/mongodb/images/MongoDB_Brand_Resources.zip

In v2.0


feat: add standard icon association for localization/language files

Similar to how most image formats (WEBP, AVIF, PNG, JPG, GIF, etc) have an icon association to depict that they are images, could there please be a conventional icon for localization files?
By default, this icon would be associated with formats like:

XLIFF (*.xlf)
TMX (*.tmx)
Fluent (*.ftl)
PO (*.pot / *.po)
etc

Some extensions may choose to reuse the icon for custom formats. Other broader file formats (like *.json) that extensions know to be a language file in the context of the libraries/stack used may use the icon as well.
Related

Originally discussed in https://github.com/projectfluent/fluent/issues/356

I think this is something that would have to be added to https://github.com/jesseweed/seti-ui, the default file icon font used by VS Code. From there we may have to do more work to actually render it where appropriate. @isidorn may have more details there since we've talked about new icons in Seti before.

Yes, I think that is all there is to it. Adding to the seti built-in theme.
But I would not add this right away, I suggest we keep this issue open to gather more user feedback.


4163 feat: [GOLIUM][REDIS] Upgrade universal redis client to v9

Codecov Report

Merging #116 (15bbbff) into master (97e7b19) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##           master     #116   +/-   ##
=======================================
  Coverage   62.96%   62.96%
=======================================
  Files          48       48
  Lines        3386     3386
=======================================
  Hits         2132     2132
  Misses       1186     1186
  Partials       68       68

Impacted Files
Coverage Δ

steps/redis/client.go
0.00% <ø> (ø)

steps/redis/client_mock.go
100.00% <ø> (ø)

steps/redis/session.go
92.17% <ø> (ø)

steps/redis/steps.go
0.00% <ø> (ø)


Post release automated changes for marketplaceordering releases

Post release automated changes for azure-arm-marketplaceordering

API change check
API changes are not detected in this pull request.


Using prometheus metrics

Hi all,
We are using conductor and for instrumentation, we use Prometheus metrics.
We see that all histogram metrics has percentile buckets like mentioned
Is there any way we can get p99 p90 directly from buckets. We are able to measure only average value using totalTime/count.

More detailed question, Is there a way we can calculate using Prometheus query without calling actual function.

Ideally just map the data when reporting so it would look like a Prometheus Histogram. Then you should be able to query it using the histogram_quantile() function.
Since Spectator does not support Prometheus directly, I'm assuming you are using spectator-reg-metrics3 or spectator-reg-micrometer and then using the appropriate bindings from one of those libraries. The best option is probably using spectator-reg-micrometer because it preserves dimensionality and has some hooks to transform the data. See the Micrometer docs for Prometheus integration for more details. In particular, you may need a filter that converts the percentile dimension intended for Atlas's :percentiles operator into the Prometheus Histogram format.
If the filter is general enough and can be done with no dependencies other than spectator-api and micrometer-core, then we could probably include it with spectator-reg-micrometer for use when users choose to bind with Prometheus.


IT Step academy

https://itstep.org/

@YeldarOralov Thank you for your patience while waiting for a review and processing your request. Pull request merged.


[catch2] Guard build type for Catch2

Describe the pull request
Avoid Catch2 build failed On only Release Mode

What does your PR fix?
Fixes #... https://github.com/microsoft/vcpkg/issues/19778

Which triplets are supported/not supported? Have you updated the CI baseline?

All, No

Does your PR follow the maintainer guide?
Yes

port-version
I'm freshman on port.
when add port version, the status changed

I think it's right

The version is right. Could you please format the manifest?
Run .\vcpkg format-manifest ./ports/catch2/vcpkg.json and then submit the changes.
You also need to update version files via .\vcpkg x-add-version catch2.

The version is right. Could you please format the manifest?
Run .\vcpkg format-manifest ./ports/catch2/vcpkg.json and then submit the changes.
You also need to update version files via .\vcpkg x-add-version catch2.

Thx for your guidance  with great patient.

I'm sorry. There is still one point that needs to update. Please see my last review suggestion @westfly.

LGTM, thanks for your PR. @westfly


Create hover state in order to easily link to specific FAQs or tutorial sections

Feature Request
Desired behaviour
Take a look at https://bryanbraun.github.io/anchorjs/ or for a live example, hover over the heads in the readme and note the floating anchors

(looks already done)

Closing due to #504


Clarify API description for ol.source.Vector with combination of ol.loadingstrategy.tile

It should be emphasized that tile strategy for vector tiles support only data in a single resolution (zoom level). While it may be obvious, there are scenarios where vector data are specially crafted for each zoom level - with variable level of details. Such tiles could be loaded using a custom loader, however, this loader is called only if the particular extent is not processed yet. Unfortunately, this check ignores the zoom level (and there is no option for this), so when tiles for the particular extent were already loaded/cached, they will never be reloaded again for a different zoom level.

Yes, vector layers are for WFS style data, i.e. unsimplified features, fetched by extents. Pull request welcome to make the docs clearer about this.


docs: Fix capital D in ratelimit example

What type of PR is this?
docs: Fix capital D in ratelimit example
What this PR does / why we need it:
This is a super dummy 1-char fix to docs fixing the capitalization of a rate limit example.
I see the same error in the versioned docs, let me know and I can fix the rest of them (not sure since they seem to be tied to a released tag):
site/content/en/docs/tasks/traffic/global-rate-limit.md:            type: distinct
site/content/en/latest/tasks/traffic/global-rate-limit.md:            type: distinct
site/content/en/v0.5/user/rate-limit.md:          type: distinct
site/content/en/v0.6/user/rate-limit.md:            type: distinct
site/content/en/v1.1/tasks/traffic/global-rate-limit.md:            type: distinct

Thanks for fixing this, can you make the gen-check pass ?


Scroll to top when changing to shorter page size in decktable.

Hey @bakert,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: 1021f8b0-00d4-11ea-8767-d53e6939ac53


Release version 0.0.13

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (977de73) to head (173e878).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #385   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           92        92
  Lines         2369      2369
  Branches       213       213
=========================================
  Hits          2369      2369

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Packaging request ptouch

Project description
ptouch is a command line tool to print labels on Brother P-Touch printers on Linux.
The printer is accessed directly using libusb, so there is no need to install the printer in CUPS.
Currently supported Brother label printers

PT-2420PC
PT-1230PC
PT-2430PC
PT-2730 (was reported to need 48 blank lines before actual content)
PT-E500 (was reported to need some padding white pixels)
PT-D450

Metadata

homepage URL: https://mockmoon-cybernetics.ch/computer/p-touch2430pc/
source URL: https://mockmoon-cybernetics.ch/cgi/cgit/linux/ptouch-print.git
license: gpl3 https://mockmoon-cybernetics.ch/cgi/cgit/linux/ptouch-print.git/tree/COPYING
platforms:  linux

Closing this, as ptouch has been packaged.


UI - Breadcrumb underlined titles are not aligned

TO: @tombui99
CC: @adamcogan @bradystroud @SebastienBoissiere @christianmorfordwaitessw @AndreasLengkeek @tiagov8
As per our conversation, the titles in breadcrumbs should be aligned

Make breadcrumb titles aligned equally

Figure: Breadcrumb Rule Title is not aligned with Category Title
AB#59156

To: @tombui99
Cc: @adamcogan @bradystroud @SebastienBoissiere @AndreasLengkeek  @tiagov8

Make breadcrumb titles aligned equally

Done - See https://www.ssw.com.au/rules/do-you-manage-clients-expectations

Figure: Breadcrumb titles aligned equally

To: @tombui99
Cc: @adamcogan @bradystroud @SebastienBoissiere @AndreasLengkeek  @tiagov8

Make breadcrumb titles aligned equally

Done - See https://www.ssw.com.au/rules/do-you-manage-clients-expectations

Figure: Breadcrumb titles aligned equally


How to compute quaternion from max and min coordinate values of the Bounding Boxes?

I am facing some problem in creating the orientation of the Bounding Box of the detected objects in ROS). I know the max and min coordinate values (xmin, xmax, ymin, ymax, zmin, zmax). So, I can easily find the vertex of the objects Bounding BOX (Cube) which are
[xmin ymin zmin;
 xmax ymin zmin;
 xmax ymax zmin;
 xmin ymax zmin;
 xmin ymin zmax;
 xmax ymin zmax;
 xmax ymax zmax;
 xmin ymax zmax]

Now how can I create the quaternion from these vertex in order to get the orientation of the bounding box? I know that a quaternion is a set of 4 numbers, [x y z w], which represents rotations the following way:
x = RotationAxis.x * sin(RotationAngle / 2)
y = RotationAxis.y * sin(RotationAngle / 2)
z = RotationAxis.z * sin(RotationAngle / 2)
w = cos(RotationAngle / 2)
How to get the RotationAxis and RotationAngle when knowing the vertex of the object (in my case is a cube or 3D rectangle)? Thanks

Darknet returns bounding boxes in image space. The bounding boxes are not rotated. You'll have to estimate the coordinates in world space on your own, which is not trivial. It's out of the scope of this package but if you have some thought on it, feel free to share.


Remove LP: ApplyRemovePoolLiquidityTx: amount X is less than XXX (code 16)

Preflight Checklist

[x ] I have searched DeFiChain’s Github Issue Page and none matches my issue
[ x] I have read through How To Submit Issues for DeFi App

Issue Details

**Current DeFi App Version: 2.1.15

**Previous DeFi App Version:2.1.13

**Operating System (OS): MacOS 11.1

Screenshot(s) / screen recording(s) of issue

Actual Behavior
I did some LTC DFI trading two days ago and experience as some other here some serious bugs. The major issue I experience is probably, and this is my assumption, that one of the transaction got on an orphan block or something. The transaction on blockchain (https://mainnet.defichain.io) has been iditcated as "skipped". So some transaction never updated on the Defi app.
A restart also didn't help. After some googling and searching I decided to try some of the command in the CLI. after a clearmempool statement quite some result came up. The app also therefore crashed. It took quite some time until the app was useable again (facing the issue that at 99% the node wasn't found) After I solved this issue and having the newest version of the blockchain on the Mac (deleting the .dat files) and also adding additional UTXO DFI to it,  I am still facing an issue:
I can't remove the Liquidity of the pair DFI - LTC. As shown in the screenshot my balances is indicated as kind of zero, even though the app and also the "Gettokenbalances" shows another result.
Error message in the app says:  ApplyRemovePoolLiquidityTx: amount X is less than 393318466 (code 16)
Note: I tried to remove that liquidity several times in the past and never managed. but as it seemed something got stuck. I also never received the provided DFI or LTC amounts.
Please for help- Thanks in advance!
App log / binary log / app config

Hi @Fabialfonso , thanks for your feedback. Can you try remove liquidity at a lower %? Also, I suggest that you do not remove files that you're not familiar with — as we won't be responsible for it. The team regularly do releases, so if you are not in a big hurry I would suggest staying on the latest version and wait for a fix. Thank you for your understanding.

hi @izzycsy , yes I tried to remove lower amounts which wasn't possible. And I only removed those files since it was one of the solutions described here. I still have them and could therefore enter them again. But then again- the blockchain scan stopped 3 times before and a new scan helped.
When is the new version coming? I am not in a complete hurry but also dont feel super comfortable with the different bugs and weird behavior that I am facing. :/ But what kind of fix is in the pipeline? Did you have similar issues before?

Hi @Fabialfonso , okay, please keep your files safe. Our team will investigate. There's another user facing a similar issue recently, yes there's a fix coming but I'm not sure if it'll be included in this upcoming release as this is a new issue. New versions will be announced on DeFiChain Announcements (EN)
. I'll keep this thread open, and will update you when it's ready.

Hi @izzycsy, this morning suddenly the missing transaction has been executed. Dont really know why but everything is in order again. Thanks for the support.

Hi @Fabialfonso , could be a lag in processing. Thanks for the update.


🐛 Two times the same color in a row

Describe the bug
Logic to change color seems broken, you can have multiple times the same color on the character, which is not expected.
To Reproduce
Steps to reproduce the behavior:

Match the correct color
There is a chance you'll get the same one just after (so your character won't change color)

Note: I seen that for the light blue color only for now
Expected behavior
The character cannot have twice the same color

Has been solved previously


createDiscreteApi创建Notification不支持placement配置

Clear and concise description of the problem
createDiscreteApi 创建的notification 只能显示在右上角
Suggested solution
createDiscreteApi create等时支持placement配置
Alternative
No response
Additional context
No response
Validations

[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

const { ... } = createDiscreteApi(
  [...],
  {
     notificationProviderProps: { ... }
  }
)


Options only work with syntactic sugar for blank nodes - not with named nodes

It looks like RDF with named nodes for the options in a dropdown does not work.
RDF with named nodes:

https://solid.smessie.com/private/tests/forms/9a991c13-03f6-4bae-a435-3b32df9ddf2a.ttl
https://formviewer.patrickhochstenbach.net/#https://solid.smessie.com/private/tests/forms/9a991c13-03f6-4bae-a435-3b32df9ddf2a.ttl
this gives an exception Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0') at https://github.com/danielbeeke/rdf-form/blob/7fcfe16754589127a875989bdb9ee61ce877641b/src/elements/ElementBase.ts#L102

RDF with blank nodes (syntactic sugar)

https://solid.smessie.com/private/tests/forms/test.ttl
https://formviewer.patrickhochstenbach.net/#https://solid.smessie.com/private/tests/forms/test.ttl
this works

Interesting,
I think the JSONLdProxy might not nest the values.I have written a nester before:
I created a gist of it:
https://gist.github.com/danielbeeke/77bcfd565322e9509588a337c204d217
It might be an option to nest the JSON before it is put into the Proxy.

I'm not sure if I understand you correctly, is that something to do on my side, or on the side of ref-form?
Anyways, in the meantime I have investigated it further and came to the conclusion that I was actually not generating rdf:List RDF, so I've changed my code and now I have RDF with rdf:List for the options.
However, I still get an error Uncaught (in promise) Error: The prefix form was not found in the form definition., but I can't seem to find the issue, is there still something wrong with my generated RDF (I can't find any mistakes) or is there a problem with rdf-form?
The error is thrown here https://github.com/danielbeeke/rdf-form/blob/7fcfe16754589127a875989bdb9ee61ce877641b/src/core/FormDefinition.ts#L57

https://solid.smessie.com/private/tests/forms/test-dropdown.ttl is the RDF which doesn't work
https://formviewer.patrickhochstenbach.net/#https://solid.smessie.com/private/tests/forms/test-dropdown.ttl here you can see the error

When I add @prefix form:  <http://rdf.danielbeeke.nl/form/form-dev.ttl#> . to my RDF, then the above error Uncaught (in promise) Error: The prefix form was not found in the form definition. is gone, but the first error Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0') is there again.

Uncaught (in promise) Error: The prefix form was not found in the form definition.
I think we should not check if this prefix exists, right? Because I'm not using prefixes in my RDF, I write all URI's absolute. That shouldn't make it invalid RDF.

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0')
You are reading option['form:value'] here, maybe you are also expecting the predicates to be defined with prefixes?


Upgrade to octopus 12 spack package

Upgrade spack's octopus/package.py to octopus version 12.0 (in this repository).
Preparation for merge request to spack upstream at later point.

offline review from @iamashwin99 - thank you.


Request Body is always   in Content-Type: multipart/form-data;

├─ Headers
│ Content-Type: multipart/form-data; boundary=----------V2ymHFg03ehbqgZCaKO6jy
│ User-Agent: apps;iOS;10.3;1.0;75F64A34-78C9-4D27-8C5D-6FDA9FCEE1D6;Apple;Simulator
│ Content-Length: 2157
├─ Body
│

(Sorry for a late response, I totally missed the notification on this issue).
ResponseDetective doesn't support multipart/form-data requests. They are very complex and may contain multiple segments with multiple content-types which makes them particularly hard to implement correctly.
That being said, the support for multipart/form-data will be a point of focus in the next major release, that is 2.0.

Oh I see. Well I hope you able to implement it in version 2. :D cheers

This will be tracked by #39 – you can subscribe for updates under that issue. 😉


Automatically set Selenium system properties

It would be nice if this maven plugin could set the system properties related to the driver. For example for geckodriver it's "webdriver.gecko.driver". This would make it a lot simpler for users of this plugin and prevent them from having to handle the various OS by using maven profiles in their pom.xml.

I have tried to implement this but did not manage to pass the system properties from the webdriverextensions maven plugin to the surefire maven plugin which runs the tests. Any ideas how to pass system properties between plugin?

This is what I tried doing
https://github.com/webdriverextensions/webdriverextensions-maven-plugin/commit/5c21264933b47a9a7ed1165b263f41a27e43f299
Also see issue
https://github.com/webdriverextensions/webdriverextensions-maven-plugin/issues/12

Actually IMO the best is to implement #28 and thus set the system property in the driver factory call, e.g ResolvingPhantomJSDriverService.createDefaultService(). Thus all that would remain on the maven side is a dependency on an artifact.
I know it's a big change for your plugin but I feel that would really make this project interesting.
WDYT?

FTR yes you're right you can't pass is to surefire.

I'm running into this as well with the selenese-runner-java:
https://github.com/vmi/selenese-runner-java
I currently have this in my pom:
<plugin>
  <groupId>com.github.webdriverextensions</groupId>
  <artifactId>webdriverextensions-maven-plugin</artifactId>
  <version>3.1.1</version>
  <executions>
    <execution>
      <goals>
	<goal>install-drivers</goal>
      </goals>
      <phase>pre-integration-test</phase>
    </execution>
  </executions>
  <configuration>
    <installationDirectory>${buildDirectory}/drivers</installationDirectory>
    <drivers>
	<driver>
	  <name>geckodriver</name>
	</driver>
    </drivers>
  </configuration>
</plugin>
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>exec-maven-plugin</artifactId>
  <executions>
    <execution>
    <phase>integration-test</phase>
    <goals>
      <goal>java</goal>
    </goals>
    </execution>
  </executions>
  <configuration>
    <mainClass>jp.vmi.selenium.selenese.Main</mainClass>
    <includePluginDependencies>true</includePluginDependencies>
    <arguments>
      <argument>--geckodriver</argument>
      <argument>${buildDirectory}/drivers/geckodriver-linux-64bit</argument>
      <argument>--html-result</argument>
      <argument>target/site/selenium-reports</argument>
      <argument>--xml-result</argument>
      <argument>target/failsafe-reports</argument>
      <argument>--no-exit</argument>
      <argument>${buildDirectory}/suite.html</argument>
    </arguments>
  </configuration>
  <dependencies>
    <dependency>
      <groupId>jp.vmi</groupId>
      <artifactId>selenese-runner-java</artifactId>
      <version>${selenese.runner.java.version}</version>
    </dependency>
  </dependencies>
</plugin>
</plugins>

But that will only work on one platform. it would already help if the output file for the driver download could be specified.

A workaround could be to handle this with os specific profiles:
<profiles>
        <profile>
            <id>platform-windows</id>
            <activation>
                <os>
                    <family>windows</family>
                </os>
            </activation>
            <properties>
                <platform>windows</platform>
                <webdriver.gecko.driver.binary>geckodriver-windows-64bit.exe</webdriver.gecko.driver.binary>
            </properties>
        </profile>
        <profile>
            <id>platform-mac</id>
            <activation>
                <os>
                    <family>mac</family>
                </os>
            </activation>
            <properties>
                <platform>mac</platform>
                <webdriver.gecko.driver.binary>geckodriver-mac-64bit</webdriver.gecko.driver.binary>
            </properties>
        </profile>
        <profile>
            <id>platform-linux</id>
            <activation>
                <os>
                    <family>linux</family>
                </os>
            </activation>
            <properties>
                <platform>linux</platform>
                <webdriver.gecko.driver.binary>geckodriver-linux-64bit</webdriver.gecko.driver.binary>
            </properties>
        </profile>
    </profiles>

And then:
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.19.1</version>
                <configuration>
                    <includes>
                        <include>*Spec*</include>
                    </includes>
                    <systemPropertyVariables>
                        <geb.build.reportsDir>${project.build.directory}/test-reports/geb</geb.build.reportsDir>
                        <webdriver.gecko.driver>${project.basedir}/drivers/${webdriver.gecko.driver.binary}</webdriver.gecko.driver>
                    </systemPropertyVariables>
                </configuration>
            </plugin>

The problem is that a maven plugin cannot set any property at all. So I think it is impossible to do achieve this with this plugin unless somebody proves me wrong.
It's a good workaround though. Another solution one is to use the WebDriverRunner in the WebDriverExtensions framework which this plugin was initially made for.
https://github.com/webdriverextensions/webdriverextensions

Using the System properties works only for non-forking mode of Surefire plugin, which is disabled by default. But it is possible to pass properties by using the userProperties of the MavenSession.
The feature will be disabled by default because setting properties in this way overrides any previously set properties via systemPropertyVariables (see 1 + 2). To enabled this feature, set setWebdriverPath to true.


[Question] Usage in combination with NEHotspotConfiguration

Hi @rwbutler .
Can the Connectivity be used in combination with NEHotspotConfigurationManager? We are thinking of an iOS app that programatically connects to a wifi hotspot (by using NEHotspotConfigurationManager) that doesn't have internet behind it. And I wonder if Connectivity can be used next to it to prevent the hotspot's captive page from being shown when connected.

Connectivity can be used to detect whether a captive portal is being shown or not and based on this you may take appropriate action in your app - it doesn't prevent the page from being shown unfortunately. Hope this answers the question?

it doesn't prevent the page from being shown unfortunately. Hope this answers the question?

This answers the question, thank you


cleanup initial experience

drops reference to tnpm
use postinstall hook to ensure examples dependencies are also up-to-date
updated README

very nice job! please rebase it then i will merge this PR :)  Thanks!

@superRaytin rebased, dropped the first commit as it's no longer needed

I removed postinstall  hook 😹 , as this caused a postinstall script error when npm install. Because examples is in .gitignore, so it will be ignored when published.


Access to Google speech API regional endpoint failed in C++

What version of gRPC and what language are you using?
grpc 1.41.0 with C++
What operating system (Linux, Windows,...) and version?
Linux Debian 10
What runtime / compiler are you using (e.g. python version or version of gcc)
gcc version 8.3.0
What did you do?
I use this sample code transcribe.cc to request a speech recognition (speech to text) to Google european end point (replace "speech.googleapis.com" by "eu-speech.googleapis.com" in this code)
What did you expect to see?
Recognized text from speech file like I see when I use global endpoint speech.googleapis.com
What did you see instead?
Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential.
Full log

lco@, the issue should be fixed in https://github.com/grpc/grpc/pull/27155. We had a similar use case internally that uses google speech API regional endpoints, and the solution worked for them. Could you please double check if you indeed use the version 1.41.0 or configure the regional endpoint correctly?

In log you can see I use version 1.41.0. I put trace in jwt_credentials.cc where I checked your commit :
gpr_log(GPR_DEBUG, "service_url = %s (%s)\n", cached_.service_url.c_str(), context.service_url);
The result :
D1004 16:39:29.140999776   24664 jwt_credentials.cc:101]     service_url = https://eu-speech.googleapis.com/ (https://eu-speech.googleapis.com/google.cloud.speech.v1.Speech)
I checked configuration following this page and the result is OK when I use export "CLOUD_SPEECH_ENDPOINT=https://eu-speech.googleapis.com".

I believe the internal fix has been released. @lco38, could you please try it out?

Yes. I confirm that fix is OK for me.


Add support for array-valued attributes.

Resolves #160.

I don't feel the refactor of the Jaeger exporter is warranted by the small change required here. It makes this a lot harder to review. If we feel a refactor is necessary (I don't think it is), I'd rather see that in a separate PR.

The extraction of the SpanEncoder allows for two small improvements: Removing the need for rubocop:disable Metrics/ClassLength in d7190baa3c328d383daeff9a7d40d7cc82e30f99 and making it easier to add unit tests in 98343a7e6f69d683575c0e78a5ddff478c9eb05a . Do we feel that adding test coverage is not a priority at this time?
I'm happy to do the extraction in a standalone PR first if that would make this easier to review.

I'm happy to do the extraction in a standalone PR first if that would make this easier to review.

I'd really appreciate that. I have a short attention span 😄

@mwear @fbogsany Jaeger support for array attributes is now ready for review in this PR.


feat: improve golangci-lint action

Codecov Report
Base: 76.57% // Head: 76.49% // Decreases project coverage by -0.07% :warning:

Coverage data is based on head (1f1016f) compared to base (8e0e878).
Patch coverage: 93.23% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2229      +/-   ##
==========================================
- Coverage   76.57%   76.49%   -0.08%
==========================================
  Files         580      582       +2
  Lines       48281    48374      +93
==========================================
+ Hits        36969    37004      +35
- Misses       9290     9342      +52
- Partials     2022     2028       +6

Flag
Coverage Δ

go-1.15-386
76.50% <93.23%> (?)

go-1.15-amd64
76.53% <93.23%> (+<0.01%)
:arrow_up:

go-1.16-386
?

go-1.16-amd64
76.48% <93.23%> (-0.01%)
:arrow_down:

go-1.17-386
76.52% <93.23%> (-0.01%)
:arrow_down:

go-1.17-amd64
76.53% <93.23%> (?)

go-1.18-386
76.44% <93.23%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

container/glist/glist.go
73.99% <ø> (-0.07%)
:arrow_down:

container/gpool/gpool.go
97.82% <ø> (ø)

container/gqueue/gqueue.go
100.00% <ø> (ø)

container/gring/gring.go
100.00% <ø> (ø)

database/gdb/gdb_core_trace.go
8.88% <ø> (ø)

database/gdb/gdb_model.go
70.12% <ø> (ø)

database/gdb/gdb_model_insert.go
64.35% <ø> (ø)

database/gdb/gdb_model_option.go
100.00% <ø> (ø)

database/gdb/gdb_model_select.go
73.19% <0.00%> (ø)

database/gdb/gdb_model_with.go
74.56% <ø> (ø)

... and 99 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


How to monitor seekRange updates

Hi Shaka Team,
The question is regarding DVR live stream
I am trying to update the time when the player is paused to inform user how much he has lagged from the live time.
In order to do that I am listening to the event timeandseekrangeupdated which is not invoked ever.
this.videoTag.addEventListener('timeandseekrangeupdated', () => {
         // not get called
     });
this.player.addEventListener('timeandseekrangeupdated', () => {
         // not get called
     });

Could you please provide the information of the event which is fired whenever seek range is updated?
Many thanks,
SHAKA FAN,
Vikas Bansal

I don't know where you got that event name, but it doesn't exist.  You can take a look at our documentation for a list of the events we fire.
The seek range changes as time passes.  It goes from the current time to a certain time in the past.  So as the wall time moves forward, so does the seek range.  When you call seekRange we calculate it based on the current wall clock time.  So each time you call it it will return a new value as time moves forward.

@TheModMaker It's a UI event, thrown from the controls.  If that's the case, the event is fired by the controls, rather than the player.
const ui = yourVideoElement.ui; const controls = ui.getControls(); controls.addEventListener('timeandseekrangeupdated', blah);
If you're not using the UI lib, the event won't exist!
You did not explain in too much detail what your use case is for the event, so I'm not sure if it will be helpful or not.
Try it out, if it turns out not to serve your purpose, let us know, we'll see what we can do.

I noticed that in @vksbansal's code snippet, the even listener is on player & video tag instead of the controls object.  That is probably the issue here.  @vksbansal, does that help?

@TheModMaker thanks for bringing the clarity. I am building my own UI on the shakaplayer, here is an a video that is being played using shakaplayer https://www.airtelxstream.in/movie/gravity/HOOQ_MOVIE_53828
Allow me to explain the scenario,
What is the type of stream?
Live widevine (.mpd)
when I need the event?
when a user has paused the video
why I need the event?
When a user has paused the video when I need to show the seek bar showing the current time in the seek bar. Either I need to use settimeout to update the seek bar or find an event that fires whenever you hit the index file to stay updated about the live stream.
please feel free to ask me more if above explanation is not as required.
Many thanks,
Vikas Bansal

As @ismena noted, that event only exists if you are using our UI.  So if you are building your own UI, you won't see that event.
That event is just invoked every 1/8th of a second.  It is the same as using setInterval.  So in your UI you should just use setTimeout/setInterval to check for updates.  Since the timeline is changing continuously as wall time moves, there is no event for when that happens.


Gradle cache not working on windows

Description:
The gradle cache is never found:

Task version:
@3
Platform:

[ ] Ubuntu
[ ] macOS
[x] Windows

Runner type:

[x] Hosted
[ ] Self-hosted

Repro steps:
   - name: Set up JDK 17
      uses: actions/setup-java@v3
      with:
        java-version: '17'
        distribution: 'adopt'
        cache: gradle

Expected behavior:
At some point in later jobs/executions, the cache should be found.

Hello, @ennioVisco ! Thank you for reporting the issue, we will take a closer look at it and see what can be done :)

Hi, @ennioVisco 👋 Could you please provide us with the full code of the workflow?

Hi, @ennioVisco, just a gentle ping 📟

Hi, @ennioVisco, just a gentle ping 📟

I'm really sorry, I missed the previous notification I guess! Here it is: https://github.com/MoonLightSuite/moonlight/blob/master/.github/workflows/build.yml

@ennioVisco, I've just checked different runs of the workflow you sent and the cache seems to work there as expected. Examples: https://github.com/MoonLightSuite/moonlight/actions/runs/5520597484/job/14946814813 , https://github.com/MoonLightSuite/moonlight/actions/runs/5520759551/job/14947340486. Maybe the fact that in some of runs cache wasn't found drew your attention, but this behavior is completely expected (as one of the parts of a cache key is a hash of the lock files: https://github.com/actions/setup-java/blob/main/src/cache.ts#L37C3-L37C3 and if they are changed, cache key is also changed and actions logs: gradle cache is not found).

To give a clearer understanding of the error, this is what puzzles me @IvanZosimov:

Hi, @ennioVisco 👋 Thanks for the comment, it seems that the issue is related to well-known problem. Try to run Gradle with --no-daemon option. Refer to the https://github.com/actions/cache/issues/454 for more details. Please, write me back, when you get any results.

Hi, @ennioVisco, just a gentle ping 📟

Hi, @ennioVisco 👋 Thanks for the comment, it seems that the issue is related to well-known problem. Try to run Gradle with --no-daemon option. Refer to the actions/cache#454 for more details. Please, write me back, when you get any results.

Hey there, thanks a lot for the suggestion. From preliminary checks I can confirm that this seems to work much better!!
I will close the issue as this is an upstream bug of the GitHub actions/cache action. I recommend fellow readers incurring in the same issue to also adopt the --no-daemon flag.


wer rate is 400%

Hi I use Python 3.5.3 :: Anaconda custom (x86_64) and when I ran the command wer answer.txt stt.txt the result was wer 400%

My another coworker tried this with same files, same comand, the python version was 3.6.8 but he got the result seemed normal like wer 49.485 % . His computer is Ubuntu and I use Mac OS
Other coworkers (One Ubuntu, one Windows) also tried and they got the wer 400% result like me so can you help me to figure out the reason that the calculation result is different from me and the other person even though using same files and same command?
Thank you!!!

I share the sample files. The wer result was 0.00 % for me but my coworker result was WER: 100.000%, CER: 33.333% >> seems good!! not like my result for same files, same command wer answer.txt stt.txt
answer.txt
stt.txt

@entheos37 thank you for raising this issue. Do you have any information on whether you observe this across versions on a machine? (i.e. does it work on 3.6.8 on Mac OS or does it fail on 3.5.3 on Ubuntu)?

Hi @tshastry  Thank you for reaching me out.

Working Case

3.6.8 Python & Ubuntu

Failed Cases

3.7.x Python on Windows 10
3.5.3 Python on Mac OS.
I don't know the failed case of the version of Python on Ubuntu.

But three failed cases recently installed the library but the only successful one installed previously.


flir_camera_driver: 0.2.2-1 in 'noetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository flir_camera_driver to 0.2.2-1:

upstream repository: https://github.com/ros-drivers/flir_camera_driver.git
release repository: https://github.com/ros-drivers-gbp/flir_camera_driver-release.git
distro file: noetic/distribution.yaml
bloom version: 0.10.7
previous version for package: 0.2.1-1

flir_camera_description

No changes

flir_camera_driver

No changes

spinnaker_camera_driver
* Added new-line at EOF
* Spinnaker libraries are now all copied to usr/lib
* Reordered definitions to prevent compiler warnings
* Contributors: Luis Camero

Holding for Noetic sync


Configuration for private accounts in environment variables

Issue To Be Solved
@psiemens wrote:
I think the highest priority is to give users a way to securely specify a few pieces of private data, and that can be solved easily and quickly with environment variable support. Do you think we could implement support for environment variables in this sprint, and then do flow.private.json as a follow-up feature?
I was looking at other examples and it looks like this syntax is quite common:
...
	"accounts": {
		"testnet-account": {
			"address": "f8d6e0586b0a20c7",
			"keys": "${env:MY_PRIVATE_KEY}"
		}
	},
...

A few examples:
https://code.visualstudio.com/docs/editor/variables-reference#_environment-variables
https://www.serverless.com/framework/docs/providers/aws/guide/variables#referencing-environment-variables
https://www.elastic.co/guide/en/beats/winlogbeat/current/using-environ-vars.html

Could we use https://github.com/a8m/envsubst here?

I think that's a good idea yes. Do you want to add it or do you want me to?
On Fri, 26 Feb 2021 at 22:02, Bjarte S. Karlsen<EMAIL_ADDRESS>wrote:

Could we use https://github.com/a8m/envsubst here?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/onflow/flow-cli/issues/84#issuecomment-786892347, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AR7TL4FVIXJMIO2DHHY37N3TBAD7TANCNFSM4YE42XSA
.

I can take a stab at it.


Automatic error report

<!---   *** BEFORE SUBMITTING: PASTE CLIPBOARD HERE TO COMPLETE YOUR REPORT ***   ---!>
plugin = mod.PLUGIN_CLASS(self)
AttributeError: '_ModuleMock' object has no attribute 'PLUGIN_CLASS'

This is fixed in our latest version (3.3.1). Please update by opening the Anaconda Prompt and running there
conda update spyder


Callbacks like "onSlideChangeStart" not working for touch transitions

I'm having an issue with this callback (and others) not working when moving to a new slide.
The issue looks like this:

I move to a specific slide by clicking a pagination element
If I drag across the slider it will transition to the next slide triggered by the touch events, the pagination will update, but the onSlideChangeStart callback won't get called
I've found using the onTransitionStart callback will still trigger every time, so I'm using that instead, which looks like it gets called before onSlideChangeStart, so maybe it's faster / better

I can try and package this up and post it for you to look at if you want.

same issue :(

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue


Re-sourcing profile Xcode to update node version

Re-sourcing profile to update Xcode node version since Xcode use old node version and for some people (our team). This can cause the bundle to fail building main.jsbundle
Thank you for sending the PR! We appreciate you spending the time to work on these changes.
Help us understand your motivation by explaining why you decided to make this change.
If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged.
Pull requests that expand test coverage are more likely to get reviewed. Add a test case whenever possible!
Test Plan:
Problem
XCode 10 using wrong node version (older) so it cannot build the main.jsbundle when release the app on IOS
Test failed case before editing the code:
Run command react native for release:
react-native run-ios --configuration Release

-> The bundle will not be generated, XCode throw in error
Test success case after editing the code:
Run command react native for release:
react-native run-ios --configuration Release

-> IOS app is upload to test flight or ipa file is generated
Release Notes:
[IOS][BUGFIX] [./scripts]  - Sourcing XCode node version again when release to help re-bundling mainjs file when X code generate react native app version ^0.57.x

Hey, thanks for the PR! Can you fill in your test plan?

Sorry for the late reply. I am away for couple of weeks after the projects so I leave everything at home, here is the test plan text:
##Environment
XCode: 10.0.0
React native: 0.57.0
React: 16.5
Node version: 8.9.4
##Problem
XCode 10 using wrong node version (older) so it cannot build the main.jsbundle when release the app on IOS
##Test Case
####Test failed case before editing the code:
Run command react native for release:
react-native run-ios --configuration Release

-> The bundle will not be generated, XCode throw in error
####Test success case after editing the code:
Run command react native for release:
react-native run-ios --configuration Release

-> IOS app is upload to test flight or ipa file is generated

Thanks for adding it in!
I could use some help understanding why this fix is needed. Why is Xcode using a different version of Node? The fix appears to assume the user has set up their .bash_profile with a path to Node. Is this a reasonable assumption to make?

Oh, no! Please don't source .bash_profile by default... I use zsh, and other shells exists in the world!

Moreover, /.bash_profile simple does not exists in my system. Why in root of fs? May be it should be in /etc/profile, but I sure problem has other solutions...

Moreover, /.bash_profile simple does not exists in my system. Why in root of fs? May be it should be in /etc/profile, but I sure problem has other solutions...

Sorry, it seems like I was not being considerate about this. Please reject my pull request

@rush1506 Actually I'd recommend as a workaround for your issue, use nvm or nodenv. Both are supported by react-native-xcode.sh script. (moreover, actually it can be source of you initial issue, because react-native-xcode.sh script calls these managers not only if they are installed locally, but even if they simple exists in homebrew paths, see: https://github.com/facebook/react-native/blob/0.57-stable/scripts/react-native-xcode.sh#L59)


Error on building packer softlayer on centos 7

Hi leonidlem/chulkilee/mitchellh,
I have been trying to build packer softlayer plugin on CentOS 7. I have followed below steps:
wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.5.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
mkdir work
export GOPATH=$HOME/work
cd work/
mkdir src bin pkg
Install Bazaar and Mercurial
yum install bzr
yum install mercurial
go get -u github.com/mitchellh/gox
Next, clone this repository into $GOPATH/src/github.com/mitchellh/packer
cd $GOPATH/src/github.com/mitchellh
git clone https://github.com/mitchellh/packer.git
cd packer
[root@deskt packer]# make updatedeps
When running above command I am getting below error:
ERROR: go get failed. Your git branch may have changed; you were on master (a55d2f1).
INFO: Currently on master (a55d2f1)
[root@deskt packer]#
If I re run this above command it is working.
Then running next command.
[root@deskt packer]# make
ok github.com/mitchellh/packer/provisioner/shell-local 0.005s
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 5m0s
2015/08/24 05:10:18 Waiting for machine to become available...
2015/08/24 05:10:18 ui: Machine successfully restarted, moving on
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 5m0s
2015/08/24 05:10:18 Waiting for machine to become available...
2015/08/24 05:10:18 ui: Machine successfully restarted, moving on
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: WinRM terminated
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 5m0s
2015/08/24 05:10:18 Waiting for machine to become available...
2015/08/24 05:10:18 ui error: Error waiting for WinRM: Machine did not restart properly
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 1ms
2015/08/24 05:10:18 Waiting for machine to become available...
2015/08/24 05:10:18 ui error: Timeout waiting for WinRM.
2015/08/24 05:10:18 Attempting to communicator to machine with: 'powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA='
2015/08/24 05:10:18 ui: WinRM terminated
2015/08/24 05:10:18 Connected to machine
2015/08/24 05:10:18 Received interrupt Cancel()
--- FAIL: TestProvision_waitForCommunicatorWithCancel (0.01s)
provisioner_test.go:285: Should have err
2015/08/24 05:10:18 Retryable error: Still waiting 1 more times...
2015/08/24 05:10:18 Communicator wait cancelled, exiting loop
2015/08/24 05:10:18 Retryable error: Still waiting 0 more times...
2015/08/24 05:10:18 Retryable error: Still waiting 1 more times...
2015/08/24 05:10:18 Retryable error: Still waiting 0 more times...
2015/08/24 05:10:18 Received interrupt Cancel()
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 5m0s
2015/08/24 05:10:18 Waiting for machine to become available...
panic: test timed out after 15s
goroutine 68 [running]:
testing.startAlarm.func1()
/usr/local/go/src/testing/testing.go:703 +0x132
created by time.goFunc
/usr/local/go/src/time/sleep.go:129 +0x3a
goroutine 1 [chan receive]:
testing.RunTests(0x8e22b0, 0xa223e0, 0xe, 0xe, 0x0)
/usr/local/go/src/testing/testing.go:562 +0x8ad
testing.(M).Run(0xc8200d3ed8, 0x2231df1)
/usr/local/go/src/testing/testing.go:494 +0x70
main.main()
github.com/mitchellh/packer/provisioner/windows-restart/_test/_testmain.go:80 +0x116
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/go/src/os/signal/signal_unix.go:28 +0x37
goroutine 60 [chan receive]:
github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_Cancel(0xc82007ecf0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:351 +0x3ba
testing.tRunner(0xc82007ecf0, 0xa22518)
/usr/local/go/src/testing/testing.go:456 +0x98
created by testing.RunTests
/usr/local/go/src/testing/testing.go:561 +0x86d
goroutine 83 [chan receive]:
github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_Cancel.func1(0xc820100fc0, 0x0, 0x0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:336 +0x54
github.com/mitchellh/packer/provisioner/windows-restart.glob.func1.1(0xc8201251f0, 0xc820100fc0, 0xc82012bd50)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:109 +0x56
created by github.com/mitchellh/packer/provisioner/windows-restart.glob.func1
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:111 +0x10d
goroutine 51 [chan receive]:
github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_waitForRestartTimeout.func1(0xc820100c40, 0x0, 0x0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:201 +0x54
github.com/mitchellh/packer/provisioner/windows-restart.glob.func1.1(0xc820124a20, 0xc820100c40, 0xc82012ad20)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:109 +0x56
created by github.com/mitchellh/packer/provisioner/windows-restart.glob.func1
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:111 +0x10d
goroutine 61 [select]:
github.com/mitchellh/packer/provisioner/windows-restart.glob.func1(0xc820100fc0, 0x0, 0x0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:119 +0x5b2
github.com/mitchellh/packer/provisioner/windows-restart.(Provisioner).Provision(0xc820100fc0, 0x7efff048cb08, 0xc820120c40, 0x7efff048cb50, 0xc820104dd0, 0x0, 0x0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:97 +0x352
github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_Cancel.func2(0xc820124ed0, 0xc820100fc0, 0xc820120c40, 0xc820104dd0, 0xc8201292c0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:344 +0xa5
created by github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_Cancel
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:346 +0x375
FAIL github.com/mitchellh/packer/provisioner/windows-restart 15.008s
ok github.com/mitchellh/packer/provisioner/windows-shell 0.165s
ok github.com/mitchellh/packer/template 0.005s
ok github.com/mitchellh/packer/template/interpolate 0.004s
make: *** [test] Error 1
[root@deskt packer]#
Can someone please help me to resolve this error?

Hey Can someone provide me steps to setup packer softlayer plugin?

Hey @kumarsenthil, thank you for reporting this.
Just to clarify, the issue you reported is related to a packer itself and not to the Softlayer builder. Based on the information you submitted the errors appear when you try to build the packer project.
I followed your steps on a Centos 7 vagrant box and I got the same error in the following test: TestProvision_waitForCommunicatorWithCancel.
The error seems to be related to go 1.5: https://github.com/mitchellh/packer/issues/2312
Running with go 1.4 solved the problem for me.

Hey @leonidlm Thanks for helping me.
As you said, I have tried by installing go 1.4 and followed steps I have mentioned above. But still I am getting error.
[root@local packer]# make updatedeps
Parsing meta tags from https://google.golang.org/api?go-get=1 (status code 200)
google.golang.org/api (download)
ERROR: go get failed. Your git branch may have changed; you were on master (17cea4fa9570415005aad86ab85a5f18b157a11d).
INFO: Currently on master (17cea4fa9570415005aad86ab85a5f18b157a11d)
[root@local packer]# make
go get -v -d ./...
go test ./...  -timeout=15s
ok  	github.com/mitchellh/packer	0.008s
builder/googlecompute/driver_gce.go:222: cannot use v (type string) as type *string in field value
FAIL	github.com/mitchellh/packer/builder/googlecompute [build failed]
ok  	github.com/mitchellh/packer/builder/null	0.323s
builder/googlecompute/driver_gce.go:222: cannot use v (type string) as type *string in field value
FAIL	github.com/mitchellh/packer/plugin/builder-googlecompute [build failed]
ok  	github.com/mitchellh/packer/plugin/builder-null	0.008s
ok  	github.com/mitchellh/packer/plugin/builder-openstack	0.011s
ok  	github.com/mitchellh/packer/template	0.007s
ok  	github.com/mitchellh/packer/template/interpolate	0.006s
make: *** [test] Error 2
[root@local packer]# make dev
go get -v -d ./...
==> Getting dependencies...
==> Removing old directory...
==> Building...
/root/work/src/github.com/mitchellh/packer/scripts/build.sh: line 42: gox: command not found
find: './pkg': No such file or directory
==> Copying binaries for this platform...
find: './pkg/linux_amd64': No such file or directory
==> Results:
total 0
[root@local packer]#
Please take a look on this error. And If you can please provide me the steps you have followed. I will try and let you know

Hi leonidlm,
I am able to bring up the instance using packer softlayer plugin. When creating the AMI it is throwing "Failed to get proper HTTP response from SoftLayer API" error. Please help me to resolve this error.
[root@softlayer bin]# ./packer build sl.json
softlayer output will be in this color.
==> softlayer: Creating temporary ssh key for the instance...
==> softlayer: Created SSH key with id '355869'
==> softlayer: Creating an instance...
==> softlayer: Reading *****  {packer-centos-2015-09-12T06:53:54Z provisioning.com sng01 %!s(int=1) %!s(int64=1024) %!s(bool=true) %!s(bool=true) %!s(int=25) %!s(int=10) %!s(int64=355869)  UBUNTU_LATEST}...
==> softlayer: Created instance, id: '056d5d8a-7fa0-4e2f-b05a-473fd879f2de'
==> softlayer: Waiting for the instance to become ACTIVE...
==> softlayer: Waiting for SSH to become available...
==> softlayer: Connected to SSH!
==> softlayer: Provisioning with shell script: /tmp/packer-shell958835729
==> softlayer: Preparing for capturing the instance image. Image snapshot type is 'flex'.
==> softlayer: Error while trying to capture an image from instance (id=056d5d8a-7fa0-4e2f-b05a-473fd879f2de). Error: Failed to get proper HTTP response from SoftLayer API
==> softlayer: Waiting for the instance to have no active transactions before destroying it...
==> softlayer: Destroying instance...
==> softlayer: Deleting temporary ssh key...
Build 'softlayer' errored: Error while trying to capture an image from instance (id=056d5d8a-7fa0-4e2f-b05a-473fd879f2de). Error: Failed to get proper HTTP response from SoftLayer API
==> Some builds didn't complete successfully and had errors:
--> softlayer: Error while trying to capture an image from instance (id=056d5d8a-7fa0-4e2f-b05a-473fd879f2de). Error: Failed to get proper HTTP response from SoftLayer API
==> Builds finished but no artifacts were created.
[root@softlayer bin]#
Thanks in Advance. :)

Should be fixed with aaee0561423ff696e3f516895a9ef671b6d2afd6


New Skeleton component

This should maintain backwards compatibility with the old Progress component.
Closes Progress rewrite ticket
TODO:
Figure out the best way to mark a component as deprecated (needs ticket to be added)

Should the size of the skeleton depend on the content in some way? I get the following for the Button in the codesandbox, for example:
import "./styles.css";

import { Button } from "@headstorm/foundry-react-ui";

export default function App() {
  return (

Hello CodeSandbox

Start editing to see some magic happen!

      <Button isLoading>Press me</Button>

  );
}

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Re-export Control.Monad from Logic

Fixes #3052
Scope:
Re-exports Control.Monad.Trans and Control.Monad from Logic.
Estimate:
Done.

Review checklist
The author performs the actions on the checklist. The reviewer evaluates the work and checks the boxes as they are completed.

[x] Summary. Write a summary of the changes. Explain what you did to fix the issue, and why you did it. Present the changes in a logical order. Instead of writing a summary in the pull request, you may push a clean Git history.
[x] Documentation. Write documentation for new functions. Update documentation for functions that changed, or complete documentation where it is missing.
[x] Tests. Write unit tests for every change. Write the unit tests that were missing before the changes. Include any examples from the reported issue as integration tests.
[x] Clean up. The changes are already clean. Clean up anything near the changes that you noticed while working. This does not mean only spatially near the changes, but logically near: any code that interacts with the changes!

LGTM, tho not too keen on re-exporting modules in the first place...

Me neither, but I wanted to keep the module's interface the same without using CPP to support multiple versions of the package. The other option would be a version bound, but since logict is a critical package I think it's preferable to support the latest version if we can.


Mec172x pinctrl

Implemented Pin Control for MEC172x.
This is resubmit; unable to submit new changes in previous PR #41888

Thanks Gerard!

LGTM. @jvasanth1
I noticed that same KSCAN driver will be used for MEC152xx and MEC172x, has this been re-validated in MEC152xx?
This change breaks compilation when samples/helloworld is compiled for MEC152x EVB board with CONFIG_KSCAN=y
Will raise an issue, this needs to be address

Hi @jvasanth1 , could you please rebase it? thank you!

Rebased as per request; please help to re-approve.

Thanks! @jvasanth1 , could you please also fix the compliance check?  Thank you!
Run if [[ ! -s "compliance.xml" ]]; then
Error: See https://docs.zephyrproject.org/latest/contribute/#coding-style for more details.

-:3006: WARNING:NEW_TYPEDEFS: do not add new typedefs
#3006: FILE: soc/arm/microchip_mec/common/pinctrl_soc.h:[29](https://github.com/zephyrproject-rtos/zephyr/runs/5424671126?check_suite_focus=true#step:9:29):
+typedef struct {

- total: 0 errors, 1 warnings, 2969 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Your patch has style problems, please review.

The compliance check is not an issue. See @gmarull's comment here.


dubbo-spring-boot-starter  pom.xml

 <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter</artifactId>
           <scope>true</scope>
</dependency>

<scope>true</scope> should change to <optional>true</optional> ?

I think it should be <scope>provided</scope>

I think it should be <scope>provided</scope>

i think you are right.

I think it should be <scope>provided</scope>
i have commited pull request to correct this place and 3q for your reply.
i am a novice, if i have some thing wrong, please dont mind.

I think it should be <scope>provided</scope>

i have commited pull request to correct this place and 3q for your reply.
i am a novice, if i have some thing wrong, please dont mind.

Thanks,  will be changed true


Add UtfFontTest to GdxTests

Hi, i see test missing in GdxTests lists.
i also add more specials chars in test.
Thanks for reading

UtfTest was only added to test a problem with this file and similar fonts: https://github.com/libgdx/libgdx/blob/master/tests/gdx-tests-android/assets/data/utf-font.fnt In those cases, the kerning in the font file was incorrect (you can see that the kerning mentions char 137, but there is no char 137 in the font), and libGDX previously broke when attempting to render it. I think to adequately test the issue, the problem kerning pairs should be entered as part of a String, even though the font can't render parts of the pair (the test may do this already, if it includes a raw Unicode char where it should have \u0089, but it looks like it doesn't actually test the missing kerning pairs). Rendering other Unicode chars doesn't help confirm any qualities of the tested code, since it already rendered a high-in-Unicode char.

Yeah, its true add more characs dont add value to the test himself.
It wasnt my goal when i made this commit.
I also see gdx-tests like showcases for see gdx possibilities.
I imagine this screen glows with more chars. ^^
I can repush to reset screen to display only ⌘, and just add UtfFontTest to screens test list.
Or pr can be close. no problem.
Thanks a lot for your precisions

No, it's nothing wrong with what you've done, it's just upon looking at this test 7 years after it was added, I'm not sure it accomplished its original goal. Printing an extra line that tests the original problem would be good to add:
"\u0089\u0065\u0089\u0074"

As long as that doesn't cause horrible errors like a crash when it writes the text, the test can be considered as passing. Ideally, it should show an unknown-character glyph, then "e", then another unknown-character glyph, then "t". If it doesn't do that, it should just show "et".

Done i add new line, i reference your comment  in code for context.
Thanks for your feedback and kindness.


Export resource YAMLs of seeds, shoots, etcds for prow jobs

How to categorize this PR?

/area testing robustness
/kind test
What this PR does / why we need it:
This PR export k8s resource YAMLs of seeds, shoots, etcds, leases to the Prow job's artifacts directory for easier debugging of Prow job and improved script ci-common.sh to store events of cluster to artifact directory instead of storing inside node gardener-local-control-plane folder.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

NONE

/retest

shoot, seed, and other yaml. are empty in artifacts. https://storage.googleapis.com/gardener-prow/pr-logs/pull/gardener_gardener/7504/pull-gardener-e2e-kind-upgrade/1626227612617543680/artifacts/shoots.yaml

That's expected when everything works well. There are also no logs/events for the namespaces.

/retest

I see some failing tests in this PR, but the files in the artifacts directory are empty. I would have expected them to be present, or?

I see some failing tests in this PR, but the files in the artifacts directory are empty. I would have expected them to be present, or?

Job pull-gardener-e2e-kind failed due to KUBECONFIG not set properly - Now fixed here
Job pull-gardener-e2e-kind-ha-multi-zone-upgrade failed due to this issue -- Fix #7533

/lgtm
/approve

/test pull-gardener-e2e-kind-ha-single-zone

/test pull-gardener-e2e-kind-ha-multi-zone-upgrade


Added sine_wave function for generating variable-frequency sine waves…

… in_waveforms.py
This commit introduces a new function, sine_wave, that allows the generation of sine waveforms with variable frequency, amplitude, and phase. The function accepts input time values and optional parameters for frequency, amplitude, and phase, making it a versatile tool for generating sine waves with varying characteristics.
Examples and documentation are provided to demonstrate the usage of the sine_wave function.

Reference issue

What does this implement/fix?

Additional information

@muzakkirhussain011, thank you for your proposed contribution to SciPy, but this function is not a useful addition to the library.  For a given set of inputs t, amplitude, frequency and phase, a user can easily write amplitude*np.sin(2*np.pi*frequency*t + phase).  We don't need a new function for that.