Cannot use 'in' operator to search for 'intlTelInputUtils' in undefined, with rollup

Expected Behavior

I'm using this component inside our library, and we use rollup to build the library. We have multiple components we can use from that library, also a PhoneInput component which uses react-intl-phone-input, so the idea is to use our PhoneInput component correctly for other projects in the same way we use all the other components.
Current Behavior

When I add react-intl-tel-input to the component, and we build the library, I cannot use any component because everything is broken. The error shows:

I think it has some compatibility issue with rollup, because when we use directly the same component (copied from here and pasted in the project) in our projects it works, so maybe it is a dependency that is wrong
Possible Solution

Not sure, but review dependencies
Steps to Reproduce

Build the repo added in below in Demo, applying the mentioned change (Clone and run yarn && yarn deploy)
execute yarn link just to create the ref to the library...it will show you a name assigned to the library
In a different project with React, run yarn link "aime-blueprint", if the previous command showed you a different assigned name, please update the name on the command
Run yarn start trying to use a component from the library...and the error appears directly
To use a component, you can do:

import { Components } from 'aime-blueprint';

const { PhoneInput } = Components;
...
render() {
  return (
    <div>
        <PhoneInput currentSite="au" placeholder="Phone" name="phone" value={phone} required />;
    </div>
  );
}

You can see an example working here, using Styleguidist to generate the doc...So apparently the component works, but when we build it with Rollup, the whole library is broken
Code:

You can see the project here, and the phoneInput is not imported just to avoid breaking all the components, but you can add this line export { default as PhoneInput } from './phoneInput'; on file src/lib/components/index.js and test it...
Environment

Version: "react-intl-tel-input": "^7.0.1"
Browser: Version 77.0.3865.90 (Official Build) (64-bit)
Operating System (or Browser): macOS Mojave v10.14.6
Node Version: v12.11.0
npm version: v6.11.3

Detailed Description

hii, did anyone found the solution to this problem ?
i am also facing the same problem using the latest version 8.0.4 :
Uncaught ReferenceError: intlTelInputUtils is not defined

Same issue here using rollup/vite

Same issue, it also happened while updating our code base from CRA to Vite.
The issue is libphonenumber-js-utils expects this to resolve to window, which works when bundling it with webpack but not with Vite, Vite creates an ES Module bundle and by default this is undefined at the top-level of a module in strict mode.
There are many ways to fix it, in a Vite context you can simply set an alias to libphonenumber-js-utils that bounds the import to the window object :

Create an alias file libphonenumber-js-utils-alias.js in the same folder as your vite config, with the following content

// libphonenumber-js-utils-alias.js

(function alias() {
  import('libphonenumber-js-utils');
})(window);

Update your Vite config to resolve imports of libphonenumber-js-utils to the alias file

// vite.config.js

import { defineConfig } from 'vite';

import path from 'path';

export default defineConfig(() => ({
  resolve: {
    alias: {
      'libphonenumber-js-utils': path.resolve(__dirname, 'libphonenumber-js-utils-alias.js'),
    },
  },
}));

