Ll/polygon intersects

I added the intersection, union, and difference functionalities for two polygons. They are all in one file.

My first suggestion would be to make a clipping folder within the methods folder. Then, within that folder, make an intersection, union, and difference file. You might also need some type of clipping_processor.jl file that holds shared helper functions.  Then have the high level functions that put together the helper functions within the union, difference, and union files and the lower level stuff in the processor file.


Rich text equivalences

@jamesjefferies I've pushed some updates that add a form helper for supporting trix fields


Could not retrieve speedtest.net configuration

speedtest_cli
Retrieving speedtest.net configuration...
Could not retrieve speedtest.net configuration: <urlopen error [Errno 4] Non-recoverable failure in name resolution>

Lack of usable information.  Please feel to create a new issue if you can actually provide more useful information.


ValueError: all input arrays must have the same shape in metrics.py (Training with new dataset)

Thank you for your kind tutorial and framework.
I'm trying to create a new model with my dataset, but "ValueError: all input arrays must have the same shape" occurs in metrics.py. I printed out the output of that part, and I found the input list to np.stack is incorrect. Some lists have 1 element and others have 3 elements. The number of former lists is same as "good" label data. Maybe I mistaked around this part. How can I fix this problem?

Hello!  I have the same problem so I was wondering how did you solve it?

Hey, I had a similar issue when trying to train on my own dataset. The masks of the mvtec dataset are grayscale images, whereas the masks I created by myself had 3 channels/were RGB images. You have to save your masks as grayscale images aswell, and this error shouldn't occurr anymore.


fix| apiserver_request_total code 5xx match with =~

Pull Request
Required Fields
:mag_right: What kind of change is it?

fix

:dart: What has been changed and why do we need it?

API Server - Errors by Instance selects 5xx error  with "=",  it should be "=~"
API Server - Errors by Verb  selects 5xx error  with "=",  it should be "=~"

Optional Fields
:heavy_check_mark: Which issue(s) this PR fixes?

...

:speech_balloon: Additional information?

...

Thank you for the fix @kongfei605

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


Guru Meditation Error: Core  0 panic'ed (InstrFetchProhibited). Exception was unhandled. when using EXT_RAM_ATTR (IDFGH-7238)

Working Code:
#include <stdio.h>
#include "sdkconfig.h"
#include "esp_attr.h"

typedef void(*func_t)(void);

static void func(void)
{
    printf("func\n");
}

func_t  func_ext = &func;

void app_main(void)
{
    printf("Hello world!\n");
    (*func_ext)();
}

Failing Code:
#include <stdio.h>
#include "sdkconfig.h"
#include "esp_attr.h"

typedef void(*func_t)(void);

static void func(void)
{
    printf("func\n");
}

func_t EXT_RAM_ATTR func_ext = &func;

void app_main(void)
{
    printf("Hello world!\n");
    (*func_ext)();
}

the failing code brings:
Guru Meditation Error: Core  0 panic'ed (InstrFetchProhibited). Exception was unhandled.

testing:
    ESP_LOGI(TAG, "func_ext = %p", func_ext);

give:
Hello world!
I (1276) func_ext: func_ext = 0x0

Hello world!
I (1275) func_ext: func_ext = 0x400d577c

adding another func_ext = &func; before the call
    func_ext = &func;
    (*func_ext)();

then it works.
while the 0x0 happens when the EXT_RAM_ATTR is in place.

I think the reason is that EXT_RAM_ATTR is supposed to be applied to zero-initialized variables (.bss segment) only. The macro name isn't clear about this, and for that reason we have deprecated EXT_RAM_ATTR in favour of EXT_RAM_BSS_ATTR in v5.0 (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/system.html#esp-common).

https://en.wikipedia.org/wiki/.bss

does BSS really mean zero-initialized variables in General, or only at Espressif ?

Yes, .bss is used for zero-initialized variables in general. If you compile a program with a zero-initialized global variables on the PC (e.g. on Linux) and run objdump on it, the variable will also be in the .bss section.

Thanks.
Any idea of an Release Date for 5.0?
Holen Sie sich Outlook für Androidhttps://aka.ms/AAb9ysg

From: Ivan Grokhotkov @.>
Sent: Monday, April 25, 2022 10:02:18 PM
To: espressif/esp-idf @.>
Cc: Franz Höpfinger @.>; Author @.>
Subject: Re: [espressif/esp-idf] Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled. when using EXT_RAM_ATTR (IDFGH-7238) (Issue #8832)
I think the reason is that EXT_RAM_ATTR is supposed to be applied to zero-initialized variables (.bss segment) only. The macro name isn't clear about this, and for that reason we have deprecated EXT_RAM_ATTR in favour of EXT_RAM_BSS_ATTR in v5.0 (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/system.html#esp-common).
—
Reply to this email directly, view it on GitHubhttps://github.com/espressif/esp-idf/issues/8832#issuecomment-1108983888, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQSZUH4UFLA7GNIMIBNRRATVG324VANCNFSM5UI2XLOA.
You are receiving this because you authored the thread.Message ID: @.***>
[https://www.meisterschulen-mchn.de/images/meisterschulen/allgemein/4-logos/logofc.jpg]
Meisterschulen am Ostbahnhof
Mühldorfstr. 6
81671 München
Tel.: 089 416002 - 0
Fax: 089 416002 - 111
Internet: www.meisterschulen-münchen.dehttp://www.meisterschulen-mchn.de

Thanks. Any idea of an Release Date for 5.0?

https://github.com/espressif/esp-idf/releases/tag/v5.0

Problem solved so far.


Docs: Raidboss readme updates (helper function info)

This should move us closer to resolution on #1286. This request as it stands does two things: It moves the order of the trigger elements in the document into conformity with the order found in the build tests, and it adds a small amount of information on helper functions and where to find them.
The edits to order are in a separate commit for ease of reversion if that's not desired at this time. I personally think it's best to ensure that all references to trigger elements are uniform in order, but I can see that it's slightly odd to have the response property before the popup text properties. Rendered moot in #1285.
On the helper/replacement functions, I wasn't sure how much information we wanted to place in the triggers document. My thought was that maybe we could have a small amount of information here, and then at some later point a new separate unified document that covers all the helper functions could be created and linked to from here.
That all being said, I'm not sure about a lot of how I've presented this stuff, hence the draft status.

After a little more looking at this, I think it's probably fine as it is. Unless there's a particular desire to keep the information on replacement functions here, I'll start on a separate document that will probably live in cactbot/docs.

I was actually thinking this doc should move to the docs/ folder.  It predates that folder.  Would it make sense to move it there and combine it with whatever you were thinking of writing separately?

Oh, okay. I've wanted that myself, but thought there might have been a reason the triggers readme lived where it did. In that case, I think I'll put this one in storage briefly and instead do a separate request that just handles the location shuffling? This file isn't the only one that needs it, Oopsy also comes to mind, and there are probably a few others.

Yeah, doing this for oopsy would be good as well.  I think it's hard enough to find the docs/ folder, let alone look for some markdown deep in a folder tree.

Okay, I'll work on fleshing out the replacement information for now. Maybe create a new section in RaidbossGuide.md dedicated to that?

You're right, there's probably not a lot of point in a full document just for the helpers. I'll put a section at the end of the guide with a brief explanation and a few examples then.


[API: /api/txs] How do I know a trasaction is error?

I tried to get transactions from api/txs. But I don't know how to detect a transaction was error.

it is tx.status


rsync just the modified files?!

I have a shared directory which takes 82 seconds for rsync (with no changes, just to checkout both trees are equal)  to run.
Why not capture which files were changed when watching and only updating those? That would speed up absurdly in my use case.
If you wish, I could try to make a PR. Could you direct me where I should change the code to do that?

Windows host here.

Oops, registered the issue with the wrong account.

I think that's out of scope for this plugin - both this plugin and core Vagrant rsync just listen for changes and do a full rsync. (This plugin actually calls Vagrant core's rsync action to do the syncing.)

Dang... That is really bad for bigger repositories, work environments...

Created vagrant issue https://github.com/mitchellh/vagrant/issues/6480


Lint task sometimes does not re-run when editorconfig changes

Although we are supposed to consider the editorconfig file contents a build input and re-run lint tasks when it changes, somehow this isn't happening sometimes. It often leads users to perceive that one of their editorconfig settings is not working.
Reference #324 and #321

This problem happens to me all of the time. I don't know where the editorconfig file is cached but git clean -fxd fixes it for me.

./gradlew --stop && ./gradlew :link:formatKotlin

Yeah, this is clearly a bug, but I need to find time to track it down and fix it. PRs welcome if someone else sees the solution.

I'm unable to create a PR, but I can link the root cause: https://github.com/jeremymailen/kotlinter-gradle/blob/2023cbb75fc4d0287317cb25a295a68b6accab71/src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/ConfigurableKtLintTask.kt#L31-L35 - the if should be dropped. The exact failing scenario (with a bit of explanation) can be found on kotlinlang slack

Thanks @mateuszkwiecinski I can definitely make a PR when I get back home from the holidays.
You should still have permission to make PRs, merge, release etc since you're still a contributor but if you're running into trouble I can try to fix whatever's gone wrong.


Add CAT12 + phsyio = SPM12 with toolboxes

SPM toolbox

CAT12 comes in an MCR version already: http://<IP_ADDRESS>/cat12/
Add Nipype as well in the container as requested here: https://github.com/ReproNim/neurodocker/issues/407

completed :)


need to update doc to "config system standalone-cluster"

since 7.2.1
"config system cluster-sync" is moved to  "config system standalone-cluster"

Hi,
Updated the docs in Active/Active about this.
Joeri


Send errors to stderr

Fixes https://github.com/istio/istio/issues/17743.

In response to a cherrypick label: new pull request created: #536


add requires alphabetic sort

This codemod sorts requires alphabetically, moving them to the top of the document.
It makes a simple check for requires that depend on other requires, and adds these later.
It keeps "use strict"; at top if present.
https://astexplorer.net/#/HPwPYV4rcI/6

I assume you have seen the imports extension in this repo? It seems like it already covers these cases. Am I missing something?

@pieterv I actually missed that extension.
Had a look and looks much the same thought I didn't find how it handles dependencies like:
var B = require('bob');
var A = require('ana')(B);

so A does not get placed before B.
I will close this here and study the extension better. Thank you for feedback.

@SergioCrisostomo My preference for
var B = require('bob');
var A = require('ana')(B);

Would be to auto split it out into:
var ana = require('ana');
var B = require('bob');

var A = ana(B);

but in the short term would could make it so any time you call one of the requires it splits it into a new block after? Check out the configs, you can define whatever custom logic you need for how you want to sort/split requires. Would love to hear your feedback on the extension or see PR's :)


icp-management-ingress digest update 2.5.10

duplicate of https://github.com/IBM/ibm-monitoring-exporters-operator/pull/50, hence closing


Not actually serving two folders at the same time.

Tried this code, and it works fine for the static file, it reads my index.html and serves it, but my dist folder is never served.
<!-- Servers correctly inside localhost:8080 -->
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf8" />
    <meta name="viewport" content="width=device-width" />

    <title>Button Sandbox</title>
</head>

<body>
    <!-- Always fails saying it cant find ./dist/index.js, looking inside chrome sources, there is index.html but no dist folder -->
    <script src="./dist/index.js"></script>
</body>

</html>

!production && serve({
	contentBase: ["dist", "static"],
	port: "8080"
}),

What is your folder structure?
If index.js is at dist/index.js, you might want:
    <script src="/index.js"></script>

The folder structure was:
dist
- index.js
static
- index.html

meaning that dist is outside static, its another folder, I will try looking as root instead.

Did you ever find a solution to this? I have a similar issue, the dist folder is returning 404

Did you ever find a solution to this? I have a similar issue, the dist folder is returning 404

Not that I remember.


Added .crx and .pem files

Are you sure that every line starts with a +?

Actually, I created these files following the link which I have given on the issue. The process has created these files and I didn't change anything. So I am sure this would be it.

So, its just that after this one need to download crx file and drag and drop it? and what is pem file for?

It's like, if you are creating the crx file for the first time, the process will create the file without demanding pem and it will also create a pem file which is a private key. But if you have created the crx before and now you want to update it, you must have a pem file related to the extension, the process will demand the pem file(private key) for updating the crx file.
I think you will understand more about this on this link.

Should .pem files be open?


Please discourage custom schemes

I'm an engineer on the Android WebView team. Custom schemes are poorly defined in web platform standards, and Android WebView generally struggles to maintain backwards compatibility for these. #348 and https://issuetracker.google.com/issues/140057007 are just a couple examples of this fragile use case breaking.
I see https://github.com/ionic-team/cordova-plugin-ionic-webview#scheme documents support for changing the scheme of content. While we encourage changing the scheme to https:// (and would even encourage making this the default, for improved web security), we strongly discourage any other scheme (data:, file:///, blob:, custom scheme, etc.). I would advise your docs to show the same recommendation.
If the app wants to distinguish injected content from real web content, they should host it on a unique domain rather than a unique scheme. This is the intended use case for https://developer.android.com/reference/androidx/webkit/WebViewAssetLoader.Builder.html#setDomain(java.lang.String).
CC @HazemSamir (the author of WebViewAssetLoader).

People using custom schemes on android do it for matching the iOS scheme. Sadly  on iOS, Apple doesn’t allow to intercept or use http nor https for serving local files. We can add a note to encourage people, but I think the Android webview should fix the issue and set the proper origin

Ah, I see. I agree that's very inconvenient. Does iOS restrict any other schemes? We originally considered supporting a custom scheme for intercepted content, but ultimately decided the AssetLoader design would be simpler (and would have better device coverage).
The issue is that the notion of an origin is only well defined for http(s) URLs. As I understand, the spec actually requires we treat custom schemes as origin-less. So it's not that it's something for us to "fix," but rather changing behavior would violate the spec. My colleague's response on this bug probably explains things more clearly: https://bugs.chromium.org/p/chromium/issues/detail?id=1029487#c4

It restricts to any scheme handled by the webview, don’t give specifics, but some of them are https, http, file and data.

People using custom schemes on android do it for matching the iOS scheme. Sadly on iOS, Apple doesn’t allow to intercept or use http nor https for serving local files.

Exactly that's what I am trying to find a solution for. The "Access-Control-Allow-Origin" header is now set to ionic://localhost and we would like to use that for Android too to not change that again.
I must agree that setting the app to run on https://ourdomain.com would be best and most future-proof stable solution. But right now this is not possible on iOS.
As I already discussed in the Chromium bug, I still think WebView could change the behavior according to the spec. RFC6454 is kind of vague with custom schemes and in my interpretation would allow hostnames to be part of the origin on custom schemes the app implements with shouldInterceptRequest. Another option would be a way to tell the Android WebView which schemes are valid to allow it to set the origin properly.

@NiklasMerz it sounds like your complaint is about setting up the "Access-Control-Allow-Origin" header. But even if you hosted your Android app on ionic://localhost, you would still need the header. Is there a problem with hosting the iOS app on ionic://localhost and the Android app on https://ourdomain.com? I haven't developed cordova/ionic apps myself, so I'm interested to learn the consequences for using different schemes on each platform.

As I already discussed in the Chromium bug, I still think WebView could change the behavior according to the spec. RFC6454 is kind of vague with custom schemes and in my interpretation would allow hostnames to be part of the origin on custom schemes the app implements with shouldInterceptRequest. Another option would be a way to tell the Android WebView which schemes are valid to allow it to set the origin properly.

I posted a response on crbug/1029487, since this Github probably isn't the best spot to discuss Android WebView APIs.

@NiklasMerz it sounds like your complaint is about setting up the "Access-Control-Allow-Origin" header. But even if you hosted your Android app on ionic://localhost, you would still need the header. Is there a problem with hosting the iOS app on ionic://localhost and the Android app on https://ourdomain.com? I haven't developed cordova/ionic apps myself, so I'm interested to learn the consequences for using different schemes on each platform.

Running Android on https://ourdomain.com and iOS on ionic://localhost means that the server must allow both origins. We are developing an app for an on-premise solution. Our previous release was configured to allow ionic://localhost and we told our customers to configure there servers with an additional setting to allow that origin. We now need to run our app for the new version on ionic on Android on http://ourdomain.com. The new app versions are always built to be backwards compatible but that means we are loosing the compatibility. That's why I am looking for a common origin for both platforms and ionic://localhost would be ideal because it was already set for that in the past.

I posted a response on crbug/1029487, since this Github probably isn't the best spot to discuss Android WebView APIs.

Thank you for the reponse. This makes it clear why it is like that.

I thought https://ourdomain.com was a placeholder for whatever domain is serving the content. My understanding is you don't need special CORS headers for that case, because it wouldn't be considered "cross origin." The intention of AssetLoader (and the original WebViewLocalServer which cordova-plugin-ionic-webview has forked) is you would choose a domain which will give your content the same origin as your real web server.
If your app connects with servers on multiple different domains, would it help for cordova-plugin-ionic-webview to give an API to set the domain during startup (this is how the AssetLoader API is designed) rather than statically in config.xml? I haven't looked closely at the plugin's implementation, so I'm not sure if this is something it could support even if it migrated to AssetLoader. Just trying to understand at which layer we're hitting the problem.

what difference does it make if you do it with an API or with a preference? In the end you can only have a domain and if you connect with servers on multiple domains the problem will still be there

'ourdomain.com' is a placeholder for one domain we would choose to run our app on. Our app is designed to always do CORS requests. It's a Web App with the UI and does requests to the server configured in the app by the user.
I don't know if it's possible to allow the plugin to change the origin at runtime and make same origin requests. I would need to look further and I am not that familiar with Android APIs.
Am 6. Dez. 2019, 22:30, um 22:30, Nate Fischer<EMAIL_ADDRESS>schrieb:

I thought https://ourdomain.com was a placeholder for whatever domain
is serving the content. My understanding is you don't need special
CORS headers for that case, because it wouldn't be considered "cross
origin." The intention of AssetLoader (and the original
WebViewLocalServer which cordova-plugin-ionic-webview has forked) is
you would choose a domain which will give your content the same origin
as your real web server.
If your app connects with servers on multiple different domains, would
it help for cordova-plugin-ionic-webview to give an API to set the
domain during startup (this is how the AssetLoader API is designed)
rather than statically in config.xml? I haven't looked closely at the
plugin's implementation, so I'm not sure if this is something it could
support even if it migrated to AssetLoader. Just trying to understand
at which layer we're hitting the problem.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/484#issuecomment-562744106

what difference does it make if you do it with an API or with a preference?

I think the difference is that @NiklasMerz's app only knows which server it will connect to at runtime, they won't know at compile time. The config.xml preference only works if you know the desired origin at compile time.

In the end you can only have a domain and if you connect with servers on multiple domains the problem will still be there

I'm not sure you actually need to load content on multiple origins for this use case (you only need the right origin), but we support registering an arbitrary number of AssetLoaders, each of which can load content on their own origin. Here's some example code.

Our app is designed to always do CORS requests.

I see. Our team intends AssetLoader as a way to avoid CORS requests. From the sound of it, AssetLoader itself should be sufficient for this in native apps (you would just register the AssetLoader when the user inputs their origin, which you must already know prior to loading content in the web page anyway), and the only issue is this does't integrate well with this plugin's static preferences.
If it's possible, it might be nice if cordova-plugin-ionic-webview supported dynamically configuring the origin, to avoid CORS in cases like this. But I would hope most apps only need to connect to a predetermined list of origins, so they could host their content on those origins (this is what we recommend for AssetLoader/WebViewLocalServer, and it might be good to pass along the same recommendation in this repo's docs for scheme/domain).

Since cordova apps load the app content since the beginning the hostname have to be configured before loading the app, so can’t be done with an API since plugins won’t work until the app code is loaded. Unless the API reloads the code with webview.reload/webview.loadUrl after changing the hostname

That means I could extend the plugin to set the hostname dynamically, but that would reload the whole app app, correct? That would be feasible for us as a workaround.
I don't know much about the AssetLoader. How would this work? The customer configures customer.com in the app, the app would reload to now run on "https://customer.com". It would now fetch all local resources for the app from "https://customer.com", but how do I do calls to the customers server? Does the AssetLoader know which URLs to get from the app assets and what has to be called to the server?
If that's possible, I will try that out on Monday and report back.

Since cordova apps load the app content since the beginning the hostname have to be configured before loading the app, so can’t be done with an API since plugins won’t work until the app code is loaded.

In that case, this sounds out of scope for cordova-plugin-ionic-webview. I suspect this is a very limited use case, at which point I think a native app is probably a better path forward.