Same issue, it also happened while updating our code base from CRA to Vite.
The issue is libphonenumber-js-utils expects this to resolve to window, which works when bundling it with webpack but not with Vite, Vite creates an ES Module bundle and by default this is undefined at the top-level of a module in strict mode.
There are many ways to fix it, the most straightforward might be to apply the following patch
diff --git a/node_modules/libphonenumber-js-utils/dist/libphonenumber.js b/node_modules/libphonenumber-js-utils/dist/libphonenumber.js
index 555d38a..cc42f83 100644
--- a/node_modules/libphonenumber-js-utils/dist/libphonenumber.js
+++ b/node_modules/libphonenumber-js-utils/dist/libphonenumber.js
@@ -461,4 +461,4 @@ if(1<d.length&&"0"==d.charAt(0)){u(f,4,!0);for(a=1;a<d.length-1&&"0"==d.charAt(a
 m("intlTelInputUtils.getNumberType",function(a,b){try{var c=M.a();var d=Z(c,a,b),e=Oa(c,d),f=S(c,y(d,1),e);if(null==f)var g=-1;else{var h=R(d);g=W(h,f)}return g}catch(l){return-99}});
 m("intlTelInputUtils.getValidationError",function(a,b){try{var c=M.a(),d=Z(c,a,b);return Pa(c,d)}catch(e){return"Invalid country calling code"==e.message?1:"The string supplied did not seem to be a phone number"==e.message?4:"Phone number too short after IDD"==e.message||"The string supplied is too short to be a phone number"==e?2:"The string supplied is too long to be a phone number"==e.message?3:-99}});
 m("intlTelInputUtils.isValidNumber",function(a,b){try{var c=M.a(),d=Z(c,a,b);var e=Oa(c,d),f=y(d,1),g=S(c,f,e),h;if(!(h=null==g)){var l;if(l="001"!=e){var z=U(c,e);if(null==z)throw Error("Invalid region code: "+e);var L=y(z,10);l=f!=L}h=l}if(h)var va=!1;else{var Ta=R(d);va=-1!=W(Ta,g)}return va}catch(Ua){return!1}});m("intlTelInputUtils.numberFormat",{E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3});
-m("intlTelInputUtils.numberType",{FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1});m("intlTelInputUtils.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,NOT_A_NUMBER:4});})();
+m("intlTelInputUtils.numberType",{FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1});m("intlTelInputUtils.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,NOT_A_NUMBER:4});}).bind(window)();

Alternatively, In a Vite context, instead of applying a patch you can set an alias to libphonenumber-js-utils imports :

Create a libphonenumber-js-utils-alias.js file in the same folder as your vite config, with the following content

// libphonenumber-js-utils-alias.js

(function alias() {
  import('libphonenumber-js-utils');
})(window);

Update your Vite config to resolve imports of libphonenumber-js-utils to the alias file

// vite.config.js

import { defineConfig } from 'vite';

import path from 'path';

export default defineConfig(() => ({
  resolve: {
    alias: {
      'libphonenumber-js-utils': path.resolve(__dirname, 'libphonenumber-js-utils-alias.js'),
    },
  },
}));


refactor repo_util* for go-1.7

#18 #19
This is the alternative approach to the problem with the early EOF from reads since go 1.7.
Changes made:
repo_utils_reader.go:

readerDecompressed takes io.ReadCloser so the underlying file can be closed and is not leaked
newReadCloser wraps two io.ReadClosers
convenient function wrapReadCloser added to retain the old behaviour

repo_utils.go

type and length is now parsed with a simple call to fmt.Fscanf, makes getLengthZeroTerminated obsolete

this could potentially be changed to something more low level

file is read sequentially without seeking

the EOF bug can potentially still happen in https://github.com/lemmi/git/blob/e11be8e1fd55c2ec996a27eb3665d33024c771ad/repo_utils.go#L143 .
This could need another rewrite, too, but I'm not yet familiar with the git pack format. A lot of other places in that file could really benefit from encoding/binary. I'll open up issues for these parts.
If there are coding style issues, let me know and please test these changes, too. They work here, also the small go test passes.

Does the code still works under go1.6

I ran all my tests on 1.6 again without errors.
And as far as I can tell, these changes use nothing 1.7 specific like new methods on some of the Readers.

Using this test script on 1.7 I get this:
  go run get_commit.go
  2016/08/18 12:22:37 EOF
  exit status 1

However it does work on 1.6.

@snicol I did not commit to master. Did you checkout the go1.7 branch?

Ah that was it, oops! I just tested on 1.6 and 1.7 on Darwin and linux-amd64 and can't see any regressions. Good work! 👍

Thanks!


Update dependencies. jasmine 2 -> jasmine 3. webpack 3 -> webpack 4. …

@dryganets Could you review this PR?

@dryganets could you please review this PR?


Standardize Id Properties within User Objects

There are multiple instances of an id within the DS API. These instances include user_id and profile_id. Standardizing these properties to one version across the entire API will reduce developer confusion. Thank you!

Agreed!


Assignment 2 Solved

Hey MLCC guys please check if this is okay. I am in a lot of confusion regarding this.

Nice work!
Complete Numpy Examples also and execute all the cells.


fix(charts): Default values in historic data in case of request failure

Background
Network IO can fail with different causes, this leads default to be saved data in historic snapshots, indexeres etc. One happened with getStrategyInfo for charts, thus we have 0x0000 and null values for some rows
Requirements

[x] Default data should be fixed and replaced with relevant onchain variant
[x] IO requests shouldnt fail in indexers, or at least do some retries

Tasks

[x] Make patch, that will request onchain data and save it to ddb
[ ] Some retry wrapper for io functions

https://github.com/Badger-Finance/badger-api/pull/1550


non-fault-tolerant: got trainer id 3 when starting only 2 trainers.

I think the third trainer got started because the previous trainer crashed. But probably the ID should be the same ID as the crashed trainer.

Can you please run kubectl --namespace=yournamespace get pods -a to see if there's any crashed pods?

I think this bug is because of we fetch the pod status from the phase filed, if a pod was terminated, this field is also be Running. Maybe we can fetch the status from status.containerStatuses[0].state.

@typhoonzero Sorry last time I got the admin-key.pem, admin.pem, admin.secret and ca.pem from you, but I have not figured out how to use them. I searched this link https://kubernetes.io/docs/tasks/administer-cluster/share-configuration/ , but still not sure how to configure them. Could you give me some tips? :)

With #320 has been merged, PaddleCloud does not restart the failed pod anymore with no-fault-tolerant mode.

@Yancey1989 Thanks! Closing this now. Can you take a look at https://github.com/PaddlePaddle/cloud/issues/318 ?

@Yancey1989 I still see no-fault-tolerant mode trainer restarted after crash, is the PR deployed to production?


Error when change themes

@rxtur  Maybe you know why such a mistake appears when deploying when I change themes. I did not make any additional settings.

@rxtur Look here is such a problem

Just as I said above - you need write permissions on /wwwroot/themes folder. Depending on your host, there should be a way to set folder with write access. Look at control panel your host provides you for a way to set folder permissions.

@rxtur Sorry, i changed permissions, but trouble still the same. Maybe you know other variants

Your site only allows these headers:
allow: GET, HEAD, OPTIONS, TRACE
server: Microsoft-IIS/10.0
status: 405
x-powered-by: ASP.NET

So any PUT or POST call will fail. Here is a thread on this at stack overflow:
405-method-not-allowed-in-iis7-5-for-put-method

Thank you very much, my mistake was to post the code as a setting on the server. But it was necessary in the web config of the project itself.


Update plex to respect changes in rust

This pull request fixes two issues that pop up with recent (after 2015-07-25) nightlies of the rust compiler.
The first commit of this pull request updates plex with respect to commit https://github.com/rust-lang/rust/commit/adfdbc4bd75f2581e9ad0151b26fb786b64475f8 which removes the source field of syntax::ast::Local.
The second commit of this pull request updates plex with respect to commit https://github.com/rust-lang/rust/commit/00a5e66f818ad9d79cc4425f5564c7b07e3213a6 which removes syntax::ast::Ident::as_str.

Thanks!


Javascript - validation error message is coming in blue color instead of red

Platform
What platform is your issue or question related to? (Delete other platforms).

JavaScript

Author or host
Host, using adaptive cards in web application
Version of SDK
2.4
Issue
I am using validation for choiceset, validation is working but error message is showing in blue color instead of red

@RashmiMithun can you share your card json + host config/css configuration?
@dclaux do the validation colors get defined in our host config or via CSS?

@RashmiMithun The color used for validation error messages is the Attention color as defined in HostConfig. The host displaying the card above has picked blue for the Attention color. This issue can only be solved by the host application.

Hi Team,
here is the card and the code to render the card using JavaScript in react application
Card :
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "TextBlock",
"text": "Hello !!",
"size": "Medium",
"weight": "Bolder"
},
{
"type": "Container",
"style": "accent",
"items": [
{
"type": "TextBlock",
"text": "What was the type?"
},
{
"type": "Input.ChoiceSet",
"id": "call_type",
"style": "compact",
"isRequired": true,
"errorMessage": " required input",
"placeholder": "Please choose",
"choices": [
{
"$data": "${Survey.questions[0].items}",
"title": "${choice}",
"value": "${value}"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
]
}
and the card rendering code
var jsonTemplate="some data",
var jsonDate="some data"
var template = new ACData.Template(jsonTemplate);
var cardPayload = template.expand({
$root: jsonData
});
var adaptiveCard = new AdaptiveCards.AdaptiveCard();
adaptiveCard.onExecuteAction = function (action) { alert("Ow!"); }
adaptiveCard.parse(cardPayload);
let renderedCard= adaptiveCard.render();
document.body.appendChild(renderedCard);
Note :  I have not specified any specific  CSS nor hostconfig, i am just using the above code to render the card and the output is coming like below button style is not taking and also the validation error is in blue

@RashmiMithun pls see @dclaux 's response above -- it appears the host has chosen an "Attention" color definition that is blue (not our default) - @dclaux i am assuming our default is some version of red?

Thanks for the response @shalinijoshi19 and @dclaux
Could you guys please tell me what I have to do to get the webchat styles into my react application?
is there a way to specify the webchat container styles into react app while rendering the card?
need to explicitly set the hostconfig?

You would have to simply use WebChat as is instead of overriding its out-of-the-box HostConfig.

Could you please tell me how to use?
On Mon, 16 Nov 2020, 9:56 pm David Claux<EMAIL_ADDRESS>wrote:

You would have to simply use WebChat as is instead of overriding its
out-of-the-box HostConfig.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/AdaptiveCards/issues/5081#issuecomment-728170643,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP5FMDSOIWWDSUB3YN3PQY3SQFHC5ANCNFSM4TTIE62Q
.

Documentation on how to customize the WebChat UI is available here: https://github.com/Microsoft/BotFramework-WebChat
As a starting point though - you must have written explicit code to override out-of-the-box settings and get that blue color you don't want. Maybe start by removing that custom code?

I have included hostConfig  and the CSS of webchat solved the issue


Microsoft Graph does not work currently in UWP

Where did you get the code?
Down load the code
Describe the bug
When compiling there are hundreds of errors specifically related to the Microsoft Graph. The current shipping versions have a dependency on .NET 5.0 and will not compile in UWP.
To Reproduce
Steps to reproduce the behavior:
Follow the instructions in the tutorial.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Dependency versions

Authentication library (MSAL, etc.) version:
Graph library (Graph SDK, REST library, etc.) version:

Additional context
Add any other context about the problem here.

Update:
Found conflicts between different versions of "System.Security.Principal.Windows" that could not be resolved.
There was a conflict between "System.Security.Principal.Windows, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Security.Principal.Windows, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
"System.Security.Principal.Windows, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Security.Principal.Windows, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
References which depend on "System.Security.Principal.Windows, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [C:\Users\JLarryAultman.nuget\packages\microsoft.netcore.universalwindowsplatform\6.2.14\ref\uap10.0.15138\System.Security.Principal.Windows.dll].

I do not reproduce this. The project compiles successfully in Visual Studio 2022 version 17.7.7. Can you try Clean Solution and then Rebuild Solution?

You must not be using a current version of Microsoft Graph. This is not a new issue.

This project does not use the Microsoft.Graph library directly, it uses:
<PackageReference Include="CommunityToolkit.Graph.Uwp">
  <Version>7.1.4</Version>
</PackageReference>

https://github.com/microsoftgraph/msgraph-sample-uwp/blob/28904fde179c9872779671dca7ef6d4d29ce727e/GraphTutorial/GraphTutorial.csproj#L178C5-L180C24
I see that they have a dependency on Microsoft.Graph 4.x.
Did you mean to file this report on the Microsoft.Graph repository?

No, I was specifically addressing this project. I think it is adequately covered. Nevertheless, MS Graph is pulled in when you restore the nuget packages. I didn't try building it right out of the box, I added my method that referenced the graphclient. Naturally, building it right out of the box is really a useless exercise. You don't even need it to use AAD these days in a UWP for authentication of the local logged in user on a Windows machine.


Running Custom Operators for PyTorch with NKI

I was curious about how the torch.topk() function is implemented in the Neuron compiler. After writing a kernel with this call and compiling it to NKI, the resulting code looks something like:
    """ tensor_op_name: xla___op_TopKImpl_custom-call.1 | hlo_id: 49 |  """
    v30[nl.arange(124)[:, None], nl.arange(16)[None, :]] = nl.load(v14.reshape([1984])[nl.arange(16)[None, :]+16*nl.arange(124)[:, None]], dtype=np.float16, mask=None)
    """ tensor_op_name: xla___op_TopKImpl_custom-call.1 | hlo_id: 49 |  """
    # NkiCodegen.codegenSundaMax8 is not implemented
    """ tensor_op_name: xla___op_TopKImpl_custom-call.1 | hlo_id: 49 |  """
    # NkiCodegen.codegenSundaMaxIndex8 is not implemented
    """ tensor_op_name: xla___op_TopKImpl_custom-call.1 | hlo_id: 49 |  """
    nl.store(v17[4*nl.arange(124)[:, None]+nl.arange(4)[None, :]], value=v15[0, nl.arange(124)[:, None], nl.arange(4)[None, :]], mask=None)
    """ tensor_op_name: xla___op_TopKImpl_custom-call.1 | hlo_id: 49 |  """
    nl.store(v18.reshape([496])[4*nl.arange(124)[:, None]+nl.arange(4)[None, :]], value=v16[0, nl.arange(124)[:, None], nl.arange(4)[None, :]], mask=None)

I understand that the NkiCodegen.codegenSundaMax8 and NkiCodegen.codegenSundaMaxIndex8 functions need to be black boxes because they require data-dependent control flow, which is currently not supported. My question is, is it possible for me to call these functions within my own NKI kernel?
Thanks!

@AWSNB Unfortunately, we don't have any instruction that achieves the same functionality exposed through NKI right now.

test comment

test comment


API Specification

Is your feature request related to a problem? Please describe.
As a developer on the frontend or the backend, I want documentation of what the API should look like. This will help backend developers as they can implement the API following the specification, and frontend developers as they can implement the frontend under the assumption that the specified API will exist.
Describe the solution you'd like
An API specification document on the project wiki. This should include information such as:

Available routes
Accepted HTTP methods for these routes
Expected output format for each route
Expected status codes and possible error statuses for each route

Describe alternatives you've considered
Not applicable
Additional context
Not applicable

This is being worked on at this wiki page.

The API documentation has been updated and both frontend and backend have made adjustments to reflect it.


Fixed four bookmarks

@jmgsworld,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

patterns-practices/guide/5-implementing-the-mvvm-pattern-using-the-prism-library-5.0-for-wpf.md
:white_check_mark:Succeeded

patterns-practices/guide/upgrading-from-prism-2.x.md
:white_check_mark:Succeeded

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


Update README link to database/sql wrapper

This was incorrectly pointing to @basvanbeek's repo, which has since
been merged into opencensus-integrations.

Thanks for working on this @johanbrandhorst and for the review and merge @songy23!
Perhaps a slight update, let's use contrib.go.opencensus.io/integrations/ocsql next time.


Delete use of deprecated kiwi config function

suseImportBuildKey is deprecated and done by zypper
via the --gpg-auto-import-keys option used when kiwi
calls the package manager

In kiwi upstream the use of deprecated methods will lead to a build error. This change is done to avoid any issue when this change made its way to SLE.
The use of the method at the moment is also not doing anything useful unless the gpg pubkey packages for all used repos are installed during the bootstrap phase. Thus the use of this method could have been dropped some time ago.
The same change was applied to the Azure LI/VLI images from where you can see that it did not harm the build
e.g Devel:PubCloud:CrossCloud:SLE15-SP3/SLES15-SP3-SAP-Azure-LI-BYOS
Thanks

Looks good to me but shouldn't it go into branch develop first?

yes sorry


Misc bug fixes

Fixed an initialization bug for datasources. It was attempting to use resource types and didn't match the Configurable interface.
Fixed a bug where users were unable to delete allowlist and SQL user resources if the cluster had disappeared.

TFTR!


posix: allow for external implementation of option groups

This PR includes a few of key changes
CONFIG_TC_PROVIDES_...
This provides external C libraries with a convenient mechanism for overriding Zephyr's POSIX API, at Option Group granularity.
Each implemented standard POSIX Subprofiing Option Group already has a Kconfig option in Zephyr. This Kconfig option is used to ensure that any appropriate feature test macros are defined (features.h), that any appropriate sysconf() values are returned, and of course to enable compilation of the relevant Zephyr C source files via CMake.
Generally, these existing Kconfig options have the form CONFIG_POSIX_xxxx, where POSIX_xxxx is the name of a standard IEEE 1003.1-2017 Option Group.
We add a number of Kconfig options in Kconfig.toolchain, all of the form CONFIG_TC_PROVIDES_POSIX_xxxx. Selecting these options instruct CMake to bypass the usual rules for compiling Zephyr's implementation of the selected POSIX Option Group.
The TC_PROVIDES Kconfig options are not user configurable, as they are intended to be used primarily by maintainers, and should be selected by a separate Kconfig option.
This is useful, for example, if a specific C library has a smaller, or faster, or more secure version of some POSIX features. Perhaps a vendor has a very specific implementation that is already certified on their device. There could be a number of reasons.
Why only Option Groups? Why not Options?
Subprofiling Option Groups such as POSIX_THREADS_BASE differ from POSIX Options like _POSIX_THREAD_ATTR_STACKADDR in that the Option Group is a mostly autonomous unit of functionality, while Options may just change one aspect of behaviour inside one or more a units of functionality.
The granularity was chosen to be at the Option Group level because implementations are most likely to be cleanly interoperable at Option Group level of abstraction, and because those are the lines officially drawn by IEEE to split up POSIX functionality.
Individual POSIX Options (e.g. _POSIX_THREAD_SAFE_FUNCTIONS) are often not as easily separated from other features that they may be tied to. Moreover, a given function may be required by more than one POSIX Option.
However, we may be able to add similar mechanisms for Options on a case-by-case basis in the future.

Nice use of the existing ring buffer bits. However, I think the file management needs some work here to make sure the read and write ends of the pipe are really separate and not just two fds pointing to the same object.

The sample and POSIX_PIPE implementation were really just an aside to demonstrate the method of overriding POSIX Option Groups.
I don't have any more cycles to spend on implementation at the moment, so will drop those commits from this PR.
Feel free to continue reviewing

@keith-packard please re-review

I don't have any more cycles to spend on implementation at the moment, so will drop those commits from this PR.

Yeah, I thought that would have been your response last time. Better to leave this space blank until someone who really needs this to work comes along with time and energy to make it "real". It was a nice thought to provide another validation of  the overall design of the higher-level feature. Alas, even the simplest POSIX API has a bunch of complexity hiding under the surface.

@cfriedt  needs a rebase

Do we want to add the XSI option groups to  fine with "no" or "maybe later" as answers.

Maybe later is probably safe. If anything, we can say it's a bug to not accurately represent XSI groups.
It's kind of surprising how many option groups there are too.
Also kind of surprising is that there will be another rev to the POSIX spec later this year! It's like the Energizer Bunny!

rebased

rebased

fix that complaince issue please


TOS/Licensing issues

You state that you're under the MIT license but have the GPL-3.0 license in the project repo. If you are migrating away from the MIT license, you will need to prove written consent from any author whose code exists in the project from when the project was under the MIT license (Jul 11, 2019-Jul 11, 2020). If you're not, then you can revert back to MIT as you were the only contributor since the license file was changed.
More Information
EDIT: Sorry, MIT can go to GPL without theses steps since it's GPL compatible, but not the other way without permission.
Additionally, your TOS violates both the MIT and GPL-3.0 licenses which allow modification and distribution. You cannot restrict the redistribution of your project nor can you restrict the distribution of modified versions of the project.
Disclaimer: I'm not a lawyer, so you should speak to a legal consultant.

Totally willing to help you resolve this btw! Just wanted to make the issue clear. Hope it didn't come across harshly!

Thanks for the heads up (no pun intended); I originally moved away from MIT as I was made aware by another plugin developer that legally, all plugins should be licensed under GPL as Bukkit was under the same license. In response to this, I did migrate whilst possible.
I'm more than willing to resolve this so give me a moment to go over your concerns and I'll respond again.

Ah, the TOS I included. My main reasoning for this was I wanted people to avoid reposting my work without permission but it's a half finished document, and the GPL/code of conduct should be enough.
I'll remove it as soon as I get the chance; let me know if there's anything else that is required to resolve this.

Sounds good! I think the TOS is great as long as you're careful not to contradict the GPL. Out of curiosity, was the choice to include the TOS made to protect potential profits or something? If so, I'd highly recommend offering a paid version of the plugin that comes with support (maybe guaranteed within 48 hours) or a "support subscription". Try selling services rather than products since services can't be copied/pasted.
Good call on switching to GPL with that "linking" legal caveat, though there's an interesting conversation about it [here] (https://bukkit.org/threads/what-license-is-the-bukkit-project-under.154/) essentially saying they won't press charges. Better safe than sorry nonetheless! I'll likely be reviewing my licenses shortly as I hadn't made that connection either. 😄

I believe it was a move I chose to make because I wanted to rule out what I consider acceptable use of the plugin (so not using it to bully others as an example); however, I don't plan on charging anything for HeadsPlus because it is my first plugin and I want to keep it free for everyone to use, nor do I want to profit off plugins anyways.
Yes, I do want to stay safe rather than become sorry in the future when it comes to anything legal. I've removed the TOS in question so hopefully, this should solve the conflict it created. Thank you for pointing me in the right direction regarding all of this!

No problem! And thank you for being responsive and satisfying my curiosity.
The GPL defers all liabilities to the users anyways, so it protects you quite a bit from that. Unfortunately, the GPL is too restrictive for your good intentions.
For any other projects of yours, I'd recommend the Apache 2.0. It's basically the MIT with extra legal precautions against "Patent Trolls".


[BUG] Typo in goto command

[Please fill out the form below and delete the sections in square brackets after reading them]
Version of Advanced Rocketry
AdvancedRocketry-1.12.2-1.7.0-232-universal
Have you verified this is an issue in the latest unstable build

[ ] Y
[x] N
[ ] N/A

Version of LibVulpes
LibVulpes-1.12.2-0.4.2-75-universal
Version of Minecraft
1.12.2
Does this occur without other mods installed

[ ] Y
[ ] N
[x] N/A

Description of the problem

It says gotostation when it should be goto station

Thanks!
Fixed next release.


safe not accepting tokens from stdin

Can't seem to use stdin, e.g:
$ safe auth token <(cat ~/.path-to-my-token-file)
Authenticating against my-vault at https://vault.my-host.com:8200
Token:

Still prompts for the token. I see the following mentions adding support for it though:
https://github.com/starkandwayne/safe/issues/21
$ safe version
safe v0.9.0

Definitely useful for automation scripts. Safe is much better in this aspect due to the path, ls, etc sub-commands which take more work to replicate using the regular vault cli.

@thomasmmitchell ^^

What you're doing there isn't putting anything into stdin. The value of <(cat ~/.path-to-my-token-file) is a string which is the path of a pseudofile, and then that is given as an argument. You've effectively written
safe auth token /dev/fd/63
or something to that effect.
What you intended was
cat ~/.path-to-my-token-file | safe auth token
which works for me :).


support pnpm

Is there an existing issue for this?

[X] I have searched the existing issues

Is your feature request related to a problem? Please describe it
The project's current post-install scripts to get augmentation to work assume a hoisted node_modules system like in yarn and npm. This breaks when using PNPM install
Describe the solution you'd like
To get support for PNPM, the post-install script will need to support both hoisted and nested packages.
Specifically, lines like:
https://github.com/suites-dev/suites/blob/master/packages/di/nestjs/postinstall.js#L4
https://github.com/suites-dev/suites/blob/master/packages/di/inversify/postinstall.js#L4
And:
https://github.com/suites-dev/suites/blob/master/packages/doubles/jest/postinstall.js#L4-L7
https://github.com/suites-dev/suites/blob/master/packages/doubles/sinon/postinstall.js#L4-L7
https://github.com/suites-dev/suites/blob/master/packages/doubles/vitest/postinstall.mjs#L8-L11
Those post-install scripts will need to change in a way that allows them to detect dist folders (in suites repo), hoisted packages(Yarn and NPM), and nested packages (PNPM).
What is the motivation / use case for changing the behavior?
support PNPM

@qballer any news?

I thought about maybe reusing the global.d.ts method and changing how the post-install script works. This means that instead of editing files, I would like to add a file called global.d.ts at the root of the dependency, which does what is right.
This would reduce the dependency on the internal structure of node_modules, which differs for each package manager.

Hi, I'm using pnpm and i'm not able to import Mocked from @suites/unit, I have to import it from @suites/doubles.vitest. Any fix for this?
import type { Mocked } from<EMAIL_ADDRESS>import { TestBed } from '@suites/unit';

Hi @kyrregjerstad, please see this: https://suites.dev/docs/overview/installation/#for-yarn-v1x-users
Realtes https://github.com/suites-dev/suites/discussions/473#discussioncomment-11267658
Let me know if it worked :)

Hi @omermorad, thanks for the quick reply!
I tried following the yarn install guide without any luck. But, I discovered that the issue stems from using TypeScript's newer "moduleResolution": "bundler" setting. The library currently requires "moduleResolution": "node" to work properly.
Here's the working tsconfig.json configuration:
{
  "compilerOptions": {
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "moduleResolution": "node"
  },
  "include": ["src/**/*", "./global.d.ts"]
}

Would it be possible to add support for the bundler moduleResolution in a future release?

This would help developers using modern bundlers like Vite/webpack and align with TypeScript's recommended settings for newer projects.

Let me know if you'd like me to create a separate feature request issue for this enhancement.


Update readme.md to use "create" subcommand

Some of the examples in the readme.md file are missing the "create" subcommand, which causes errors like this:
sprity: no such command 'out/`

This fixes the examples in the readme.md.

Coverage remained the same at 95.62% when pulling be1f8fde700884325944e21a645ab4214598cab5 on Flimm:patch-1 into 0a39d863cdb9dea22c9457dd8ec04fe41cc163b7 on sprity:master.

Coverage remained the same at 95.62% when pulling be1f8fde700884325944e21a645ab4214598cab5 on Flimm:patch-1 into 0a39d863cdb9dea22c9457dd8ec04fe41cc163b7 on sprity:master.


Retain mapsv + ppt params as we select new SVs ?

In this link, the ppt & mapsv params are set to show Superfund sites.
Now, if we select an alternate StatVar on LHS, the params go away.  I wonder if it might be better user experience to retain the params.

Also, "Show Installations" should probably also be a URL param?

Also, "Show Installations" should probably also be a URL param?

Nevermind, that's mp=1

In this link, the ppt & mapsv params are set to show Superfund sites.
Now, if we select an alternate StatVar on LHS, the params go away. I wonder if it might be better user experience to retain the params.

The original thought behind clearing the params when selecting an alternate StatVar is that the new stat var can be completely unrelated to the ppt & mapsv. Eg. if we go from an emissions stat var with EpaReportingFacilities shown to a stat var about education where it doesn't really make sense to show EpaReportingFacilities


Initial implementation of useSWRList

Implemented in accordance with the RFC. Initial implementation is
mostly a copy/paste of useSWR, then moved things into arrays so we
can handle the list aspect of this correctly. Plenty of work still to be done,
especially around the duplication between useSWRList & useSWR,
plus more tests need to be written, but this gives us a basis for discussion.

Also looking at #2006, which interestingly did some things similarly to the way I did so that's cool.

Totally agreed. It is also my biggest concern that we are not reusing the implementation of SWR's core. We should evaluate the difficulty of making the core support a list of keys.
Another reason is that we still need to return an array of SWR objects, instead of an array of data. (cc @promer94)

We should evaluate the difficulty of making the core support a list of keys.

Funny enough, as I was doing this, my galaxy brain thought was that, instead of trying to implement useSWRList as "useSWR with an array of keys", we should do the reverse and implement useSWR as "useSWRList but only a single key".
In terms of landing this, since v2 is still in beta, I think we have a few options:

Land this "as-is" (except with more tests), do some additional refactoring as follow-on PRs.
Extract more helpers from core first, then refactor this PR to take advantage of them.
Use this PR to do a bigger refactor of and land it all at once.
Something else?

Thoughts? How should I proceed?

A few things I did like from @promer94's implementations:

Returning results as a key on an object gives the API more flexibility to expand in the future.
Or even expand now, with a root mutate, isValidating, isLoading that applies to all of the keys.
Adding the key (and possibly originKey) to the returned object also seems useful.

I'm not so much a fan of the children/ items of useSWRAggregator, which seemed unnecessary, and in general, I think the API of useSWRList, providing the array of SWR objects, is generally more useful than just an array of data.
I think for all of the above approaches, I'm thinking implementing those 3 ideas would be good, so unless you have any objections, I'll include those changes once we have a direction.

Concerns
Returning an array of SWR objects could lead to bad performance.
If we have 1000 keys, the component which uses useSWRList will rerender like 1001 times.
This is why react-query’s useQueries , IMO,  is really a bad api design.
SWR always proivder greate performance for users. So i want to keep that.
Some Configuaration's semantics are not clear
{
   // should onSuccess be called multiple times with individual result and key ?
  // or just once with list result and array keys ?
   onSuccess: (data, key) => {
   }
  // Similar problem for
  onError,
  onErrorRetry
  onDiscard
}

{
   // should we support fallback here ?
   fallback
}

children/ items of useSWRAggregator is useful because it will have much batter performance and user can even access the result array in individual item component and it saves a lot of boilerplates

FWIW, I agree with the performance concerns. I included that as a con of this approach in the original RFC.
However, I think the semantics would derive directly from the idea of it just being an "array of SWRs": all of those would be called per-item. Obviously, this exacerbates the performance issues, but I don't think it's confusing. fallback is a little odd because it would probably have to be structured like fallbackData rather than fallback in the original. Alternatively, we could make fallback an array as well.

One of the weird things about the children / items approach is that, because an individual item is subscribing directly to its key, you could feasibly end up in a place where an individual item is rendered because its data is complete but the aggregated result is still loading and thus empty.
Relatedly, there isn't any way to invalidate/mutate an individual key at the top level with useSWRAggregator. If you have a large list & need to invalidate a subset of those keys in a bulk update, you probs have to pull in the top-level mutate from useSWRConfig to accomplish it. That said, I don't think this would be difficult to add to that PR and shouldn't change the performance characteristics.

So where are we with this PR? Do we need to revisit the RFC and change the API design? @shuding @promer94

Hi all! Revisiting this again. Would love to push this or some sort of multi-key implementation forward. How can we advance this?

any plan on crossing the finish line? look forward to using this feature 🙏

@0xbe1 I'm still happy to work on this, but without a clear direction on the API design, there's not much I can do.

@promer94 @shuding Anything I can do to push this forward? We really need an API around this on our project. We've been working with a janky userland implementation that I would love to get rid of and replace with a blessed implementation, but without a direction or clear sign this can get merged in some form, we're at a bit of a standstill.

@promer94 @shuding Another ping to say I'm still interested in pushing this forward.

@promer94 @shuding Can we move forward with this?


Add mp4 support

Adds mp4 support and resolve this issue. Needs to be confirmed that the Mux SDK supports their new feature.

It's not going there, it's going here: https://github.com/sanity-io/sanity-plugin-mux-input/blob/master/src/actions/upload.js#L34
Also, the way I read the documentation this replaces the HLS version and servers only the MP4 (which has a different URL scheme)? This needs to be tested, as the MUX plugin expects the HLS version the way it is implemented now.

Yup, I just found out! Let's find some time to test it out

closed in favor of https://github.com/sanity-io/sanity-plugin-mux-input/pull/13


refactor(shared-data): update P10 tip totalLiquidVolume

overview
The P10 tips can physically hold up to 20 uL rather than 10 uL as described in the opentrons_96_tiprack_10uL definition. When attached to a P20, the 10 uL totalLiquidVolume of the tip is restricting the pipette from aspirating to its full capacity.
changelog

increase totalLiquidVolume from 10 to 20

review requests
There's a function that's already taking both the pipette's and tip max volume into account when handling volume logic (see #3674 , #3604). This means that when a P10 tip is used with a P10 pipette, the max volume that the pipette can aspirate is 10 uL; but when used with a P20, the max volume is 20 uL.
The name of the tiprack remains the same for backward compatibility purposes. 🤷♀ Any objections?

also this needs to be a new file called 2.json, right now CI is failing due to: FAIL test schemas of all opentrons definitions › file name matches version: /home/travis/build/Opentrons/opentrons/shared-data/labware/definitions/2/opentrons_96_tiprack_10ul/1.json
The original 1.json should not be changed (unless it's just metadata)


feature expansion: Monthly goals dashboard

GitHub Issue: Implements Issue #2545
Trello Link (if applicable): Dont believe I have permissions to create a trello ticket
Explanation of Bugfix/Feature/Modification:
I implemented an expansion of the "Total Monthly Goals" panel to present monthly goal progress in a format that allows for quick understanding of your current situation. Have been looking for a total of the amount assigned to goals, and the amount that still needs to be assigned / budgeted for. I currently have the following items being shown in this panel:

Total Monthly Goals - Total budgeted amount for goals
Budgeted For Goals - Total assigned to goals
Needed For Goals - Amount still needing to be assigned
Total Income - Total amount of income gained in the current month
Total Spent - Total spent during the current month

I would definitely agree if the argument was made that total income / total spent may not be applicable to this panel - and are likely covered elsewhere. For my application, having one panel with a sort of "heads up display" is nice, but I'm open to changing it to remove certain details or separate them out into a separate panel if that makes sense.
UPDATE:
I went ahead and split up the income VS spent and goals into separate panels.  Also added a method of adding "calculation bars" where different fields are being totaled.  I think these changes have improved visibility quite well.
Screenshot of the current state of this panel:

This feature sounds great. I'm not able to see it though, I've got the "Add Monthly Goals Overview" option turned on. Has this feature been fully released?

I think there might be something wrong with how the Monthly Goals Overview is calculated.
First, let me verify that the "Total Monthly Goals" Number is correct - if you add up all the goals it is $1,200.

Ok, now for "Monthly Goals Overview"

The "Total Goals" line should be 1,200 but instead says 800.  "Savings Goals" should be 900 not 500.  It seems like the code is not adding any "Savings Balance" Goals.
Lastly, let me just say I think this goals dashboard is an awesome idea!

@beejplease I had the same issue, I think there is some documentation missing to mention that you have to choose between Total Monthly Goals or the Monthly Goals Overview.  Once I turned off the Monthly Goals Overview it started showing up

@Stensby Thanks for the tip, that worked and was why I wasn't seeing it. It does appear to be wrong/broken just like @nbb12347 mentioned.

Thanks @Stensby that fixed another problem I was having.  @joshmadewell even when I make sure to turn off the Monthly Goals Overview, I still get the problem where the "Savings Balance" goals don't appear in the calculations.  Am I missing something?

I was trying to find this property in my toolkit settings? can someone remind me? If it hasn't been updated in the documentation that maybe something I can help with.

@saxtonjoshua1 not sure if this is what you are asking for, but in the Toolkit the feature we are talking about is:

Add Monthly Goals Overview
Add a 'Monthly Goals Overview' section to the budget inspector, which displays info about monthly funding goals

This is different than the other, similar feature "Add Total Monthly Goals"


Causes instant reload when single module is toggled in the module manager

As per title.
With Find the Culprit enabled, toggling single module causes Foundry to refresh instantly, skipping the confirmation dialog.
This does not happen when toggling multiple modules or when FtC is not enabled itself.

To clarify, this happens if the process of finding the culprit isn't ongoing.

This was fixed on the side by #33 (and 1.4.5 release)


Requirement for making a release to crates.io

Before publishing this crate, we need to resolve following issues.

[x] Drop unnecessary dependencies
[x] Move protos out of kvproto
[x] Make it compile with stable compiler
[x] Add Readme
[ ] Add examples
[ ] Add documentations
[x] Add CI check

Closes #16.

We are going to release version 0.1 as major issues are resolved. We will release 1.0 as the remaining issues are resolved.


Test GH actions automate training

Pull Request Test Coverage Report for Build 493868923

315 of 339 (92.92%)  changed or added relevant lines in 37 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+10.9%) to 75.381%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

ivadomed/scripts/training_curve.py
10
12
83.33%

testing/functional_tests/t_utils.py
39
49
79.59%

ivadomed/scripts/automate_training.py
18
30
60.0%

Files with Coverage Reduction
New Missed Lines
%

ivadomed/scripts/automate_training.py
1
48.89%

Totals

Change from base Build 491507272:
10.9%

Covered Lines:
5199

Relevant Lines:
6897

💛  - Coveralls

Pull Request Test Coverage Report for Build 493868923

315 of 339 (92.92%)  changed or added relevant lines in 37 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+10.9%) to 75.381%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

ivadomed/scripts/training_curve.py
10
12
83.33%

testing/functional_tests/t_utils.py
39
49
79.59%

ivadomed/scripts/automate_training.py
18
30
60.0%

Files with Coverage Reduction
New Missed Lines
%

ivadomed/scripts/automate_training.py
1
48.89%

Totals

Change from base Build 491507272:
10.9%

Covered Lines:
5199

Relevant Lines:
6897

💛  - Coveralls


How to structure this project to enable lazy-loading routes...

...but still have them be server-render compatible?
I've tried to code this in for around 2 weeks - hopefully someone knows a solution, because my brain is starting to hurt :smile:
I have ready a smaller example repo demonstrating my issue.
For more context, refer to this StackOverflow question.
I'd really like to see a method of accomplishing this documented in vue-router - which I'm more than happy to do, as long as I'm pointed in the right direction :smile:

This might be a duplicate of #17

Closing as duplicate


[#24419] Support composite output types in sql.Transform.

Support composite output types in sql.Transform.
R: @lostluck

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Technically a breaking change, but only for uses we don't support anyway.

I thought this isn't a breaking change, since we are just adding an optional, variadic param?

Technically a breaking change, but only for uses we don't support anyway.

I thought this isn't a breaking change, since we are just adding an optional, variadic param?

Turns out that Go has no safe type changes one can make to Exported identifiers.
OutputType has a function type of func(t reflect.Type), which means we could previously assign it to a var foo func(reflect.Type) if we wanted. That would fail now because you can't assign a func(reflect.Type, ... typex.FullType) to func(reflect.Type).
Since this isn't a pattern we advocate for or demo, it's acceptable in my view, even though it can break a compile for someone. In this case, it's very obvious that something is broken and that the fix is generally pretty obvious.

Technically a breaking change, but only for uses we don't support anyway.

I thought this isn't a breaking change, since we are just adding an optional, variadic param?

Turns out that Go has no safe type changes one can make to Exported identifiers.
OutputType has a function type of func(t reflect.Type), which means we could previously assign it to a var foo func(reflect.Type) if we wanted. That would fail now because you can't assign a func(reflect.Type, ... typex.FullType) to func(reflect.Type).
Since this isn't a pattern we advocate for or demo, it's acceptable in my view, even though it can break a compile for someone. In this case, it's very obvious that something is broken and that the fix is generally pretty obvious.

Ar, gotcha. Thanks for the detailed explanation!


Different fps for video and preview output

Is it possible to modify the code such that the frame rates for video and preview output are different? I'm using the camera on a resource contraint platform and want to lower the computational burden. As an example I would like to have 30 fps for the preview output and 2 fps for the video output.
Alternatively, could there be a ROS service to capture still images at the full sensor resolution?
Moving from here

cc: @alexswerner

@alexswerner Yes. that should be possible.
Either you can create a script node and pass the video output to throttle and send at 2fps.
Or you can use throttle tools like this
Or like you mentioned you can also have a action or service to make it capture at full res.

Just got back to this. Thanks for the reply. When you write script node, you mean a python script which republishes the messages at a lower rate? I'm not sure if that would serve the purpose of reducing the computational (i/o) burden on the cpu as the camera whould then still transfer the full-size images at full rate. Or am I mistaken?


Cannot define hostname as base url

Please verify that this bug has NOT been raised before.

[X] I checked and didn't find a similar issue

Describe the bug*
I host InvenTree (currently) on a NAS in my local network. But I cannot define the hostname as a base url, probably because it has no TLD.
(Good news / workaround: I was able to workaround that using the tld "local", so I used "http://some-nas.local" and it worked)
Steps to Reproduce

Go to "Settings" section
Go to "Server settings"
Edit "Base url"
Enter "http://some-nas" (you can combine it with port or not, doesn't matter)
Save

Expected behaviour
Since it is a valid URL, I would expect it to save. But it doesn't. It Complains about invalid value.

Deployment Method

[X] Docker
[ ] Bare metal

Version Information
0.12.7
Please verify if you can reproduce this bug on the demo site.

[X] I can reproduce this bug on the demo site.

Relevant log output
No response

@matmair here's the Bug which I mentioned in #5577 yesterday. Turns out, it's unrelated to port AND I found a workaround. So probably prio is not too high.

Not sure if this is a "bug" here or not.. We would have to presumably change the way that URL validation is working under the hood, to allow specification of URLs with no TLD

Since it's a valid URL, I personally would classify it as a bug. On the other hand, this type of software most likely runs on companies who have internal servers with DNS configured, so most users will probably not hit this issue.
You can maybe "work arround" by mentioning that ".local" can be used as a TLD for local network hosting? Regarding the RFC it seems to be established world wide, so maybe this is a low-hanging-fruit to "fix" this?

A host without any domain comes with interesting security/usability implications. some-nas could be a (wired) gTLD, I would strongly recommend using a TLD. Recommending .local is a double-edged sword. People should really be using proper DNS, self-announced hostnames/mDNS are pretty easily exploited.

I know that, and it's a fair point. But the argument is: It's still a valid base url and InvenTree is saying it's not.
I think either it is a accepted value by InvenTree or in this case InvenTree informs about "only hostname" base urls are permitted.
But right now I still think it's a bug (even if it's minor).

We can modify the specific validator for this field but I would caution against allowing domain-less URLs in the validator.

We can modify the specific validator for this field but I would caution against allowing domain-less URLs in the general validator.


What is left and top in Get Image Data result?

Hello,
If rotate is 0, left and top are 0 too. But if rotate != 0, for example, if I set up in demo rotate=45, then left is 40.... and top is 208.... I don't understand.
I use this plugin for rotating and cropping photos for a graphical editor that rotates according to the upper left corner, so I need to perform certain calculations. In version 0.8.0 me it worked correctly in this conversion - http://www.stofko.cz/rotace, but if I download the newer version, so it generates different data.
Thanks for explanation

The left/top of the image is relative to the canvas (image wrapper). Just ignore them.


Tester feedback: language

Question ID
reason for request

language
1089 characters feels like both too much and too little information. Nobody is going to count characters before they start telling their story. It will only be helpful at the point they exceed the limit, which is already handled in the validation message. What about just telling people: "There is room for 11 lines on the printed document" or "You can type about 160 words"? That could be helpful before they get started. I'd just leave it out completely on my own forms, but that's just an opinion.

Other information

Variable being sought
reason

Package version
0.0.2

Maturity target
Level 4 - this is purely an enhancement to improve user experience

Tester contact info
@nonprofittechy

Thank you for your suggestion. I used the "x words" calculated to the nearest 10 (with floor). You can reopen this issue if changes are still needed. Updating test server now.


trials all failed while using docker container

Short summary about the issue/question:
trials all failed while using docker container
Brief what process you are following:
according to HowToUseDocker.md
I processed-------
`root@1a4511f2aa52:~# nnictl create --config nni/examples/trials/mnist/config.ymlINFO: expand searchSpacePath: search_space.json to /root/nni/examples/trials/mnist/search_space.json
INFO: expand codeDir: . to /root/nni/examples/trials/mnist/.
INFO: Starting restful server...
INFO: Successfully started Restful server!
INFO: Setting local config...
INFO: Successfully set local config!
INFO: Starting experiment...
INFO: Successfully started experiment!
The experiment id is G70LcB3U
The Web UI urls are: http://<IP_ADDRESS>:8080 http://<IP_ADDRESS>:8080
You can use these commands to get more information about the experiment
     commands                       description

nnictl experiment show        show the information of experiments
nnictl trial ls               list all of trial jobs
nnictl top                    monitor the status of running experiments
nnictl log stderr             show stderr log content
nnictl log stdout             show stdout log content
nnictl stop                   stop an experiment
nnictl trial kill             kill a trial job by id
nnictl --help                 get help information about nnictl

`

How to reproduce it:

nni Environment:

nni version:
nni mode(local|pai|remote):
OS:
python version:
is conda or virtualenv used?:
is running in docker?:yes

need to update document(yes/no):
Anything else we need to know:
nnimanagerlog as following:

[5/23/2019, 3:39:38 AM] INFO [ 'Datastore initialization done' ]
[5/23/2019, 3:39:38 AM] INFO [ 'Rest server listening on: http://<IP_ADDRESS>:8080' ]
[5/23/2019, 3:39:38 AM] INFO [ 'RestServer start' ]
[5/23/2019, 3:39:38 AM] INFO [ 'Construct local machine training service.' ]
[5/23/2019, 3:39:38 AM] INFO [ 'RestServer base port is 8080' ]
[5/23/2019, 3:39:39 AM] INFO [ 'NNIManager setClusterMetadata, key: trial_config, value: {"gpuNum":0,"command":"python3 mnist.py","codeDir":"/root/nni/examples/trials/mnist/."}' ]
[5/23/2019, 3:39:39 AM] INFO [ 'required GPU number is 0' ]
[5/23/2019, 3:39:39 AM] INFO [ 'Starting experiment: G70LcB3U' ]
[5/23/2019, 3:39:39 AM] INFO [ 'Change NNIManager status from: INITIALIZED to: RUNNING' ]
[5/23/2019, 3:39:39 AM] INFO [ 'Add event listeners' ]
[5/23/2019, 3:39:39 AM] INFO [ 'Run local machine training service.' ]
[5/23/2019, 3:39:40 AM] INFO [ 'NNIManager received command from dispatcher: ID, ' ]
[5/23/2019, 3:39:40 AM] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 0, "parameter_source": "algorithm", "parameters": {"learning_rate": 0.0001, "conv_size": 7, "hidden_size": 1024, "batch_size": 8, "dropout_rate": 0.5697822345272465}}' ]
[5/23/2019, 3:39:44 AM] INFO [ 'submitTrialJob: form: {"jobType":"TRIAL","hyperParameters":{"value":"{\"parameter_id\": 0, \"parameter_source\": \"algorithm\", \"parameters\": {\"learning_rate\": 0.0001, \"conv_size\": 7, \"hidden_size\": 1024, \"batch_size\": 8, \"dropout_rate\": 0.5697822345272465}}","index":0}}' ]
[5/23/2019, 3:39:50 AM] INFO [ 'Trial job AhLFk status changed from WAITING to RUNNING' ]
[5/23/2019, 3:39:55 AM] INFO [ 'Trial job AhLFk status changed from RUNNING to FAILED' ]

I can't find any error report about this problem.

Hi, could you provide your trial's log? you could use nnictl trial ls to get trial log path, or get the log path from webui. Which docker image did you use? Are you using nni's offical docker image msranni/nni? If not, please make sure your docker image have the running environment, like python3, tensorflow etc.

root@22d31ba11ed6:~# nnictl trial ls
[
{
"endTime":"2019/05/23 12:29:03",
"hyperParameters":[
"{"parameters":{"conv_size":5,"dropout_rate":0.5203338282536201,"learning_rate":0.1,"hidden_size":124,"batch_size":1},"parameter_id":0,"parameter_source":"algorithm"}"
],
"id":"Ij83o",
"logPath":"file://localhost:/root/nni/experiments/DXVsxfQb/trials/Ij83o",
"sequenceId":0,
"startTime":"2019/05/23 12:29:03",
"status":"FAILED",
"stderrPath":"file:/localhost:/root/nni/experiments/DXVsxfQb/trials/Ij83o/stderr"
}
]
I was using nni's offical docker image.

Hi, could you provide your trial's log? you could use nnictl trial ls to get trial log path, or get the log path from webui. Which docker image did you use? Are you using nni's offical docker image msranni/nni? If not, please make sure your docker image have the running environment, like python3, tensorflow etc.

root@22d31ba11ed6:~# nnictl trial ls
[
{
"endTime":"2019/05/23 12:29:03",
"hyperParameters":[
"{"parameters":{"conv_size":5,"dropout_rate":0.5203338282536201,"learning_rate":0.1,"hidden_size":124,"batch_size":1},"parameter_id":0,"parameter_source":"algorithm"}"
],
"id":"Ij83o",
"logPath":"file://localhost:/root/nni/experiments/DXVsxfQb/trials/Ij83o",
"sequenceId":0,
"startTime":"2019/05/23 12:29:03",
"status":"FAILED",
"stderrPath":"file:/localhost:/root/nni/experiments/DXVsxfQb/trials/Ij83o/stderr"
}
]
I was using nni's offical docker image.

`Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "mnist.py", line 9, in
import tensorflow as tf
File "/usr/local/lib/python3.5/dist-packages/tensorflow/init.py", line 22, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
~                                                 `
I was using nni's offical docker image

Hi, could you provide your trial's log? you could use nnictl trial ls to get trial log path, or get the log path from webui. Which docker image did you use? Are you using nni's offical docker image msranni/nni? If not, please make sure your docker image have the running environment, like python3, tensorflow etc.

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "mnist.py", line 9, in
import tensorflow as tf
File "/usr/local/lib/python3.5/dist-packages/tensorflow/init.py", line 22, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

I was using nni's offical docker image msranni/nni

You need to install CUDA and cuDNN first, the docker use tensorflow-gpu version, I met this problem before. You can also install tensorflow cpu version if you don't have gpu to get around it. By the way if you met OOM(out of memory) error, you can expand the docker desktop memory to proper size.

Than you , I'll try. However, I noticed msranni/nni support CUDA 9.0, CuDNN 7.0.   Why ?

You need to install CUDA and cuDNN first, the docker use tensorflow-gpu version, I met this problem before. You can also install tensorflow cpu version if you don't have gpu to get around it. By the way if you met OOM(out of memory) error, you can expand the docker desktop memory to proper size.

You need to install CUDA and cuDNN first, the docker use tensorflow-gpu version, I met this problem before. You can also install tensorflow cpu version if you don't have gpu to get around it. By the way if you met OOM(out of memory) error, you can expand the docker desktop memory to proper size.

Thank you , I'll try. However, I noticed msranni/nni support CUDA 9.0, CuDNN 7.0. Why ?

Hi, @janehiii  it's my mistake, it supports. Please make sure there is a gpu in your machine with docker tensorflow-gpu environment.

I have the issue, what do I do? @janehiii did you get it working?

I have the same issue, what do I do? @janehiii did you get it working?
Here's what the logs say,
root@3fabf8565703:~# cat /root/nni/experiments/blJw6LUU/trials/p7xN3/stderr
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "mnist.py", line 9, in
import tensorflow as tf
File "/usr/local/lib/python3.5/dist-packages/tensorflow/init.py", line 22, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory

I got it resolved. There was some issue with my nvidia-drivers.

@janehiii - are you still having problem with the docker? if you are still not able to run trials, we can have IM chat in Gitter: https://gitter.im/Microsoft/nni directly.

I also encountered a similar problem, my  trial's log is as follows：
[06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution>
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders
self.send(msg)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect
super().connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/local/python3.5/lib/python3.5/socket.py", line 694, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/local/python3.5/lib/python3.5/socket.py", line 733, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
[06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution>
Traceback (most recent call last):
File "/usr/local/python3.5/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect
[06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution>
Traceback (most recent call last):
File "/usr/local/python3.5/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect
super().connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/local/python3.5/lib/python3.5/socket.py", line 694, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/local/python3.5/lib/python3.5/socket.py", line 733, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
How can I solve this problem?

Hi, this issue seems caused by http client connection error. Which image and example did you use in your experiment?

I also encountered a similar problem, my trial's log is as follows：
[06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution>
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders
self.send(msg)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect
super().connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/local/python3.5/lib/python3.5/socket.py", line 694, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/local/python3.5/lib/python3.5/socket.py", line 733, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
[06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution>
Traceback (most recent call last):
File "/usr/local/python3.5/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect
[06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution>
Traceback (most recent call last):
File "/usr/local/python3.5/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect
super().connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/local/python3.5/lib/python3.5/socket.py", line 694, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/local/python3.5/lib/python3.5/socket.py", line 733, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
How can I solve this problem?

Hi, this issue seems caused by http client connection error. Which image and example did you use in your experiment?

Thank you very much for your reply, I have encountered a new problem.Remote TrainingService,How can I  set sshKeyPath.
| |
胡然
|
|
<EMAIL_ADDRESS>|
签名由 网易邮箱大师 定制
On 06/16/2019 23:56, SparkSnail wrote:
I also encountered a similar problem, my trial's log is as follows：
[06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution>
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders
self.send(msg)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect
super().connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/local/python3.5/lib/python3.5/socket.py", line 694, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/local/python3.5/lib/python3.5/socket.py", line 733, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
[06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution>
Traceback (most recent call last):
File "/usr/local/python3.5/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect
[06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution>
Traceback (most recent call last):
File "/usr/local/python3.5/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect
super().connect()
File "/usr/local/python3.5/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/local/python3.5/lib/python3.5/socket.py", line 694, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/local/python3.5/lib/python3.5/socket.py", line 733, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
How can I solve this problem?
Hi, this issue seems caused by http client connection error. Which image and example did you use in your experiment?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Thank you very much for your reply, I have encountered a new problem.Remote TrainingService,How can I set sshKeyPath. | | 胡然 | |<EMAIL_ADDRESS>| 签名由 网易邮箱大师 定制 On 06/16/2019 23:56, SparkSnail wrote: I also encountered a similar problem, my trial's log is as follows： [06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution> h.request(req.get_method(), req.selector, req.data, headers) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request self.endheaders(body) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders self.send(msg) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send self.connect() File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect super().connect() File "/usr/local/python3.5/lib/python3.5/http/client.py", line 849, in connect (self.host,self.port), self.timeout, self.source_address) File "/usr/local/python3.5/lib/python3.5/socket.py", line 694, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/usr/local/python3.5/lib/python3.5/socket.py", line 733, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution During handling of the above exception, another exception occurred: Traceback (most recent call last): [06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution> Traceback (most recent call last): File "/usr/local/python3.5/lib/python3.5/urllib/request.py", line 1254, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1107, in request self._send_request(method, url, body, headers) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request self.endheaders(body) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders self._send_output(message_body) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 934, in _send_output self.send(msg) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send self.connect() File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect [06/14/2019, 07:45:59 AM] ERROR (mnist_AutoML/MainThread) <urlopen error [Errno -3] Temporary failure in name resolution> Traceback (most recent call last): File "/usr/local/python3.5/lib/python3.5/urllib/request.py", line 1254, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1107, in request self._send_request(method, url, body, headers) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1152, in _send_request self.endheaders(body) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1103, in endheaders self._send_output(message_body) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 934, in _send_output self.send(msg) File "/usr/local/python3.5/lib/python3.5/http/client.py", line 877, in send self.connect() File "/usr/local/python3.5/lib/python3.5/http/client.py", line 1253, in connect super().connect() File "/usr/local/python3.5/lib/python3.5/http/client.py", line 849, in connect (self.host,self.port), self.timeout, self.source_address) File "/usr/local/python3.5/lib/python3.5/socket.py", line 694, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/usr/local/python3.5/lib/python3.5/socket.py", line 733, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution How can I solve this problem? Hi, this issue seems caused by http client connection error. Which image and example did you use in your experiment? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Hi, sshKeyPath is the path of your ssh key file, it is a local path. You could set the path in your machineList field, refer https://github.com/microsoft/nni/blob/master/docs/en_US/Tutorial/ExperimentConfig.md#configuration-spec

@husimple - does @SparkSnail 's latest feedback help?

No updates. Closing it for now. If there are further questions, you can reopen it.


[RFR][Feature][OSF-2718]Can't see all components when permission to one is denied

Purpose:
OSF-2718
In project overview page and project file view page...

Enable viewing components masked by unauthorized parent.
Allow for breadcrumbs to to get back from masked components.
In project overview page
Update components widget to match info in file tree widget.

Bonus
Remove visibility of unauthorized components. "Private Component"
Changes:
Updated tests/test_views.py

Removed test_pointer_list_write_contributor_can_remove_private_component_entry no longer valid
Fixed test_pointer_list_read_contributor_cannot_remove_public_component_entry now actually public

Updated website/project/model.py

Added def find_readable_antecedent to find logical parent
Added def find_readable_descendants to find logical children

Updated website/project/views/node.py "def _view_project" to find logical parent and children
Updated website/routes.py added get_readable_descendants route for use by component widget
Updated website/templates/project/project.mako to utilize new get_readable_descendants route
Updated website/util/rubeus.py "def _collect_components" to find logical children and not return unauthorized nodes
Side effects
None
[#OSF-2718]

Though this test has failed twice in Travis....
FAIL: test_merge (tests.models.test_user.TestUserMerging)
It is passing for me locally and has no connection that I can see with this PR.

Though this test has failed twice in Travis....
FAIL: test_merge (tests.models.test_user.TestUserMerging)
It is passing for me locally and has no connection that I can see with this PR.

Travis doesn't test just your code, it tests the code resultant after a merge into the targeted branch. See if that test breaks after a merge/rebase, there could be breaking but non-conflicting changes upstream.

I've found an issue while testing and have changed this PR to [WIP]

I've found an issue while testing and have changed this PR to [WIP]

Moving this Additional Development until that's resolved, then

Sorry for the confusion. It turned out to be a super quick fix. Ready for further review.

During scrum, I discussed with Brian and Nici the issue with the test I removed. test_pointer_list_write_contributor_can_remove_private_component_entry. He and Nici believe that the edge case of no one being able to delete an orphaned component was fixed in another PR.

So @mfraezz found a problem where if you have a pointer to a node with a child you can read, and you retain access to the child but lose access to the node that the pointer points to, then you get the child node displayed. You shouldn't do this. Check for access to the node that pointers point to and, if you don't have permissions for that node, then don't check for orphaned children. The v2 api won't return pointers that you don't have access to, but v1 is not as limited.

@brianjgeiger @mfraezz Have updated logic to properly handle links. Also tested VOLs.

Visibility to links without read access added back in. Ready for review.

Other than those last two nitpicky comments, LGTM. Passing this ahead 🐎

Travis failure was the usual intermittent "returns false for date more than 4 years in the future"

Pass finished. Just one minor refactor to make: https://github.com/CenterForOpenScience/osf.io/pull/5860/files#r69187381. Once that's addressed, this will be good to merge for next improvements release.


build error

With yew, while trying to use the Badge component, it generate the below error.
almost done for each tag i tried!
I am using the master yew from github
the trait bound yew::functional::FunctionComponent<patternfly_yew::badge::badge>: yew::Component is not satisfied
the following other types implement trait yew::Component:
ContextProvider
InputComponent
MyPage
required because of the requirements on the impl of BaseComponent for yew::functional::FunctionComponent<patternfly_yew::badge::badge>rustcE0277
login_page.rs(116, 9): Error originated from macro call here

Which version of yew are you using?


Refactor quad logger, include reference state and GRFs

This PR contains a number of refactorings necessary to obtain clean figures showing state and trajectory tracking (as shown in the ICRA abstract), including:

Update trajectory publisher with bugfixes (removes unnecessary feature to republish trajectory)
Add reference state and grf trajectories to plotting scripts
Update figure generation in MATLAB to automatically crop figures for publication
Refactor MATLAB code to be more robust in error handling
Allow user specification of a time window to clip the figures
Add comments to MATLAB scripts

Looks good to me once the pipeline is passing


Dark Mode Toggle and ClassName Props Added

darkMode can have two values:

true (default)
false

className not required but can be given to override css properties. (applies to .devcontainer)

Hi a suggestion, while pushing code so not push relate to space change, every developer has different settings on local but while pushing try to avoid pushing those chnges. In 1 of  your css file you hve these changes.
Thanks you 😃


Unable to view PR analytics after integration

Hi @Kimi-Gao  - Followed the steps and provided the personal GitHub security token, raised PR, but still i could see the default chart only - Could you please help where I am missing or provide more steps of the integration.

any update? I am also facing same issue


Issue with Encrypting and Decrypting config.json Content Directly in Code

Hello,
I'm encountering a problem with my current approach to handling the config.json file. In an effort to enhance security, I've decided to directly incorporate the contents of config.json into my code instead of leaving it in plain text. To protect the contents, I first encrypted them and then decrypted them within the code. However, I've run into an issue with the following line:
secrets_manager = SecretsManager(config=decrypted_data)
The problem is that the config parameter expects a file path, not a dictionary which I have after decryption. Is there a way to work around this issue so that I can use the decrypted data as the configuration without needing to refer to an external file?
Any guidance or suggestions would be greatly appreciated.
Thank you.

Thanks for your reply Idimov, I confirm your solution works very good, I did something different  :
I create a json file from my encrypted data, and then I delete the json file when I retrieve my data, so I dont keep any local file
But I think your solution is better !


Add a button in navbar

Adding a button for meet our friends here for directly navigating in that place
It will be easy for user to find pet that they wanted more easily

Assign this to me i am contributing under GSSOC'2023

Till now there is no button that would navigate us to the place where we can actually adopt pets, i can add a button that can do so.Please assign me this issue.  Also till now there is no mechanism that tells us which page we are currently in, i can solve that too.

I would too like to contribute to this issue. Can you please assign this to me.

please guys i created this issue so that i can contribute in this project, if you have any other ideas you can create issue and say for assign me, this time it is for me.

plz assign to me under gssoc'23

I AM A WEB DESIGNER I CAN ADD CALMING EFFECTS AND BUTTONS ON THIS
i can add a button that can do so.Please assign me this issue.
Can you please assign this to me.


add description for security types

Add description?: string;
https://swagger.io/specification/#security-scheme-object

Thank you 👍could you please add a changeset? (run pnpm changeset, select minor and add a description)


ability to use multiple jenkins servers

At this moment the tool can use only one Jenkins server and we need the ability to refer to multiple jenkins masters.
We can use multiple ini sections and use the "jenkins" one as the default one.
Now what I do not yet know if what command line argument would be the best for telling the tool which master to use.
I propose -s[default] and --server [default] for that but before making any PR, I would like to hear your view.

I like the idea. My view on how it should work:
In the .ini file, you'll have multiple [jenkins/] sections and by default it would either use the first one in the list or the one that includes the option 'default=yes'.
To use a specific server, you'll need to specify the name of the server as it appears in the section ( [jenkins/] ).
For example:
[jenkins/a]
...
[jenkins/b]
default=yes
...
[jenkins/c]
In this case it would connect jenkins/b by default, but I can also specify -s c or -s a

I am already using the current version in "production" ;)
I used this approach in order not ti change current behaviour and to keep it compatible with jenkins-job-builder. The user needs to specify the full section name if they want to use something else then default one. It is intuitive

"I am already using the current version in "production" ;)" - which version? I think I lost you.

Oops, my mistake, I imagined that I already pushed the patch for it. Before I push a patch addressing this lets first have this feature implemented in jjb.
The CR doing it it is pending review at https://review.openstack.org/#/c/469146/ -- once we get in, we will be able to implement it the same way.


1226 sshkey form feedback

Add user feedback to SSH Key form. fix for #1226

Nice!

This should have been in 1.9.0, but somehow the change got lost in a merge. It is finally, albeit somewhat changed, in 1.10.0 now.


Use passed in GITHUB_TOKEN for git commands

This should work based on how I've seen/done it in the past. If not I can just revert it. Came across this because we added contests: read to all our workflow default permissions and it failed since it's using the default token instead of the passed in one.

Hmmm, this didn't break anything but didn't work as expected. Still not fully using the given github token for git commands. Will have to re-look at this. Still a good change just needs more.

Hmmm, this didn't break anything but didn't work as expected. Still not fully using the given github token for git commands. Will have to re-look at this. Still a good change just needs more.

You might need to do this wherever you use it: https://github.com/BrightspaceUI/documentation/pull/932/files

Hmmm, this didn't break anything but didn't work as expected. Still not fully using the given github token for git commands. Will have to re-look at this. Still a good change just needs more.

You might need to do this wherever you use it: https://github.com/BrightspaceUI/documentation/pull/932/files

The workflow it was not working for doesn't even do a checkout so not sure what's up
https://github.com/Brightspace/d2l-rubric/blob/main/.github/workflows/backport.yml
If I change the permission to contents: read it fails cause it's using the default token set-up with git but not sure how to override that in this case.

Hmmm, this didn't break anything but didn't work as expected. Still not fully using the given github token for git commands. Will have to re-look at this. Still a good change just needs more.

You might need to do this wherever you use it: https://github.com/BrightspaceUI/documentation/pull/932/files

The workflow it was not working for doesn't even do a checkout so not sure what's up
https://github.com/Brightspace/d2l-rubric/blob/main/.github/workflows/backport.yml
https://github.com/Brightspace/d2l-rubric/runs/7527604113?check_suite_focus=true#step:3:634
If I change the permission to contents: read it fails cause it's using the default token set-up with git but not sure how to override that in this case.

Huh interesting, I wonder if https://github.com/Brightspace/lms-version-actions/blob/main/backport/action.yml#L62 is messing with it?

Oh duh, yeah it is. I didn't even realize that this was doing the checkout within the action.yml itself. That will need the don't persist credentials stuff