@nfischer Another option we considered would be to intercept all requests and do them natively to avoid CORS checks.

Even if you shouldInterceptRequest these resources, I think they should still be subject to the same CORS checks in Android WebView (otherwise apps proxying to custom net stacks would lack the CORS security feature, which would be bad). I'm not sure what you're suggesting here.
If you're going that far, I think you should just register your own AssetLoader (hooked up to your WebView's shouldInterceptRequest) to load your content on the appropriate origin. This will let you avoid CORS problems, because you can pick the "right" origin for your content.

But the intercept method does not allow access to POST data. Do you see any chance for crbug.com/155250 to be fixed. It is untriaged for some time but was discussed extensively.

It's on our team's radar, but not currently prioritized.

Even if you shouldInterceptRequest these resources, I think they should still be subject to the same CORS checks in Android WebView (otherwise apps proxying to custom net stacks would lack the CORS security feature, which would be bad). I'm not sure what you're suggesting here.

Nevermind, I was just thinking out loud ways to move http requests to native code where CORS is not a concern. But now I think we will go the "same origin route" or require server side changes.
I can report, I found a way to switch the hostname at runtime. My first attempt here:
https://github.com/ionic-team/cordova-plugin-ionic-webview/compare/master...GEDYSIntraWare:android-origin
I am now able to let the app run on the same originn like the server let's say https://customerexample.com/index.html. Now I can add paths to WebViewLocalServer that should not be handled by the local server and go through shouldInterceptRequests unchanged. That means my requests are same origin with the connected server. I think that's the best solution for now, even though it needs to reload the app after setting the hostname. Let's see how further testing goes.
Example app for testing
Regarding the original title of this issue, we could add a note that custom schemes may not be the best option for apps requiring CORS requests. Others should not walk down a wrong path like I did :-).

@nfischer thanks for reaching out, we really appreciate you guys communicating w/ us.
Are there any deprecations or things we should keep in mind here? i.e. is there some urgency in us finding a different solution?

Regarding the original title of this issue, we could add a note that custom schemes may not be the best option for apps requiring CORS requests. Others should not walk down a wrong path like I did :-). See also #485

Yeah, I think that's a good way to frame it.

Are there any deprecations or things we should keep in mind here? i.e. is there some urgency in us finding a different solution?

We haven't finalized any deprecations yet, but non-standard schemes have historically been fragile, and we recognize there's latency from updating docs discouraging this until all the apps in the wild migrate off it.
Another chromium team is working on a major rewrite of the CORS implementation (I forget the exact timeline, but should release in the next few months). There's a decent risk it won't be 100% backwards compatible, and apps using non-standard schemes are at a greater risk of seeing any incompatibilities. We would almost certainly fix such regressions as we discover them, but these sorts of bugs are often only discovered after they're released into the wild, so those fixes might take up to 6 weeks to go out. Ideally we catch this in our prerelease channels, but stuff often sneaks through due to small user population in those channels.

I created a PR for switching the origin at runtime #486 . Going same origin this way was way better than the custom scheme for me. I hope this is the most future proof solution as well.
Let me know in the PR if I could change it to get it merged.


Remove value from formData when property is removed (not required)

Description
I'm trying to achieve something like this:

if enable property is true, it MUST contain ssid property
if enable property is false, it MUST NOT contain ssid property

Steps to Reproduce

Open this example
Enable WiFi
Fill in SSID
Disable WiFi
Error ['ssid'] should NOT have additional properties appears

If the link in 1. wont work, here's the schema.
Expected behavior
No ['ssid'] should NOT have additional properties error. I expect that there will be no ssid value in formData when I disable WiFi.
Actual behavior
Keeps ssid in formData and raising ['ssid'] should NOT have additional properties error.

I believe this is related to #902 and #848.
I believe there is a longstanding issue when using "additionalProperties": false


feat: add access control icons - CCR-23

Proposed Changes
Please use the Jira Key followed by the changes

JIRAKEY-1234

Some change
Another change

Checklist

[ ] I have added or updated unit tests
[ ] I have added or updated integration tests (if appropriate)
[ ] I have added or updated documentation / readme (if appropriate)
[ ] I have verified that my changes have not introduced new lint errors
[ ] I have added a GitHub labels to the PR for either patch, minor, or major

Testing Instructions

:rocket: PR was released in v1.21.0 :rocket:


Integrate cross-env for environment variables in package.json

This would allow for fixing the issue with cross platform building and dev (as currently we are using mac/linux... syntax)
https://www.npmjs.com/package/cross-env

This would allow for fixing the issue with cross platform building and dev (as currently we are using mac/linux... syntax)
https://www.npmjs.com/package/cross-env

building on windows does work

Fixed in f95b845 on svelte branch.


[HP][CPS][Win11][21H2][PowerShell]The PowerShell Export-WindowsDriver command fail to export drivers with Value cannot be null

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Steps to repro:

Setup OS and update to 22000.168
Launch Powershell with administrator
Type export-windowsDriver command to export drivers
Export-WindowsDriver -online -destination c:\Drvs
[Symptom] The Export-WindowsDriver cannot export the drivers

Expected behavior
Expected results:
- The Export-WindowsDriver can export the drivers

Actual behavior
Actual results:
-The Export-windowsDriver cannot export the drivers

Error details
Export-WindowsDriver : Value cannot be null.
Parameter name: SafeHandle cannot be null.
At line:1 char:1
+ Export-WindowsDriver -online -destination c:\Drvs
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Export-WindowsDriver], ArgumentNullException
    + FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.Dism.Commands.ExportWindowsDriverCommand

Environment data
Windows 11 21H2 OS version: 22000.184
PSVersion                      5.1.22000.65
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22000.65
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Visuals

This cmdlet comes from a module that's managed by the Windows product team rather than the PowerShell team. Please use the Windows Feedback tool to submit the issue and have it triaged by the appropriate team. 🙂


Fixed typos in advanced/config_file.md

Fixed typos in the documentation under advanced/config_file.md

Thanks @ScottAwesome !


webpack watchRun hooks

Environment
nuxt2
Reproduction
https://v2.nuxt.com/
Describe the bug
For the same plugin, watchRun hook has mtimes property in normal webpack projects, but mtimes is undefined in nuxt2. Does nuxt intercept the watcher object?
My requirements are as follows:
When the content of the vue file is updated, it is rebuilt directly, and when the content of other files is updated, it is rebuilt after a delay of 3s
      apply(compiler) {
        compiler.hooks.watchRun.tapAsync('watchRun', (watching, callback) => {
          console.log(watching.watchFileSystem.watcher.mtimes);
          callback();
        });
      }
    }

### Additional context

_No response_

### Logs

_No response_

Nuxt 2 is EOL: https://nuxt.com/blog/nuxt2-eol.


The API screen does not show the necessary api/v1 prefix.

I am just looking at bug labelled issues, sorry for the noise If I make mistakes.
I assume that The API screen means the  API section in the quickwick-ui, if this is the case, it appears to correctly have the required api/v1 prefix at least in the 0.5 release, I've used the multiple examples in the UI and they have all the right paths.

@ChillFish8 I think you fixed this issue right?

Yes I did when cleaning up the oppenapi stuff

Cool, thanks for the review @ph, closing...


Bug Report - third character causes line of input to snap back (post-git?)

Environment
Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1750.0

My font is Input Mono.
Steps to reproduce
Open Windows Terminal, PowerShell with this profile (it's basically posh-git and Chocolatey):
# poshgit...
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)

# Load posh-git module from current directory
Import-Module .\posh-git\posh-git

# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git

# Set up a simple prompt, adding the git prompt parts inside git repos
function global:prompt {
    $realLASTEXITCODE = $LASTEXITCODE

    Write-Host($pwd.ProviderPath) -nonewline

    Write-VcsStatus

    $global:LASTEXITCODE = $realLASTEXITCODE
    return "> "
}

Pop-Location

Start-SshAgent -Quiet

# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
  Import-Module "$ChocolateyProfile"
}

function semver { gitversion /output json /showvariable fullsemver }

$env:Path += (";" + $PSScriptRoot)

Go to a git folder (such that the posh-git prompt appears)
Type a character
Type another character
Type yet another character (the suspense is killing me!)

Expected behavior
The first two character stay as they were, and the third appears right next to them.
Actual behavior
The first two characters move to the left one position, and the third appears next to them.  I.e. any commands 3 characters or greater get shifted to the left one position when the 3rd character is typed.
This occurs for any 3rd character, including spaces.
Have just found #635 ... it looks very similar but that talks about rendering characters the wrong width? That doesn't seem to be the case here?

Posh-git's "prompt status" feature uses one of those "triple equals" symbols and some other branch markers, right? Those are probably categorized like the powerline symbols: double-width, but we don't know why.

Sorry. I meant to add before submitting: that means this likely is a duplicate of #635.


pciutils: 3.6.4 -> 3.7.0

Semi-automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/pciutils/versions.
meta.description for pciutils is: "A collection of programs for inspecting and manipulating configuration of PCI devices"
meta.homepage for pciutils is: "http://mj.ucw.cz/pciutils.html"
meta.changelog for pciutils is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.7.0 with grep in /nix/store/9fx0zl3x406n7p1riy1nniav2b5bqqgc-pciutils-3.7.0

directory tree listing: https://gist.github.com/dbab304d92a2eb032eadd61eb6b480ba

du listing: https://gist.github.com/23bc2fbd5180b046c0db59a0aa8f677e

Rebuild report (if merged into master) (click to expand)

23767 total rebuild path(s)

8844 package rebuild(s)

8839 x86_64-linux rebuild(s)
7486 i686-linux rebuild(s)
185 x86_64-darwin rebuild(s)
7257 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
AusweisApp2
DisnixWebService
EmptyEpsilon
Literate
MMA
OVMF
OVMF-CSM
OVMF-secureBoot
R
SDL
SDL2
SDL2_gfx
SDL2_image
SDL2_mixer
SDL2_net
SDL2_ttf
SDL_Pango
SDL_gfx
SDL_gpu
SDL_image
SDL_mixer
SDL_net
SDL_sound
SDL_stretch
SDL_ttf
Sylk
_20kly
_3mux
_90secondportraits
a2jmidid
abbaye-des-morts
abcde
abcl
abiword
abootimg
accountsservice
acoustidFingerprinter
acsccid
act
adapta-gtk-theme
adementary-theme
adlplug
adminer
adobe-reader
adom
adoptopenjdk-icedtea-web
adwaita-qt
aegisub
aeolus
aeon

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/9fx0zl3x406n7p1riy1nniav2b5bqqgc-pciutils-3.7.0 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A pciutils https://github.com/r-ryantm/nixpkgs/archive/31a301a1d69850ec6720ca65c30355f7a8c6a4e8.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/9fx0zl3x406n7p1riy1nniav2b5bqqgc-pciutils-3.7.0
ls -la /nix/store/9fx0zl3x406n7p1riy1nniav2b5bqqgc-pciutils-3.7.0/bin

Pre-merge build results
NixPkgs review skipped

Maintainer pings
cc @vcunat for testing.

I'm curious, what's with these branch-deletions of r-ryantm's PRs? Just some temporary bug?  (I recently saw it on other PRs, too.)

:smile:

@vcunat yes, a temporary bug. Sorry about the spam.

Certainly not a problem for me.


iOS: FlutterBarcodeScanner.scanBarcode doesn't return any result if Cancel pressed

iOS only : FlutterBarcodeScanner.scanBarcode doesn't return any result if Cancel pressed. After scanning result is returned.
[✓] Flutter (Channel dev, v1.10.3, on Mac OS X 10.14.6 18G95, locale ru-RU)
• Flutter version 1.10.3 at /Users/pavelmiheev/Flutter
• Framework revision 2f3515de31 (5 days ago), 2019-09-13 17:52:41 -0400
• Engine revision 7d8c6d9c1a
• Dart version 2.6.0 (build 2.6.0-dev.0.0 a554c8be6b)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/pavelmiheev/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.7.2
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (2 available)
• iPhone XXXX • 50f1a53ba6ebaa22d7b449ca4f4eefa01a099939 • ios • iOS 12.4.1
• iPhone Xʀ    • B75FF4F6-F864-49AB-9FEA-ACAC18A55B46     • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)
Swift Version 5

Thanks for using the plugin.
On cancel button click it is supposed to close barcode scanner and will not return anything as user canceled(Aborted) the scanning. Can you give some more details?

Thank you for your quick response. I run your example. After press Cancel, activity is closed, but await _channel.invokeMethod('scanBarcode', params) doesn't returns any result.

@pamir72  It was missing for ios. Now I've added some checks to prevent this. Now onwards if user cancels the scanning it will return -1 instead of null or empty string (in both Android and iOS). It will be fixed in the coming update.
Thanks for reporting and helping to improve the plugin.

@pamir72
Fixed in 0.1.5+2
If possible can you please acknowledge the issue is resolved?

Problem is solved ! Thank you for your promptness.


Support Orthographic Projection

I was looking at this as a way to generate what looks like a 2D sprite based game easily by using 3D meshes and this plugin to simulate sprites but with dynamic lighting.
Much like the transform is being copied from the main camera, I think it would be possible to also copy the projection from the main camera onto the pixelation camera.

So you mean simply syncing the projections is enough?

So you mean simply syncing the projections is enough?

I think so? I tested it out with a scene setup with a orthographic projection and while the model was pixelated, it was also very clearly using a perspective projection. I experimented with adjusting the sync_cameras system to copy the projection from the other cameras onto the PixelationCamera just like it does with the transform, with kind of worked, although there seemed to be a weird clipping artifact where parts of the model would vanish. I'm assuming something about the way the canvas entity is used also needs changes due to using a orthographic projection, but I'm not entirely understanding how this works currently. I'm going to keep poking around at this to see if I can figure out what needs to be done to fix it. Maybe something in this chunk of logic?
                const DISTANCE_FACTOR: f32 = 3.2;
                pixelation_camera_transform.translation += back * radius * DISTANCE_FACTOR;

Feel free to open a draft PR, I might be able to help 🙂


no-cached-fetch option should do more

The no-cached-fetch configure time option just turns off algorithm caching in libcrypto.  It should go further and remove the caching code to save code size and run time memory use (caches are still allocated, for example).

I'm not sure this is a beta1 goal or a post 3.0 one.

I'm unsure which caching code you're talking about.  Is it the code in crypto/property or in crypto/evp/keymgmt_lib.c?  Or both?

crypto/property, although both would be better.

I believe I covered the keymgmt_lib question in #14164, so this could concentrate on the crypto/property problem

I'm not sure, you were not talking about conditionally compiling code out of the build which is what I'm discussing here.

Ah, good point.


Invalid file error.

I am a maker of language pack.
I made many language packs in the past, and provide for many years.
They are well works.
But I would open them, "Invalid file" error occurred.
What is the reason of this error?
I need to insert some special message in the header of language packs?

Hi @aoshimak. Could you upload a language pack to this github issue that is giving you that error so I can take a look?

akt10jp.pbl.zip
akt10en.pbl.zip
aktmono.pbl.zip

Thank you. I tested Ver1.3. It works fine with Japanese message display.


[Bug]: Code is formatted each time user toggles between UI and JS mode on the property pane

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Code is formatted each time user toggles between UI and JS mode on the property pane
Steps To Reproduce

Configure an API call with a success and error blocks on any trigged field
Toggle to JS mode and add another line like, showAlert('monday') under error block
Toggle to UI and back to JS and notice the newly added line always adjust itself as seen in the video

Public Sample App
No response
Environment
Production
Issue video log
https://www.loom.com/share/6a822cb2edd24675ba92767d25734042
Version
Cloud

Issue seems to be fixed post ADS 2.0 changes, hence closing it as fixed
cc: @ohansFavour


Added stickers support, added limit/rating support to trending, and updated dependencies

Added stickers boolean to endpoints. This allows querying the Giphy stickers API as well as their standard gif API.
Added limit and rating parameters to trending endpoint.
Replaced 6to5 (deprecated) with babel.
Replaced 6to5ify (deprecated) with babelify.
Updated mocha and request dependencies.

Nice features! and thanks for updating 6to5 to babel. I'll merge the PR and publish to npm. Great job!


Fix for flaky matrix tests: async DOM signal for playwright

This PR introduces a signal in DOM for playwright when the async has settled in a room card to fix flaky tests where assertions were happening too fast after simulated user interaction. also a little minor cleanup

This test still failed for me, I'm not sure it's to do with checking too soon after - the assertions happen for a good few seconds before they fail. Running the test and stopping on a breakpoint before the last assertion about the room message - the message wasn't updated.
Here I'm logging in the room objective card:
@field usersThatFinishedTask = containsMany(RoomMemberCard, {
computeVia: function (this: RoomObjectiveCard) {
console.log("Users that finished task computed field - messages in room are ", this.room.messages);
let desiredMessages = this.room.messages.filter((m) =>
m.message.match(/^[\W_b][Hh][Ee][Ll][Ll][Oo][\W_\b]$/),
);
return [...new Set(desiredMessages.map((m) => m.author))];
},
});
and stopping on a breakpoint just after the first hello. This doesn't stop the app, and the objective text doesn't update. You can see here it's only got one message in the room.messages array:

If I add a pause, not before the check but before the second message (not between the message and the expect) then all three messages are in the array:

If the sleep is after the message being sent it doesn't help:

Hmmm, that’s interesting, I didn’t see that locally. It looks like the messages in the room that you are logging are correct each time. Can you also log the final return value for this computed as well? Does the final computed value make sense too, and perhaps it’s an issue with rerendering the template?

And also can you share the test failure message that you see?

Or wait, maybe I’m misunderstanding, are you saying this only works if you intentionally add a pause before the sendMessage()?

In room.gts, messages is an async computed and the new messages come in while it's being executed, and it's not run again. The end of the function tries to get the updated cache in case two things are run at once but that doesn't handle this case (where it's not run at all)
A bit hacky but I tried adding a loop at the end to essentially do this:
while this.events.length > totalEventsAtStart:
    updateCache

This kinda solves the immediate issue, but it really just shrinks the window of time where updated events can be missed and leaves a more general issue IMO with recomputes. The behaviour we probably want is described by keepLatest in ember concurrency (allow the current one to finish, then rerun with the most recent invocation and drop any stale non-started ones).

ahhh, good sluething--i understand the issue now. yeah this is a tricky one. another thought is that we return serialized message card data instead of actual card instance--if we did that this would be synchronous. we could then deserialize them on the outside in the room component using a resource.

@IanCal wanna try this again on your system? the messages computed is now synchronous so hopefully your issues have been resolved.

@habdelra this fixes the test for me thanks - it may be a pattern we need to promote elsewhere. I had a dig through the flow for field re-computation and I feel like we could solve this at a higher level (checking before and after if any fields were updated) but my first attempts haven't worked, but that's a bigger discussion.

@habdelra this fixes the test for me thanks - it may be a pattern we need to promote elsewhere. I had a dig through the flow for field re-computation and I feel like we could solve this at a higher level (checking before and after if any fields were updated) but my first attempts haven't worked, but that's a bigger discussion.

Checking what exactly? Computeds are super free form. They maybe include interior fields of its own card, or other cards, or no interior fields of any cards (maybe it’s just running a fetch on some external system). If it’s own fields have changed while it’s running async, the idea is that the card will be invalidated by glimmer and the the computed will be reexecuted again (there is a async process to recompute as part of the property descriptor’s set.). Perhaps the issue is around the consumption of the computed. Perhaps what we were seeing was a big in the consumption of the computed that prevented the invalidation from happening the subsequent time. (Were the bug was that we are missing the consumption somewhere such that the Room.messages was not be recomputed). The way we are rendering Room.messages is actually a little weird and I could see that there might be a consumption problem—instead of rendering the Room card directly, we are actually pulling apart it’s messages field and rending each one on its own. That might be the actual bug….


Feature/updates guidance

Adds guidance for home page and analysis page;
Enables such guidance for the home controller;
Adds content for fuels guidance.

Looks good to me.


How can I set the selected value in select field?

I am using material ui for build the form, but I don't know how can I set the default selected value with the dropdown select field.
for example, I need to edit a existing record so it also need to show the selected item before
please find the below example codes:
public form = new FormGroup({});
public model = {};
public fields: FormlyFieldConfig[] = [];

......

//set the fields in other separate function
public loadFormFields() {
...
 {
      key: 'parentId',
      type: 'select',
      props: {
        label: 'Select',
        placeholder: 'Select Parent',
        required: true,
        options: [
          { label: 'Parent 1', value: '1' },
          { label: 'Parent 2', value: '2' },
          { label: 'Parent 3', value: '3' },
        ],
      },
    },
}
...
}

I tried below after call loadFormfields()
this.form['parentId'].templateOptions.options = data.objectselected;

but it will show below error
Property 'parentId' does not exist on type 'FormGroup<{}>'. Did you mean 'parent'?

Thanks!

You can set the value of 'parentId' in the model object
public model = { parentId: '1' };

You can set the value of 'parentId' in the model object
public model = { parentId: '1' };

Or use defaultValue:
 {
      key: 'parentId',
      type: 'select',
+     defaultValue: 1,
}

thanks for your reply,  actually, my final solution is to use the ng-select for custom field type, and set the default value to ngModel in ng-select component


Replace Autoencoder's tanh activation with sigmoid

This PR resolves #179
In v0.4.0-rc2 sigmoid has a bug in its gradient. So the model doesn't learn correctly.
It'll be fixed in future release.
close #179

As a note, I reverted this change in the following pull request:
https://github.com/tensorflow/swift-models/pull/182
because I found that the sigmoid activation still generated nonsense during training on 0.4.0-rc4 and the nightly build I had here. Do you see otherwise?

Weird.
In swift-apis, this test is passing.
https://github.com/tensorflow/swift-apis/blob/2f75a2dbe9eedddc1178ce0a2fff9a8b7a595729/Tests/TensorFlowTests/TensorAutoDiffTests.swift#L233-L236
But It returns wrong values on REPL.
$ swift
Welcome to Swift version 5.1-dev (LLVM af1f73e9e9, Swift 405b76fca1).
Type :help for assistance.
  1> import TensorFlow
  2> func f(a: Tensor<Float>) -> Tensor<Float> { sigmoid(a).sum() }
  3. print(gradient(at: [-1, 0, 1], in: f))
[-2.0,  0.0,  0.0]

I copied sigmoid definition below, then autoencoder learned correctly.
https://github.com/tensorflow/swift-apis/blob/master/Sources/TensorFlow/Operators/Math.swift#L1038-L1052
Perhaps my sigmoid fix is not included on 0.4.0-rc4...?
Which commit is it using?

I also tried with Development Snapshots on macOS.
https://storage.googleapis.com/swift-tensorflow/mac/swift-tensorflow-DEVELOPMENT-2019-07-25-a-osx.pkg
Then autoencoder generates MNIST-like images even if I use sigmoid as activation.
Seems 0.4.0-rc4 and Development Snapshots uses different commit of swift-apis.
@BradLarson
The nightly build you mentioned is ubuntu one?
I suspect it doesn't use latest commit of swift-apis.

@BradLarson 0.4 does not include the latest swift-apis. In fact it’s quite old :)


Albums should support Hebrew names

Many songs on Chavah have Hebrew album names. Currently, we're pasting both the English translation and the Hebrew text into a single field. This is less than ideal as the text can wrap the Hebrew strangely as if it were a LTR language.
We should instead make albums have a field for both Name and HebrewName. Songs likewise should support both Album and HebrewAlbum.

Implemented.


Import Wallet issues

Attempting to import wallet via gui does nothing.

Are you still facing same issue ?

Could you please share some details?


Mods completely break A Hat in Time

Every time I install a mod, no matter what kind of Mod it is, the game freezes on the loading screen and in general has really bad performance before being able to load the save file. Without DXVK it works without a problem. Having DXVK installed AND installing mods when the game already is started also works.
Software information
A Hat in Time, almost max graphic Settings
System information

GPU: R9 390
Driver: 19.12.2
Wine version: -
DXVK version: Latest master

Apitrace file(s)

Log files

d3d9.log: HatinTimeGame_d3d9.log
d3d11.log: -
dxgi.log: -

Works fine here:

Yup. Works now. Either some DXVK Update fixed it, the recent Hat in Time Update fixed it, or a combination of the both


[Bug] [Medium] Theres no landing page on the Home Page "Спешни кампании" cards

Describe the bug
Placing the mouse on the cards the cursor changes to a link pointer, but clicking does not redirect anywhere.
To Reproduce
Steps to reproduce the behavior:

Go to 'HomePage'
Place the mouse on one of the cards at "Нашите кампании"
Click
See error

Expected behavior
Redirecting to the campaign page, probably the same direction as the "Вижте повече" button.
The link pointer will only show up when there is a link to follow.
Actual behavior
Clicking on the cards nothing happens.
Desktop:
OS: macOS Catalina 10.15.7

Browser: safari
Version [15.4]

There is no error. It just doesn't redirect. I am closing this as duplicate of #946 which is resolved in #948. Please re-open the issue if I didn't understand it correctly


Eve Energy: Disconnect after a few minutes

Hi,
I got the ranger to work on my Homebridge system on a RPi 3.
After a fresh start it connects to my Eve Energy and everything works.
However after a few minutes the connection seems to get lost (RPi is next to the Eve Energy) and I cant get it to reconnect. Only by restarting Homebridge.
Any idea what I could do? I tried to set the Timeout value in the config but Homebride wont finish the start up in this case without error (PIN will never be shown on the console).
Can you help?
Thanks for maintaining this plugin!

Maybe I could solve it by reducing the Baudrate for the RPi.
see https://github.com/raspberrypi/firmware/issues/1150


Upgrade mode.

File credentials are preserved, only query is updated.
see #488

Current coverage is 77.28% (diff: 98.07%)

Merging #930 into master will increase coverage by 0.14%

@@             master       #930   diff @@
==========================================
  Files           131        131
  Lines          6956       7005    +49
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           5366       5414    +48
- Misses         1590       1591     +1
  Partials          0          0

Powered by Codecov. Last update 0eaff83...9b38fee


Drop more unnecessary css-mode-hook references

Hello
See https://github.com/purcell/emacs.d/commit/71045816d420b345bc74de1d8467e1179b8c0fa8
So there is no need to quote css-mode-hook separately here.
Thanks.

Indeed - thanks.


Add missing synchronization in HttpRemoteTask

currentRequest should be guarded by HttpRemoteTask

Nice find :) Looks good, but wait for Travis to finish just to be sure

Wow; can't believe I missed that.  IntelliJ even highlights the error :(

This was merged as bcc233af554a209c7c3bb0d91642634481c27ef5.


dlib-android crashes when built locally

I am currently trying to use dlib-android (rev d6e48c1) after building it via the default build command:
python build_push.py --android_project ../dlib-android-app/dlib/src/main/jniLibs/
(dlib-android-app is dlib-android-app at d6e48c1)
When not building dlib-android manually, the app behaves as expected. However, the app behaves as following after performing a (successful) build as shown above:

Start app
Click "Live preview" from bottom left.
CameraActivity is started:

Title view remains empty; neither Copying landmark model nor time cost messages is shown
Floating video frame view with landmarks does not appear.
Application crashes after ~9sec.

Do you have any idea what could be the difference between your original build and my local one?
The original dlib board has an (unresolved) thread regarding this issue that relates to Android and possibly to dlib-android: https://sourceforge.net/p/dclib/discussion/442518/thread/b3ef5401/
Thanks a lot!
Crash log
Full log: 20160713_dlib-android_crash.txt
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/trltexx/trlte:5.1.1/LMY47X/N910FXXS1COK2:user/release-keys'
Revision: '12'
ABI: 'arm'
pid: 4292, tid: 4747, name: InferenceThread  >>> com.tzutalin.dlibtest <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    r0 00000000  r1 0000128b  r2 00000006  r3 00000000
    r4 9c87bdb8  r5 00000006  r6 00000016  r7 0000010c
    r8 b4b4bb00  r9 a0349d30  sl 12c033d0  fp 9c878bb0
    ip 0000128b  sp 9c8789f0  lr b6e0771d  pc b6e2a2dc  cpsr 600f0010
backtrace:
    #00 pc 000372dc  /system/lib/libc.so (tgkill+12)
    #01 pc 00014719  /system/lib/libc.so (pthread_kill+52)
    #02 pc 00015337  /system/lib/libc.so (raise+10)
    #03 pc 00011bd1  /system/lib/libc.so (__libc_android_abort+36)
    #04 pc 00010044  /system/lib/libc.so (abort+4)
    #05 pc 0046a103  /data/app/com.tzutalin.dlibtest-1/lib/arm/libpeople_det.so (__gnu_cxx::__verbose_terminate_handler()+226)
    #06 pc 00433dc9  /data/app/com.tzutalin.dlibtest-1/lib/arm/libpeople_det.so (__cxxabiv1::__terminate(void (*)())+4)
    #07 pc 00433e3d  /data/app/com.tzutalin.dlibtest-1/lib/arm/libpeople_det.so (std::terminate()+8)
    #08 pc 00433f61  /data/app/com.tzutalin.dlibtest-1/lib/arm/libpeople_det.so (__cxa_throw+120)
    #09 pc 00150a9c  /data/app/com.tzutalin.dlibtest-1/lib/arm/libpeople_det.so (dlib::compress_stream_kernel_1<dlib::entropy_encoder_model_kernel_5<257ul, dlib::entropy_encoder_kernel_2, 200000ul, 4ul>, dlib::entropy_decoder_model_kernel_5<257ul, dlib::entropy_decoder_kernel_2, 200000ul, 4ul>, dlib::crc32>::decompress(std::istream&, std::ostream&) const+544)
    #10 pc 00150478  /data/app/com.tzutalin.dlibtest-1/lib/arm/libpeople_det.so (dlib::get_serialized_frontal_faces()+63512)
    #11 pc 00140654  /data/app/com.tzutalin.dlibtest-1/lib/arm/libpeople_det.so (dlib::get_frontal_face_detector()+44)
    #12 pc 0013544c  /data/app/com.tzutalin.dlibtest-1/lib/arm/libpeople_det.so (DLibHOGFaceDetector::det(cv::Mat const&)+236)
    #13 pc 000e8d30  /data/app/com.tzutalin.dlibtest-1/lib/arm/libpeople_det.so (Java_com_tzutalin_dlib_PeopleDet_jniBitmapFaceDect+868)
    #14 pc 0013c77f  /data/dalvik-cache/arm/data@app@com.tzutalin.dlibtest-1<EMAIL_ADDRESS>
OS used for build

OSX 10.11.4 - Darwin myhostname 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
or Linux debian 4.6.0-1-amd64 #1 SMP Debian 4.6.3-1 (2016-07-04) x86_64 GNU/Linux

Android device

Samsung Galaxy Note 4(SM-N910F)
Android 5.1.1
armeabi-v7

Hi @stefan-girlich ,
I pull the latest code from dlib-android 75a37aa   and dlib-android-app, then I build it again.  It works fine on my Android arm and x86 devices.
My build environment is as below:
OS used for build

Ubuntu 14.04
NDK Version : r10e

Android device

Android OS version: Android L and M device
ABI: armeabi-v7 and x86_64

Do you know what's your ndk version? If you connect to your devices, and execut $ python build_push.py --test, will it work without errors?

Unfortunately python build_push.py --test fails for both NDK r10e and r12b; find the corresponding logs attached.
20160714_dlib-android_test_fail_r10e.txt
20160714_dlib-android_test_fail.txt

@stefan-girlich
That's so weird. The executable file or libraries you build are unable to run..
I never compiled it on OSX 10.11.4 before.

@tzutalin @stefan-girlich Experiencing the same issue in this build env:
OS used for build

OSX 10.11.5
NDK Version : r12b

Android device

Android OS version: 5.1.1
ABI: armeabi-v7 (ARMv7 on LG Escape2 - lg-h443)

Building and running app attached to Android Studio

Android Studio 2.1.2 Build #AI-143.2915827
JRE: 1.6.0_65-b14-468-11M4833 x86_64

Same exception thrown on python build_push.py --test as well. Learn anything new or have suggestions for debugging?

Simply not throwing the corresponding exception is feasible as a workaround, see comment in original discussion. Of course, this is means modifying dlib with unknown side effects.

I am wondering why it won't happen on ubuntu with ndk-linux. It happens on OSX with ndk-darwin

This is really quite mysterious, especially since I could also reproduce the crash when building on Debian GNU/Linux (see my original comment above).

Big thanks to @e-fominov for providing a fix on StackOverflow! In a nutshell: Set NDK_DEBUG=0 in build_push.py:35.
@tzutalin , can you confirm that fix and the original issue on your local machine?

@stefan-girlich  @e-fominov,
Thank you very much. By default, I will set NDK_DEBUG=0 to build.
If someone would like to build it with debug build, they need to specify  "--debug" argument. e.g.
./build_push.py --debug
I have merged the change and verified it, and there is no error.
Chnage: https://github.com/tzutalin/dlib-android/commit/63a46e45b34784e36db73a7586aeae23787c9791#L51


Replace Patches page by Landscape

The Patches page is interesting for applying module on existing project which was not generated with JHLite, but this page looks like swagger
The idea would be to use the Landscape page, instead of Patches page:
Here some ideas:

maybe a check box to switch to "patch" mode
add a search bar in Landscape page, the other modules could be disabled

add a special button to apply a single module without the needs of depending on the others

It's not totally clear, but the idea is here
Don't hesitate to share your ideas: @murdos @qmonmert @renanfranca

My preference would for a checkbox (or better: a switch button) for an advanced mode that would ignore dependencies prerequisites, with a warning indicating that result is not guaranteed, there could have errors.


Use smarter algorithm to find next available predictable key when saving monitor results

The shard id of the monitor results is saved at a predictable key in the DHT ("monitor_dataset_{NODE_ADDRESS}_{MONITOR_RESULT_NUMBER}").
Currently it finds the key by simply iterating beginning at zero and checking if a result was already saved, this does not scale.
To quickly find the next available it should probe for free slots with an exponential increase. Then use a binary search to find the first free slot between the found slot and zero.
https://github.com/Storj/storjnode/blob/develop/storjnode/network/monitor.py#L190

@gordonwritescode @ELQET this is a good issues to get your fee wet with the DHT

ok

@ELQET you should talk to shawn about becoming a team member, that way I can assign or you can take the issue to prevent someone else doing overlapping work.

I think I have not only get my feet but whole body wet with the DHT :) Because this dictionary like distributed hash table and kademlia style you implementing is awesome. It uses binary tree structure so binary search will be based on this. I hope you do it this way and I will try to use this advantage in favor of my implementation of binary search on this distributed hash table. Very interesting stuff though.

Adding this here so I don't forget.
Confirm @ELQET change is correct https://github.com/ELQET/storjnode/blob/develop/storjnode/network/monitor.py#L304

FYI @ELQET you can just make a pull request and if it needs work, just push the updates to your repository (the pull request will automatic update). That way another developer aside from me may check it and accept if I don't have time.

@ELQET on first glance it does look ok. You will have to add a unit test to ensure this, I cannon accept non trivial code without tests.

You might also want to consider creating a custom compare object like I did here for another project. That way you can use the standard lib for the search and not reimplement a possibly buggy binary search.

You are right, I will do it your way with bisect. Thank you for your time and advice. I appreciate it.
Also I implement unit test, I do it now so I can close this task. Thanks again

The submitted code did not do what its supposed to, so I reverted it. The test was also incorrect so I added a corrected test.
It must pass this test https://github.com/Storj/storjnode/blob/develop/tests/network/node.py#L438

Implemented as originally specified. https://github.com/Storj/storjnode/blob/develop/storjnode/network/monitor.py#L305
@ELQET next time should ask more questions as you clearly did not understand the issue. It did not behave correctly and it also read each slot which entirely defeated the purpose of the binary search.
@super3 did you accept this pull request? Or does @ELQET have commit access?

I know what binary search does. And frankly I wasn't sure about my code. But I must say I ask somebody for review on SLACK. Nobody answered. You can look to history of dev. I din't aks specific person I asked everybody. But nobody answered.  Also I wrongly inspired by your code https://github.com/Storj/dataserv-client/blob/master/dataserv_client/builder.py#L109 But never mind... Shit happens :)
Sorry for trouble, my bad. I should ask more questions for sure.

@F483 Gave @ELQET commit access because that is the only way we can assign issues. Normally we wait for a few pull before giving access. Next time I'll add new users with read only access.
@ELQET Pull requests are the best way to have the code reviewed. Lots of messages on Slack so things can get a bit lost. Good to specifically mention one of us if its time for review.


bundix: 2.0.6 -> 2.0.8

Things done:

[x] Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
Built on platform(s)

[ ] NixOS
[ ] OS X
[x] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

More
Fixes issue with changed nix-prefetch-git output.
cc @zimbatm

Do you know about git-changelog from the git-extras package ? It's useful to update the History.md or CHANGELOG.md


Hack simple query scenario to get upper bound for TDS/SQL Server

The idea here is to take the simple scenario implemented in #11 and hack together a raw implementation using low-level .NET constructors to hard-code some TDS. This gives us an upper bound as to how much perf is potentially on the table, at least in the very simple case.

Closing issues as part of the repo archiving, see #22 for a summary of Woodstar.


Introduce a single SBOM document

This PR replaces poweruser.JSONDocumentConfig with sbom.SBOM. Specifically this datastructure is being promoted as a first-class object to be used internally for tasking, presentation, and processing concerns. This is proposed in https://github.com/anchore/syft/issues/555#issuecomment-952071565 but closely affects #554 and #556.
The main proposal of the PR is the following datastructure: https://github.com/anchore/syft/blob/a26e9e4eb726b70e59662a7196a4de22fe7d01b7/syft/sbom/sbom.go#L10-L23
All other changes attempt to promote usage of this data structure over passing parts of an SBOM around, for example... replacing:
func Encode(catalog *pkg.Catalog, metadata *source.Metadata, dist *distro.Distro, scope source.Scope, option format.Option) ([]byte, error) { ... }

with:
func Encode(s sbom.SBOM, option format.Option) ([]byte, error) { ... }

Notes:

Relationships has not been included but will later be added as a field under sbom.SBOM in other PRs implementing #556
source.Scope was removed from any presenter output as described in https://github.com/anchore/syft/issues/555#issuecomment-952071565

@spiffcs

Is there a future where the underlying Artifacts struct is changed as we build into developing relationships between everything?

Indeed! I have some of that drafted out in #607, specifically: https://github.com/anchore/syft/blob/c3a65f5fa2a0a511d4183133ce3d8c457e5a5a50/syft/sbom/sbom.go#L13
This is where the relationships object gets promoted to in the end (the sbom.SBOM struct).

@spiffcs thanks a ton for solving what ended up being a caching issue I was having --I was starting to go a little crazy there 🙌


[Candidate 1v1 Arab Tragedy ZHv2] Pad structure at the top is not balanced

Describe the bug
Pad structure at the top is not balanced. Please refer to Jundiyy for more information.
Expected behavior
Pad structure at the top is balanced.

Answered over here #22

Fixed with https://github.com/xezon/GeneralsRankedMaps/commit/fec5c24c70a72c32dc61aedda0db98749da52b59

Top pad

Bottom pad

The top pad isn't at an equal distance to both players and neither is the bottom pad.
Even if you look at this from a different way, 1 pad for each player, it still isn't equal.

Ok. Can you fix it?

This issues should be closed as the balancing problems are all covered here:
https://github.com/xezon/GeneralsRankedMaps/issues/158


Window functions appear under "Aggregate functions" in 19.2 docs

The list of aggregate functions was inadvertently replaced with the list of windows functions in 869faab6148b5caa8812452bff1086d7ff761109.
Compare https://www.cockroachlabs.com/docs/v19.1/functions-and-operators.html#aggregate-functions and https://www.cockroachlabs.com/docs/v19.2/functions-and-operators.html#aggregate-functions.

@Amruta-Ranade , Could you please assign this to me?

@Shiwanee Since you already have an issue assigned to you, I'd like other participants to have a shot at this one. Feel free to check back in a few days to see if the issue is still available :)

@Amruta-Ranade , Sure!
Thanks,
Shiwanee

@Amruta-Ranade I was just checking back as Hacktoberfest is now around the corner :-)

Oh, I meant check back in mid-October 😄 I need time to publicize the issues and want to give folks time to evaluate.

This is better for an internal writer, @Amruta-Ranade, since it relates to the way we include auto-generated content from the cockroach repo.


Create generic parts to allow the use in standard flux projects

Really love the ideas behind nuclear-js!
Are there any ambitions to create separate modules of this concept to allow it to be easily
used in a standard flux concept (by creating more generic parts out of nuclear....)?
When I understand it correctly, the parts of nuclear do not differ too
much from common flux patterns...

I am closing this issue... nuclear is pretty modular and un-opinionated already sorry.


How to build tensorflow for mips64el

The recommended way to build TensorFlow from source is using the Bazel open-source build system.
Howerver, bazel depends protobuf,grpc-java,osdetector etc.  protocbuf can build  successfully for mips64el. But i  build grpc-java  failed. details see #3012. i refer #2022. but osdetector-gradle-plugin occur error.
Could anybody give me some help for building tensorflow for mips64el arch?

You could try the CMake build instead of using bazel: https://github.com/tensorflow/tensorflow/tree/r1.2/tensorflow/contrib/cmake

ok,  thanks. I have a try.

@skye i refer https://github.com/tensorflow/tensorflow/tree/r1.2/tensorflow/contrib/cmake, dependencies included.
However, i exec tensorflow/tools/ci_build/ci_build.sh CMAKE tensorflow/tools/ci_build/builds/cmake.sh for building tensorflow, output logs as follow,

[root@localhost tensorflow]# tensorflow/tools/ci_build/ci_build.sh CMAKE tensorflow/tools/ci_build/builds/cmake.sh
WORKSPACE: /home/loongson/tensorflow
CI_DOCKER_EXTRA_PARAMS:
COMMAND: tensorflow/tools/ci_build/builds/cmake.sh
CI_COMMAND_PREFIX:
CONTAINER_TYPE: cmake
BUILD_TAG: tf_ci
  (docker container name will be tf_ci.cmake)

Building container (tf_ci.cmake)...
Sending build context to Docker daemon 304.1 kB
Step 1 : FROM ubuntu:16.04
Trying to pull repository docker.io/library/ubuntu ...
sha256:382452f82a8bbd34443b2c727650af46aced0f94a44463c62a9848133ecb1aa8: Pulling from docker.io/library/ubuntu
b6f892c0043b: Pull complete
55010f332b04: Pull complete
2955fb827c94: Pull complete
3deef3fcbd30: Pull complete
cf9722e506aa: Pull complete
Digest: sha256:382452f82a8bbd34443b2c727650af46aced0f94a44463c62a9848133ecb1aa8
Status: Downloaded newer image for docker.io/ubuntu:16.04
 ---> ebcd9d4fca80
Step 2 : MAINTAINER Shanqing Cai
 ---> Running in 5539f888554c
 ---> b47c31a23a17
Removing intermediate container 5539f888554c
Step 3 : COPY install/*.sh /install/
 ---> 1c16e7a094c4
Removing intermediate container 555cd53000c4
Step 4 : RUN /install/install_bootstrap_deb_packages.sh
 ---> Running in ddd33994a3bf
panic: standard_init_linux.go:175: exec user process caused "exec format error" [recovered]
	panic: standard_init_linux.go:175: exec user process caused "exec format error"

goroutine 1 [running, locked to thread]:
panic(0x1203d0060, 0xc420149ea0)
	/usr/lib/golang/src/runtime/panic.go:500 +0x4c4
... ...

As we knows, docker is used for testing, but our os is fedora not ubuntu. It occur error. I try to modify Dockerfile or shut down the docker test. Could you give me some ideas ?

You'll probably have to dig into the cmake files (which I'm not super familiar with), as we only test them on Windows 10 and Ubuntu 14.04. You can also try posting on  StackOverflow. Sorry I can't be more helpful; MIPS isn't an architecture we support or test.

Thanks for your attention. @skye

@skye  i build bazel successful. Then, i build tensorflow getting next error.

[xzy@localhost tensorflow]$ bazel build --copt=-march=native -c opt //tensorflow/tools/pip_package:build_pip_package
Extracting Bazel installation...
............................................
WARNING: /home/xzy/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': Use SavedModel Builder instead.
WARNING: /home/xzy/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': Use SavedModel instead.
INFO: Found 1 target...
ERROR: /home/xzy/.cache/bazel/_bazel_xzy/c01fa588a238f7be12b727d5cfbf1a03/external/io_bazel_rules_closure/java/io/bazel/rules/closure/webfiles/server/BUILD:48:1:
error executing shell command: 'JAR='external/local_jdk/bin/jar' OUTPUT='bazel-out/host/bin/external/io_bazel_rules_closure/java/io/bazel/rules/closure/webfiles/server/libbuild_info_java_proto_srcjar.srcjar' PROTO_COMPILER='bazel...' failed: bash failed:
error executing command /bin/bash -c ... (remaining 1 argument(s) skipped):
com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
bazel-out/host/bin/external/io_bazel_rules_closure/closure/private/gensrcjar: line 75: bazel-out/host/genfiles/external/io_bazel_rules_closure/third_party/protobuf/protoc: cannot execute binary file: Exec format error
gensrcjar: proto_compiler failed
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 507.821s, Critical Path: 30.98s

[xzy@localhost tensorflow]$ protoc --version
libprotoc 3.2.0
[xzy@localhost tensorflow]$ bazel version
Build label: 0.5.0-2017-06-01 (@2e9fff0)
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: thur may 1 01:57:44 2017<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

Using sudo  bazel build --copt=-march=native -c opt //tensorflow/tools/pip_package:build_pip_package can fix upwards error.  I have built tensorflow success, and test pass. build patch see build-tf-mips64.diff. Error and solution seebuild-tf-mips-error.log

# pip install /tmp/tensorflow_pkg/tensorflow-1.2.0rc1-cp27-none-linux_mips64.whl
...
    Installing /usr/lib/python2.7/site-packages/protobuf-3.3.0-py2.7-nspkg.pth
  Found existing installation: six 1.7.3
    Uninstalling six:
      Successfully uninstalled six
  Found existing installation: Werkzeug 0.9.6
    Uninstalling Werkzeug:
      Successfully uninstalled Werkzeug
Successfully installed tensorflow mock bleach markdown
     numpy html5lib protobuf six werkzeug funcsigs pbr
Cleaning up...

# python
>>> import tensorflow as tf
>>>

Please close this issue. Thanks

Thank you for sharing how you resolved this!

Hi @skye I want to have a look at tensorflow performance at my platform. How should i do?

Here are some benchmarks we performed along with the methodology: https://www.tensorflow.org/performance/benchmarks

ok. Thank you.


feat(deps): upgrading base to node 18 and bumping all packages

Goal
Was having some lint issues in https://github.com/Pocket/curation-tools-api/ bumping this package to latest to ensure that this is not the problem.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


docker-compose with swarm mode

**Output of docker version:1.12
[root@msedgewin10 swarm]# docker-compose exec  manager docker swarm init --listen-addr <IP_ADDRESS>:2377
rpc error: code = 2 desc = oci runtime error: exec failed: exec: "docker": executable file not found in $PATH
Output of docker info:
[root@msedgewin10 swarm]# docker info
Containers: 5
Running: 2
Paused: 0
Stopped: 3
Images: 56
Server Version: 1.12.1
Storage Driver: devicemapper
Pool Name: docker-251:1-2232182-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 2.965 GB
Data Space Total: 107.4 GB
Data Space Available: 5.368 GB
Metadata Space Used: 4.018 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.143 GB
Thin Pool Minimum Free Space: 10.74 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Use --storage-opt dm.thinpooldev to specify a custom block storage device.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.107-RHEL7 (2016-06-09)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge overlay host null
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.1.12-37.6.3.el7uek.x86_64
Operating System: Oracle Linux Server 7.2
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 987.3 MiB
Name: msedgewin10
ID: EGUE:UP7T:6D5W:P4VY:POOZ:ZM6S:7JKT:TLFT:BBRA:2BYE:XM2J:ZOGP
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
<IP_ADDRESS>:5000
<IP_ADDRESS>/8
**Additional environment details (AWS, VirtualBox, physical, etc.):**

**Steps to reproduce the issue:**
1. docker-compose build
2.docker-compose up
3.docker-compose exec  manager docker swarm init --listen-addr x.x.x.x:2377

**Describe the results you received:**
docker-compose up is working properly.i got the containers running.
there are two services inside docker-compose.yml file .1.manager 2.worker
i am trying to start swarm with docker-compose
i am following this video .here is the link ..     ---- https://www.youtube.com/watch?v=tlEurzT-KDQ
**Describe the results you expected:**
swarm mode should start after the last command .

**Additional information you deem important (e.g. issue happens only occasionally):**

docker-compose does not work with swarm mode.
docker-compose exec is meant for running a command in an existing compose service (this is akin to docker exec <container>), not for executing arbitrary commands.
The error message you are seeing is because it's trying to exec docker in a service container called manager and it's not finding it.
You can export your compose services to a DAB file which can then be imported into docker with docker deploy (experimental build only). Not all compose options are supported with this method.

okay .but can you please take a look in that video link --- https://www.youtube.com/watch?v=tlEurzT-KDQ
i don't know how but i think the guy is using docker-compose with swarm mode in docker 1.12

He's using docker-in-docker via compose and using compose to execute commands in those docker daemon containers.

but i have also i defined docker-compose.yml in which i have defined manager as a service .
so by calling "docker-compose exec manager " .it should work.but it's not .

@omipandey What images are you building? The person in the video is using the docker:dind image specifically because these have docker built-in, and actually run docker.
For help figuring all this out, please use forums.docker.com or #docker on IRC.
The issue tracker isn't really a great place to offer support.

Is it possible to run compose over standard swarm instead of swarm mode? In my case my instances are not able to virtualise, so I have no chance to use docker-machine and it seems almost all the documentation refers to docker-machine.
As far as I understood I need to setup 1 or more instances of swarm, at least 1 instance of consul (or etcd) and as many worker nodes as I want.
I run consul like this:
docker run -d -p <IP_ADDRESS>:8500:8500 --name=consul progrium/consul -server -bootstrap
Then I modify /lib/systemd/system/docker.service to launch docker like this for the swarm master:
ExecStart=/usr/bin/dockerd -H tcp://<IP_ADDRESS>:2375 -H unix:///var/run/docker.sock
In my 2 nodes I execute this, to join the cluster:
docker run -d swarm join --advertise=<IP_ADDRESS>:2375 consul://<IP_ADDRESS>:8500
docker run -d swarm join --advertise=<IP_ADDRESS>:2375 consul://<IP_ADDRESS>:8500
I go to any of the nodes and I setup the docker host as the master:
export DOCKER_HOST=tcp://<IP_ADDRESS>:4000
When I execute docker info, I see the 2 nodes joined to the cluster.
But when I want to execute "docker-compose up -d" I receive a message that the overlay network cannot be created in a worker node, if I go to the master to execute. If I
As fas as I know 1.12 is backward compatible, so it should work.
I just want to use old swarm, I tried to launch the workers like this:
/usr/bin/dockerd -H tcp://<IP_ADDRESS>:2375 -H unix:///var/run/docker.sock --cluster-store=consul://<IP_ADDRESS>:8500 --cluster-advertise=tun0:2375
And I get this weird message:
FATA[0002] Error creating cluster component: --cluster-store and --cluster-advertise daemon configurations are incompatible with swarm mode
I just dont want swarm mode, why I get this message?
Regards


IntMap and IntSet don't implement the with_capacity constructor

I can't figure out why from looking at the source code, especially since IntMap and IntSet do implement the with_hasher and with_capacity_and_hasher constructors (which makes sense because they're type aliases of HashMap and HashSet respectively,  so they should implement the same methods).

As of Rust 1.54, here are the HashMap method signatures in question:
pub fn with_capacity(capacity: usize) -> HashMap<K, V, RandomState>;

pub fn with_hasher(hash_builder: S) -> HashMap<K, V, S>;

pub fn with_capacity_and_hasher(
    capacity: usize,
    hash_builder: S
) -> HashMap<K, V, S>;

We can see that with_capacity is not generic over S, it's tied to RandomState. HashSet mirrors this.
The crate documentation suggests:
let mut m: HashMap::<u8, char, BuildNoHashHasher<u8>> =
    HashMap::with_capacity_and_hasher(2, BuildNoHashHasher::default());

Alternatively we can use something like:
let mut m: IntMap<u32, char> = HashMap::with_capacity_and_hasher(2, Default::default());

let mut s: IntSet<u32> = HashSet::with_capacity_and_hasher(2, Default::default());


Labware Library & Labware Creator: Pre-render pages

overview
Prerender LL pages (including LC) so that direct links to pages in sandbox builds work.
The sandbox deploys of Labware Library do not work with nested URLs. If you can't navigate to a page from the main page, you cannot get there. Labware Creator is not navigable from the main page, and we want to share direct links to sandbox builds for user testing.

Closed by #3791 and also in LC project branch


multiple lightweight tag on the same commit

When multiple lightweight tags are applied to the same commit, it chooses the first one. Usually, we prefer to return the "latest" tag (largest version number)
To reproduce:
git tag 1.1.0
git tag 1.2.0
git-semver

it returns 1.1.0, but 1.2.0 is preferred

Your fix doesn't seem to work for the "dev" target.
I have an issue where I have two tags on the same commit
4.1.0-dev.3
4.1.0-dev.4

For some reason, git-semver thinks that -dev.3 is the correct name, despite -dev.4 being both a higher number, and created later in time.
 I don't want to have to keep adding blank commits to get a new tag out

You're right. Need to handle dev number.

wait..
how do you end up with two "dev" tags on the same commit?  dev numbers are the number of commits since the latest release version.

Sorry was AFK, missed your message. We have since reverted to using the autogenerated -dev numbers to avoid this. But how we did it was just manually, re-tagging a commit to keep releases uniform even if a certain project hasn't changed.

I updated the patch to compare "meta" field.
However, note that, it compares alphabetically. (e.g. dev.1 < dev.2, but dev.20 < dev.3) because the  "meta" field could have arbitrary string.

That works for me; allows a predictable series of -alpha, -bravo, -charlie, etc


Can't close sidebar by clicking outside of sidebar

I cannot seem to trigger the sidebar to close after clicking outside of it.  this is a functionality demonstrated in the example in the repo.
This is the sidebar component configuration
class CartSideBar extends Component {

  componentWillMount() {
    var mql = window.matchMedia(`(min-width: 800px)`);
    mql.addListener(this.mediaQueryChanged);
    this.setState({mql: mql, sidebarDocked: mql.matches});

  }

  componentDidMount() {
    console.log("PROPS: ", this.props);
    // const { dispatch } = this.props;
    // dispatch( toggleCartSidebar() )
  }

  componentWillUnmount() {
    this.state.mql.removeListener(this.mediaQueryChanged);
  }

  mediaQueryChanged() {
    console.log("media query is mobile")
  }

  render() {

    const sidebarProps = {
      sidebar: <Cart />,
      docked: false,
      open: this.props.sideBarOpen,
      touch: true,
      shadow: true,
      pullRight: true,
      touchHandleWidth: 20,
      dragToggleDistance: 30,
    };

    return (
      <Sidebar {...sidebarProps}>
        {this.props.children}
      </Sidebar>
    );
  }
}

these are the children
class App extends Component {
  render () {
    const { main, nav } = this.props;
    return (

        <CartSideBar>

            {nav}

            {main}

        </CartSideBar>

    )
  }
}

Having the same issue. @dlombardi have you found a solution for this?

I've got the same problem

An overlay is generated by this component when the sidebar is active. If you inspect this overlay, you will see it has a prop called "onClick" whose value is a function:
 overlayClicked() {     if (this.props.open) {       this.props.onSetOpen(false);     }   }
You may need to add a prop to sidebarProps called onSetOpen:
    const sidebarProps = {       onSetOpen: this.onSetOpen.bind(this),       sidebar: <Cart />,       docked: false,       open: this.props.sideBarOpen,       touch: true,       shadow: true,       pullRight: true,       touchHandleWidth: 20,       dragToggleDistance: 30,     };
and a function in your CartSideBar class:
   onSetOpen(open) {     this.setState({open: open});   }

Just passing in to thank @Fallenstedt for this solution, it worked perfectly for me :)

@Fallenstedt works for me too, this should be published in the documentation.


Switching wallet doesn't recompute snapshot voting powers

Overview
If you first load a wallet like a native wallet, wait for snapshot vote power to load
Then switch to another wallet, it doesn't recompute the voting power
References and additional details
Spotted in https://github.com/shapeshift/web/pull/8044#issuecomment-2450416103
Acceptance Criteria
Switching to another wallet recompute all the snapshot voting power
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response

Fast follow b/c yeah we've been meaning to fix this. Thank you @NeOMakinG !!
#6128

Directly fixed by https://github.com/shapeshift/web/pull/8044, closing this
https://github.com/shapeshift/web/issues/6128 is unrelated, we compute all previously connected wallet, this is a old feature, we might want to get rid of it to avoid abuses


Add Version field to StateMachine

Closes #21

Codecov Report

Merging #24 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #24   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines          194       197    +3
  Branches        33        34    +1
=========================================
+ Hits           194       197    +3

Impacted Files
Coverage Δ

src/awsstepfuncs/state_machine.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


New aka.ms link

Aka.ms link name
ESAE
Category (Optional. Select None to auto-select)
None

Thank you for submitting aka.ms/ESAE. Your link already exists at akaSearch.net. 🙏✅


UR 3.X support

Hi
I am using a UR5 robot version 3.5.1 to test the package and get errors, looks like it is only tested with UR Software version 1.8? Any suppor for Version 3.X using ROS ur_modern_driver?
Thanks!

@robotlinker
Hi,I also encountered this problem. Can you solve it now?

...What errors are you encountering?
I was able to get it working with Version 3.x, there was a little finickiness with the parse_tcp_state (assert message type 16), which I hacked around (by duplicating any tcp_socket.recv lines). This is probably doing something like flushing out data until it's indexed into the right place, but I'm moving on for now. A more robust TCP URx library can be found at https://github.com/SintefManufacturing/python-urx ; I haven't really dug into the differences.

Hi, I have a problem with 'Robot' class init.
i modify a line ('assert(robot message type == 16) to 20. ( i have ur3 3.5)
but, i encounter another problem.
At return of parse_tcp_state_data, I have a error
"struct.error : unpack requires a string argument of length 8"
Please, give me a help

Hi, I have a problem with 'Robot' class init.
i modify a line ('assert(robot message type == 16) to 20. ( i have ur3 3.5)
but, i encounter another problem.
At return of parse_tcp_state_data, I have a error
"struct.error : unpack requires a string argument of length 8"
Please, give me a help

Hi, Have you solve this ploblem?, I am using UR5 version3.5.4, i meet the same problem, I tried use UR script a API and it works, But I still can not use this code

@liuxiangdi how are you trying to connect with the real ur5
do you use ROS ur_modern_driver?

can anyone here explain how to connect with real robot?
should it be connected through ros vrep bridge

@liuxiangdi how are you trying to connect with the real ur5
do you use ROS ur_modern_driver?

no, finally I use urx-python package for UR control (the parser code in this repo don't suit newest UR version)
[(https://github.com/SintefManufacturing/python-urx)]
for realsense, you can use code in this repo(just change an API in realsense reading code)

@liuxiangdi , can you run the code in the real robot? If you can, how do you use urx-python package for UR control?

@liuxiangdi , can you run the code in the real robot? If you can, how do you use urx-python package for UR control?

you can use code in this repo(need rewrite the UR parser part, in my robot version 3.5, this code parser is old version)
or you can use URX-python, and just delete all control code in this repo then change to urx-python.
It is not very difficult because this paper just have 4 direction basic move, you can use urx-python for control test, it is very easy because it provide high level API.e.
I run a similary task in UR5, i use code in this repo first, it can run but i did not test the pushing and grasping task because i don't have robotQ for grasping.

@liuxiangdi Thank you!

@liuxiangdi Thank you!

@liuxiangdi , can you run the code in the real robot? If you can, how do you use urx-python package for UR control?

you can use code in this repo(need rewrite the UR parser part, in my robot version 3.5, this code parser is old version)
or you can use URX-python, and just delete all control code in this repo then change to urx-python.
It is not very difficult because this paper just have 4 direction basic move, you can use urx-python for control test, it is very easy because it provide high level API.e.
I run a similary task in UR5, i use code in this repo first, it can run but i did not test the pushing and grasping task because i don't have robotQ for grasping.

Hi, it seems you two have figured out the solution here. I am currently experiencing the same issues with the repo and need to make the changes either to the parser or adapt the repo to the urx-python.
In what way were you able to figure it out @Lightwingy


about missing model files transformer_id.bin/projection_id.bin

thanks for your great work!
but where to find the model file transformer_id.bin/projection_id.bin, waiting for your kindly helps!

Since the core checkpoints may be designed into internal company assets, we do not plan to open source the model for the time being, but we will consider open source training code in the future.

Thanks again,
Looking forward to the training code!

hi, when will you open source training code?