Error running "npm install" or "npm run build"

Hi
i'm very interested and intrigued by this project and i tried to run the playground example.
I downloaded a copy of this repository but when i run the "npm install" shell command but it fails with the same error at build stage. Here the latest console log lines:
[20:09:18] Starting 'build'...
[20:09:18] npm run build ./packages/aerial-browser-sandbox
[20:09:19] ><EMAIL_ADDRESS>build /Users/marcobonati/Develop/temp/aerial-master/packages/aerial-browser-sandbox

rm -rf lib; for FILE in find ./src -name *.peg; do OUT_FILE=echo $FILE | sed 's/src/lib/' | sed 's/.peg/.peg.js/';; mkdir -p dirname $OUT_FILE; ./node_modules/.bin/pegjs -o $OUT_FILE $FILE; done; for FILE in find ./src -name *.d.ts; do OUT_FILE=echo $FILE | sed 's/src/lib/'; mkdir -p dirname $OUT_FILE; cp $FILE $OUT_FILE; done; tsc
[20:09:26] src/constants/index.ts(2,8): error TS2322: Type '"PX"' is not assignable to type 'CSSMeasurementTypes'.
[20:09:26] src/constants/index.ts(3,10): error TS2322: Type '"%"' is not assignable to type 'CSSMeasurementTypes'.
[20:09:26] src/constants/index.ts(4,8): error TS2322: Type '"vw"' is not assignable to type 'CSSMeasurementTypes'.
src/constants/index.ts(5,8): error TS2322: Type '"vh"' is not assignable to type 'CSSMeasurementTypes'.
src/constants/index.ts(6,8): error TS2322: Type '"cm"' is not assignable to type 'CSSMeasurementTypes'.
[20:09:26] src/constants/index.ts(7,8): error TS2322: Type '"em"' is not assignable to type 'CSSMeasurementTypes'.
src/constants/index.ts(8,8): error TS2322: Type '"ex"' is not assignable to type 'CSSMeasurementTypes'.
src/constants/index.ts(9,8): error TS2322: Type '"in"' is not assignable to type 'CSSMeasurementTypes'.
[20:09:26] src/constants/index.ts(10,8): error TS2322: Type '"mm"' is not assignable to type 'CSSMeasurementTypes'.
src/constants/index.ts(11,8): error TS2322: Type '"pc"' is not assignable to type 'CSSMeasurementTypes'.
[20:09:26] src/constants/index.ts(12,8): error TS2322: Type '"pt"' is not assignable to type 'CSSMeasurementTypes'.
src/constants/index.ts(13,10): error TS2322: Type '"vmin"' is not assignable to type 'CSSMeasurementTypes'.
[20:09:26] src/constants/index.ts(17,16): error TS2322: Type '"HORIZONTAL"' is not assignable to type 'Axis'.
[20:09:26] src/constants/index.ts(18,14): error TS2322: Type '"VERTICAL"' is not assignable to type 'Axis'.
src/environment/custom-element-registry.ts(3,16): error TS2420: Class 'SEnvCustomElementRegistry' incorrectly implements interface 'CustomElementRegistry'.
Types of property 'whenDefined' are incompatible.
Type '(name: string) => Promise | Promise<{}>' is not assignable to type '(name: string) => PromiseLike'.
Type 'Promise | Promise<{}>' is not assignable to type 'PromiseLike'.
Type 'Promise<{}>' is not assignable to type 'PromiseLike'.
Types of property 'then' are incompatible.
Type '<TResult1 = {}, TResult2 = never>(onfulfilled?: (value: {}) => TResult1 | PromiseLike, ...' is not assignable to type '<TResult1 = void, TResult2 = never>(onfulfilled?: (value: void) => TResult1 | PromiseLike<TResult...'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
Type '(value: void) => any' is not assignable to type '(value: {}) => any'.
Types of parameters 'value' and 'value' are incompatible.
Type '{}' is not assignable to type 'void'.
src/environment/custom-element-registry.ts(39,46): error TS2322: Type 'Promise<{}>' is not assignable to type 'Promise'.
Type '{}' is not assignable to type 'void'.
[20:09:26] src/environment/nodes/element.ts(320,37): error TS2304: Cannot find name 'InsertPosition'.
src/environment/nodes/element.ts(324,31): error TS2304: Cannot find name 'InsertPosition'.
src/environment/nodes/element.ts(328,31): error TS2304: Cannot find name 'InsertPosition'.
[20:09:26] src/environment/window.ts(362,30): error TS2322: Type 'SEnvCustomElementRegistry' is not assignable to type 'CustomElementRegistry'.
Types of property 'whenDefined' are incompatible.
Type '(name: string) => Promise | Promise<{}>' is not assignable to type '(name: string) => PromiseLike'.
Type 'Promise | Promise<{}>' is not assignable to type 'PromiseLike'.
Type 'Promise<{}>' is not assignable to type 'PromiseLike'.
src/utils/synthetic-element-bounds.ts(89,106): error TS2535: Enum type 'Axis' has members with initializers that are not literals.
../aerial-common2/src/log/base.ts(24,9): error TS2322: Type '"LOG"' is not assignable to type 'LogActionTypes'.
../aerial-common2/src/log/base.ts(27,85): error TS2345: Argument of type 'LogActionTypes' is not assignable to parameter of type 'string'.
[20:09:26]
[20:09:26] npm
[20:09:26] ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.11.0
npm
[20:09:26] ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: rm -rf lib; for FILE in find ./src -name *.peg; do OUT_FILE=echo $FILE | sed 's/src/lib/' | sed 's/.peg/.peg.js/';; mkdir -p dirname $OUT_FILE; ./node_modules/.bin/pegjs -o $OUT_FILE $FILE; done; for FILE in find ./src -name *.d.ts; do OUT_FILE=echo $FILE | sed 's/src/lib/'; mkdir -p dirname $OUT_FILE; cp $FILE $OUT_FILE; done; tsc
npm ERR! Exit status 2
npm ERR!
[20:09:26] npm ERR! Failed at the<EMAIL_ADDRESS>build script 'rm -rf lib; for FILE in find ./src -name *.peg; do OUT_FILE=echo $FILE | sed 's/src/lib/' | sed 's/.peg/.peg.js/';; mkdir -p dirname $OUT_FILE; ./node_modules/.bin/pegjs -o $OUT_FILE $FILE; done; for FILE in find ./src -name *.d.ts; do OUT_FILE=echo $FILE | sed 's/src/lib/'; mkdir -p dirname $OUT_FILE; cp $FILE $OUT_FILE; done; tsc'.
npm ERR!
[20:09:26] Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the aerial-browser-sandbox package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     rm -rf lib; for FILE in find ./src -name *.peg; do OUT_FILE=echo $FILE | sed 's/src/lib/' | sed 's/.peg/.peg.js/';; mkdir -p dirname $OUT_FILE; ./node_modules/.bin/pegjs -o $OUT_FILE $FILE; done; for FILE in find ./src -name *.d.ts; do OUT_FILE=echo $FILE | sed 's/src/lib/'; mkdir -p dirname $OUT_FILE; cp $FILE $OUT_FILE; done; tsc
npm ERR! You can get information on how to open an issue for this project with:
npm
[20:09:26] ERR!     npm bugs aerial-browser-sandbox
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls aerial-browser-sandbox
npm ERR! There is likely additional logging output above.
[20:09:26]
[20:09:26] npm ERR! Please include the following file with any support request:
npm ERR!     /Users/marcobonati/Develop/temp/aerial-master/packages/aerial-browser-sandbox/npm-debug.log
events.js:160
throw er; // Unhandled 'error' event
^

Error: command "npm run build" exited with an error code: 1
at ChildProcess.proc.on (/Users/marcobonati/Develop/temp/aerial-master/gulpfile.js:46:16)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>postinstall: gulp clean; gulp install; gulp link; gulp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'gulp clean; gulp install; gulp link; gulp build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the aerial package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp clean; gulp install; gulp link; gulp build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs aerial
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls aerial
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/marcobonati/Develop/temp/aerial-master/npm-debug.log
thanks
regards
Marco

Thanks for the heads up! Right now the codebase is a bit messy while I'm getting the playground to a more stable state. I went ahead and fixed them for now, so you should be able to play around with it.
The setup process is a little more involved, so here's an instructional GIF to help you out:

Assuming that you have VSCode, and yarn installed, Here are the steps:

run yarn install in the main repo
In terminal, cwd into packages/vscode-aerial-extension and run code .
Run the VSCode debugger
When the debugger app loads, open the examples/playground directory
Run the Open in Aerial view command and wait a few seconds (~3) for it to load.
Wait another couple of seconds for the second window to pop up (Playground webpack bundler is running at this point)
Open the file gutter/index-preview.tsx, and either a) edit that file and save it in VSCode, or b) move the GUTTER text in the Aerial view pane around on the canvas.

Note that there are various key commands that you can execute in Aerial view that you can check out here: https://github.com/crcn/aerial/blob/master/examples/playground/src/front-end/state/index.ts#L347
Aerial is moving towards being a visual editor directly in your text editor (aerial will be standalone too), so the final step for this will eventually be to install the Aerial VSCode extension which will work with HTML & CSS out of the box. For additional language & tooling support for things like Webpack, TypeScript, JSX, and SASS, you'll need to to add a visual-tools.config.js file -- you can checkout an example here: https://github.com/crcn/aerial/blob/master/examples/playground/visual-dev.config.js.


Diablo.sh does not work

I have tried to use the install script for diablo. And it fails.
I did try. And reach out to the devs and all he said was to use git (which I did when I tried to compile it my self) or to use the version number so cmake can see it.
He was not much help
Not sure if you could shed a little light on this

Nevermind. I did get it fixed


OAuth2 "UserDetailsService is required" refresh token when use Custom Authentication Provider

Summary
I'm implementing OAuth2 Authorization server, and I have multiples authorizations providers, without User Details Service, like #813 issue, but when I try to get a refresh token of passord grant they return the error 500 with then Exception bellow
Actual Behavior
Error 500 with then Exception bellow
java.lang.IllegalStateException: UserDetailsService is required.
	at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter$UserDetailsServiceDelegator.loadUserByUsername(WebSecurityConfigurerAdapter.java:462) ~[spring-security-config-5.2.0.RELEASE.jar:5.2.0.RELEASE]
	at org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper.loadUserDetails(UserDetailsByNameServiceWrapper.java:68) ~[spring-security-core-5.2.0.RELEASE.jar:5.2.0.RELEASE]
	at org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider.authenticate(PreAuthenticatedAuthenticationProvider.java:103) ~[spring-security-web-5.2.0.RELEASE.jar:5.2.0.RELEASE]
	at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:175) ~[spring-security-core-5.2.0.RELEASE.jar:5.2.0.RELEASE]
	at org.springframework.security.oauth2.provider.token.DefaultTokenServices.refreshAccessToken(DefaultTokenServices.java:150) ~[spring-security-oauth2-2.3.7.RELEASE.jar:na]
	at org.springframework.security.oauth2.provider.refresh.RefreshTokenGranter.getAccessToken(RefreshTokenGranter.java:47) ~[spring-security-oauth2-2.3.7.RELEASE.jar:na]
	at org.springframework.security.oauth2.provider.token.AbstractTokenGranter.grant(AbstractTokenGranter.java:67) ~[spring-security-oauth2-2.3.7.RELEASE.jar:na]
	at org.springframework.security.oauth2.provider.CompositeTokenGranter.grant(CompositeTokenGranter.java:38) ~[spring-security-oauth2-2.3.7.RELEASE.jar:na]
	at org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer$4.grant(AuthorizationServerEndpointsConfigurer.java:583) ~[spring-security-oauth2-2.3.7.RELEASE.jar:na]
	at org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.postAccessToken(TokenEndpoint.java:132) ~[spring-security-oauth2-2.3.7.RELEASE.jar:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]

Test Result
MockHttpServletRequest:
      HTTP Method = POST
      Request URI = /oauth/token
       Parameters = {grant_type=[refresh_token], refresh_token=[f59f10ef-7b91-4c6d-8fea-ded4674a40a5]}
          Headers = [Authorization:"Basic Y2xpZW50X3B3ZF90ZXN0OnNlY3JldA=="]
             Body = null
    Session Attrs = {}

Handler:
             Type = org.springframework.security.oauth2.provider.endpoint.TokenEndpoint
           Method = org.springframework.security.oauth2.provider.endpoint.TokenEndpoint#postAccessToken(Principal, Map)

Async:
    Async started = false
     Async result = null

Resolved Exception:
             Type = java.lang.IllegalStateException

ModelAndView:
        View name = null
             View = null
            Model = null

FlashMap:
       Attributes = null

MockHttpServletResponse:
           Status = 500
    Error message = null
          Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Cache-Control:"no-store", Pragma:"no-cache", Content-Type:"application/json", X-Content-Type-Options:"nosniff", X-XSS-Protection:"1; mode=block", X-Frame-Options:"DENY"]
     Content type = application/json
             Body = {"error":"server_error","error_description":"Internal Server Error"}
    Forwarded URL = null
   Redirected URL = null
          Cookies = []

Expected Behavior
Refresh token generated with success
Configuration
@Configuration
@EnableAuthorizationServer
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter {

    @Autowired
    private DataSource dataSource;

    @Autowired
    private AuthenticationManager authenticationManager;

    @Autowired
    private DbAuthenticationProvider dbAuthenticationProvider;

    @Bean
    public TokenStore tokenStore() {
        return new JdbcTokenStore(dataSource);
    }

    @Bean
    public ApprovalStore approvalStore() {
        return new JdbcApprovalStore(dataSource);
    }

    @Bean
    public AuthorizationCodeServices authorizationCodeServices() {
        return new JdbcAuthorizationCodeServices(dataSource);
    }

    @Bean
    public JdbcClientDetailsService jdbcClientDetailsService() {
        JdbcClientDetailsService jdbcClientDetailsService = new JdbcClientDetailsService(dataSource);
        jdbcClientDetailsService.setPasswordEncoder(passwordEncoder());
        return jdbcClientDetailsService;
    }

    @Bean
    public BCryptPasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }

    @Override
    public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
        clients
                .withClientDetails(jdbcClientDetailsService());
    }

    @Override
    public void configure(AuthorizationServerSecurityConfigurer oauthServer) {
        oauthServer
                .tokenKeyAccess("permitAll()")
                .checkTokenAccess("isAuthenticated()");
    }

    @Override
    public void configure(AuthorizationServerEndpointsConfigurer endpoints) {
        endpoints
                .authenticationManager(authenticationManager)
                .approvalStore(approvalStore())
                .authorizationCodeServices(authorizationCodeServices())
                .tokenStore(tokenStore())
        ;
    }
}

@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true, jsr250Enabled = true)
public class SecurityConfig extends WebSecurityConfigurerAdapter {

    @Autowired
    private DbAuthenticationProvider dbAuthenticationProvider;

    @Override
    public void configure(WebSecurity web) {
        web.ignoring()
                .antMatchers("/js/**", "/css/**", "/img/**");
    }

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
                .cors().disable()
                .csrf().disable()
                .authorizeRequests()
                .antMatchers("/password/**").permitAll()
                .anyRequest().authenticated()
                .and()
                .formLogin().loginPage("/login").permitAll()
                .and()
                .logout().permitAll();
    }

    @Override
    protected void configure(AuthenticationManagerBuilder auth) throws Exception {
        auth
                .authenticationProvider(dbAuthenticationProvider);
    }

    @Bean
    @Override
    public AuthenticationManager authenticationManagerBean() throws Exception {
        return super.authenticationManagerBean();
    }

}

Version
spring boot 2.2.0.RELEASE
spring security oauth2 autoconfigure 2.2.0.RELEASE (spring security oauth2 2.3.7.RELEASE)
Sample
I use the same approach of stackoverflow but with modifications to solve my problem
On my AuthenticationProvider I add support to PreAuthenticatedAuthenticationToken
@Component
public class DbAuthenticationProvider implements AuthenticationProvider {

    @Autowired
    private UserCredentialsRepository credentialRepository;

    @Autowired
    private PasswordEncoder passwordEncoder;

    @Override
    public Authentication authenticate(Authentication authentication) throws AuthenticationException {

        String username = authentication.getName();

        UserCredentials credentials = credentialRepository.findByName(username)
                .orElseThrow(() -> new BadCredentialsException("Invalid username and/or password"));

        List<GrantedAuthority> authorities = null;

        if (credentials.getAuthorities() != null) {
            authorities = credentials.getAuthorities().stream()
                    .map(it -> new SimpleGrantedAuthority(it.getAuthority()))
                    .collect(Collectors.toList());
        }

        if (authentication instanceof UsernamePasswordAuthenticationToken) {
            if (passwordEncoder.matches(authentication.getCredentials().toString(), credentials.getPassword())) {
                return new UsernamePasswordAuthenticationToken(authentication.getName(), authentication.getCredentials(), authorities);
            }
        } else if (authentication instanceof PreAuthenticatedAuthenticationToken) {
            return new PreAuthenticatedAuthenticationToken(authentication.getName(), authentication.getCredentials(), authorities);
        }

        throw new BadCredentialsException("Invalid username and/or password");
    }

    @Override
    public boolean supports(Class<?> authentication) {
        return authentication.equals(UsernamePasswordAuthenticationToken.class)
                || authentication.equals(PreAuthenticatedAuthenticationToken.class);
    }
}

and on my AuthorizationServerConfig I add my own tokenServices
@Configuration
@EnableAuthorizationServer
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter {

	....

    @Override
    public void configure(AuthorizationServerEndpointsConfigurer endpoints) {
        endpoints
                .authenticationManager(authenticationManager)
                .approvalStore(approvalStore())
                .authorizationCodeServices(authorizationCodeServices())
                .tokenStore(tokenStore())
                .tokenServices(tokenServices(endpoints))
        ;
    }

    private AuthorizationServerTokenServices tokenServices(final AuthorizationServerEndpointsConfigurer endpoints) {
        final DefaultTokenServices tokenServices = new DefaultTokenServices();

        tokenServices.setTokenStore(endpoints.getTokenStore());
        tokenServices.setSupportRefreshToken(true);
        tokenServices.setReuseRefreshToken(true);
        tokenServices.setClientDetailsService(endpoints.getClientDetailsService());
        tokenServices.setTokenEnhancer(endpoints.getTokenEnhancer());
        tokenServices.setAuthenticationManager(authenticationManager);
        return tokenServices;
    }

}

but I belived that is a Issue because this wr

I came accross this issue looking for something else. Anyway, maybe you just need to override the method WebSecurityConfigurerAdapter.userDetailsServiceBean, like you did with the authenticationManagerBean. The JavaDoc says:

Override this method to expose a UserDetailsService created from configure(AuthenticationManagerBuilder) as a bean. In general only the following override should be done of this method:

   @Bean(name = "myUserDetailsService")
   // any or no name specified is allowed
   @Override
   public UserDetailsService userDetailsServiceBean() throws Exception {
   	return super.userDetailsServiceBean();
   }

To change the instance returned, developers should change userDetailsService() instead

@diegobmd If you could put together a minimal sample with steps to reproduce I'll have a look at this.

@jgrandja the thing with having a custom authentication provider where you need to authenticate using both username and password (which is the case fo many production systems out there e.g. when authenticating against an external system) is when it comes to refresh the token, you cannot simply load a user by username. So, which are the best practises for such cases? It would be really helpful to provide the options and the tradeoffs. What means to attempt to refresh a token in such situations? One approach could be when you fist authenticate a user and obtain the access token, to save a local copy of the user information to a local db and use this when refreshin a token. Of course if in the meantime something has changed (user is deactivated or has changed password in the external system) such changes will not be reflected when refreshing token.

@kmandalas I agree that a custom AuthenticationProvider is a common use case. I do believe there is a way to do this today. It's just a matter of custom configuration. I can see what can be done with the existing codebase today. But I will need a sample that reproduces the issue so I can work out the right solution. Feel free to provide a minimal sample with reproducible steps and I'll take a look.

@jgrandja ok, I will try to create a minimal sample on GitHub and post the link here

@jgrandja minimal sample uploaded at: https://github.com/kmandalas/spring-security-demo

Hi, i have the same error, the problem start on "UserDetailsServiceDelegator" when is created the "defaultUserDetailsService" that are on "delegateBuilders" are null. is doesnt care if you set it later on, it doesnt take changes. So to fixed for now, i see this post. In my personal case i solved setting the "userDetailsService" on "AuthorizationServerEndpointsConfigurer". I check it the source publish by @kmandalas and have the same soluction, however in his case he does implement the "loadUserByUsername" on "MyUserDetailsServiceImpl".
So please @jgrandja  could you check why is not detecting the changes of "defaultUserDetailsService", i believe the problem is the early creation on that class.

@nekperu15739 hello. Just to make clear that in my case/sample refresh token does not work. It throws error  IllegalStateException, UserDetailsService is required. In my case where I authenticate against an external service, the demand to have a UserDetailsService  and loadUserByUsername during refresh token is ambigious and I report this issue in order to receive feedback what is the best practise in such cases.

@kmandalas I took a look at your sample and the main issue why MyAuthenticationProvider is not being called for the refresh_token grant is because it does not support PreAuthenticatedAuthenticationToken.
If you look at DefaultTokenServices.refreshAccessToken(), you will see that it creates a PreAuthenticatedAuthenticationToken and then passes it to the AuthenticationManager. Given that MyAuthenticationProvider only supports UsernamePasswordAuthenticationToken (via AbstractUserDetailsAuthenticationProvider) it does not get called.
I'm attaching a git patch that you can apply and see what changes I made. The changes I made is a workaround. It will call MyAuthenticationProvider but it will still fail on a later check with missing credentials. There are some other changes I applied to AuthorizationServerConfiguration to get things working. This will at least move you ahead but there is some cleanup required.
spring-security-demo-patch.txt

@kmandalas  you don't precise the userDetailsService in your endpoints in your ** AuthorizationServerConfiguration**.
You must do that
@Autowired
private YourUserDetailsService yourUserDetailsService;
...
...
endpoints.authenticationManager(authenticationManager).userDetailsService(yourUserDetailsService)...;

@akoua when we want to implement our CustomAuthenticationProvider, What is the need to provide a userdetailsservice. In my case, I dont want to validate the user with the password but authenticate with a 2fa token. I can't user userdetailsservice when I dont have any password right. Any suggestion would be helpful.
@jgrandja I tried to put the PreAuthenticatedAuthenticationToken.class in the supports method. Still I don't see it working. Could you please let me know if there is any mistake.
`
@Override
public Authentication authenticate(Authentication authentication) throws AuthenticationException {
Object details = authentication.getDetails();
Map<String, String> detailsMap = null;
if(details instanceof Map){
detailsMap = (Map)details;
}
String username = detailsMap.get("username");
// get some more details and authenticate the user here
UserDetails user = new UserImpl(username,externalId,region);
return new UsernamePasswordAuthenticationToken(user, null, user.getAuthorities());
}
@Override
public boolean supports(Class<?> authentication) {
    return authentication.equals(UsernamePasswordAuthenticationToken.class) || authentication.equals(PreAuthenticatedAuthenticationToken.class);
}

`

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


Add support for module.fileName and module.name

Currently Ecmascript modules are loaded using a wrapper function whose .fileName is automatically set to the module ID. This is a useful default, but in some situations user code may want to use a different fileName, e.g. mapping to a concrete file when one exists. See #637.
Change current behavior so that:

module.fileName is initialized to the resolved module ID, i.e. the current .fileName used
module.name is initialized to the last component of the resolved module ID (e.g. foo/bar -> bar)
Allow user modSearch() to replace module.fileName and/or module.name
Use module.fileName for the wrapper function .fileName so that it shows up in tracebacks etc
Similarly module.name is used for the wrapper function .name

Tasks:

[x] Change require() behavior to use module.fileName
[x] Change module wrapper function .name also to match module.fileName
[x] Add module.name handling
[x] Add #defines for stack indices in require() implementation
[x] Testcase for setting module.fileName in modSearch()
[x] Testcase for module wrapper function name, affects stack traces generated during module load
[x] Testcase for initializing a logger within a module with default fileName (= module resolved ID) and modified module.fileName
[x] Testcase for ensuring that module wrapper function's .name does not create a capturing function name binding
[x] Testcase for module.name overriding
[ ] Stress testcase for last component scanning (truncated IDs etc)
[ ] Assertion run
[ ] Update documentation
[ ] Wiki modules howto update
[x] Releases entry

I like this, it seems like a very clean solution.  My idea was for modSearch to return an object like:
return { source: "...", fileName: "commonjs/module.js" }

But that's not compatible of course, unless the implementation still allows a string to be returned.  module.fileName is a better solution.

Independent of using module.fileName it would probably be better to return an object instead of a string from modSearch() (or whatever the equivalent is in the future). It's a place in the API where it's quite easy to see the need for some backward compatible changes and with a string value there's no "space" for them.
But for this particular change I think module might be good enough. The final module object gets cached in Duktape.modLoaded[] so it's not appropriate for passing any temporary control information (which is not needed after loading is complete). Keeping module.fileName around after loading is complete is OK I think because it's related to where the module came from (i.e. it's actual metadata rather than just some temporary control information).

Regarding the function wrapper used for modules: Is there a reason why Duktape can't simply compile the module code using the internal equivalent of DUK_COMPILE_FUNCTION instead of modifying the source string directly?

DUK_COMPILE_FUNCTION expects to see the function argument list (function (x, y, z) ...) which is used to get a list of bound variables. A module source has local bindings for module, exports, etc, which are not declared in the module source at all. So there needs to be some way of compiling a function body but declaring the bindings (here argument names) from outside the source itself. As there's no internal API to do that, using a function wrapper is the shortest way to accomplish the goal.
But it's definitely a feature to keep in mind next time the compiler gets some attention. It'd be nice to be able to compile sequences of statements more flexibly, even outside modules.

With the updated behavior, when modSearch() sets module.fileName = "my_source.js"; an error traceback inside the module looks like this:
Error: aiee
    at my_source.js (my_source.js:2) preventsyield
    at require () native strict preventsyield
    at test (tests/ecmascript/test-commonjs-module-filename.js:61)
    at global (tests/ecmascript/test-commonjs-module-filename.js:82) preventsyield

If module.fileName is not set, it defaults to the resolved module ID (here test/foo2):
Error: aiee
    at test/foo2 (test/foo2:2) preventsyield
    at require () native strict preventsyield
    at test (tests/ecmascript/test-commonjs-module-filename.js:51)
    at global (tests/ecmascript/test-commonjs-module-filename.js:82) preventsyield

Before the change, in Duktape 1.4.x and below:
Error: aiee
	anon test/bar2:2 preventsyield
	require  native strict preventsyield
	test tests/ecmascript/test-commonjs-module-filename.js:61
	global tests/ecmascript/test-commonjs-module-filename.js:82 preventsyield

The two improvements are:

The function .name in the traceback was "anon" but now matches module.fileName, e.g. "my_source.js" or the resolved module ID if nothing is explicitly set. It's a bit odd as a function name but better than the anonymous default I think.
The function .fileName in the traceback is now module.Filename, e.g. "my_source.js" or the resolved module ID if nothing is explicitly set. This is the main change requested by @fatcerberus.

I'm not sure which behavior is better for the module wrapper function's .name property. The current behavior in this branch leads to the stack trace:
Error: aiee
    at my_source.js (my_source.js:2) preventsyield
    at require () native strict preventsyield
    [...]

The alternative is not to set .name so that the function appears anonymous, as the .fileName property will still reflect the module name or filename:
Error: aiee
    at [anon] (my_source.js:2) preventsyield
    at require () native strict preventsyield
    [...]

Finally, it could be set independently of .fileName to match the resolved module ID:
Error: aiee
    at test/bar2 (my_source.js:2) preventsyield
    at require () native strict preventsyield
    [...]

This could be made user controllable by initializing module.name to the resolved module ID (test/bar2) but allow it to be overridden in modSearch() so that both the function .name and function .fileName appearing in tracebacks would be fully controllable.

Personally, the most reasonable defaults to me would be:

.fileName: the full resolved module ID (like it is now)
function wrapper .name: The final component of the resolved module ID.  e.g. If you have a module foo/bar/baz, the function name would be baz.  That seems the most consistent with the rest of Duktape, e.g. Array.prototype.forEach() shows up in a stack trace as "forEach"

Using the full module ID for .name seems awkward since a function can't normally have slashes in its name (unless you manually change it after definition).

I agree those would be the best defaults. I'll see if I can manage to add scanning of the last component cheaply ;)

Logger default name comes actually from the caller .fileName so that won't default to the last component without some change in that behavior (in a separate pull, if at all).

Ok, so now the default traceback looks like:
Error: aiee
    at foo2 (test/foo2:2) preventsyield
    at require () native strict preventsyield
    at test (tests/ecmascript/test-commonjs-module-filename.js:44)
    at global (tests/ecmascript/test-commonjs-module-filename.js:76) preventsyield

The .name defaults to "foo2". It can be overridden in modSearch via module.name to get e.g.:
Error: aiee
    at my_module (my_source.js:2) preventsyield
    at require () native strict preventsyield
    at test (tests/ecmascript/test-commonjs-module-filename.js:55)
    at global (tests/ecmascript/test-commonjs-module-filename.js:76) preventsyield

Here modSearch() has set module.name = 'my_module' and module.fileName = 'my_source.js'.

@fatcerberus Want to give this branch a spin re: your debugger issue? I might tinker a bit with it still but it should be fully functional now.

Sure, I'll test it out a bit later, I'll have to update my modSearch to support this first.

Looks like it works, using this branch and a matching change to modSearch, my GUI debugger is now able to find the source files for modules.
I noticed a bug which I assume is unrelated to this change, but figured I'd mention it: When calling require() from inside of a module, it shows up as an anonymous function.  Here's an SSJ backtrace to illustrate the issue:
~sys/commonjs/link.js:10 link()
(ssj) bt
   # 0: Abort() <system call>
=> # 1: link() at ~sys/commonjs/link.js:10
   # 2: [anon] <system call>     <-- this is a require() call
   # 3: console() at ~sys/commonjs/miniRT/console.js:12
   # 4: require() <system call>
   # 5: eval() at scripts/main.js:6

I first implemented it by tracking the last slash but there are multiple places where they may be encountered (and I actually managed to introduce a bug in doing so).
But I think it should suffice to set q_last = q at the start of the scanning loop unconditionally: the scanning loop always begins at the first character of a new term (a NUL at the top of the loop is a resolution error). I'll try this out.

That require() thing is related to the fresh require lacking a name; I'll fix that too.

There's actually no footprint difference (at least for x64) between updating q_last in the loop vs. scanning for it explicitly (the scanning compiles to very dense code anyway, and the q_last assigned in the loop doesn't need to be saved past the first duk_push_string()). But I'll leave the current version (= assigning it at the top of the loop) in.

Thanks, the require() issue is fixed and the branch still seems to be working correctly:
uncaught error! - Error: *munch*
    at: ~sys/commonjs/link.js:10
=> # 0: link() at ~sys/commonjs/link.js:10
10 throw new Error("*munch*");
~sys/commonjs/link.js:10 link()
(ssj) bt
=> # 0: link() at ~sys/commonjs/link.js:10
   # 1: require() <system call>
   # 2: console() at ~sys/commonjs/miniRT/console.js:12
   # 3: require() <system call>
   # 4: eval() at scripts/main.js:6

Good to hear :) Added minimal documentation and a separate pull for a Wiki update. I'll re-run the assertion test having touched the last component scanning, and merge in a bit.

It seems this isn't so outlandish after all: Node.js has module.filename (and it's available to the module itself!):
https://nodejs.org/api/modules.html#modules_module_filename

It would probably make sense to use module.filename instead of module.fileName to match Node.js behavior. The casing is inconsistent with other uses of .fileName unfortunately :/


[KYC Match] Hash and some additional parameters

Problem description
To consider Hash and some additinal parameters for KYC Match.
(Spin off from Issue #65, item No.2,  as per Action Item #13.03)
BR

In case we add Fuzzy Name Matching  logic to the specification, this will require to have plain text attributes and no hashing.
As KPN we are in favour of Fuzzy Name Matching logic, so we can better deal with imperfect data on either side.  Hashing can still be used in cases of Attributes that are really sensitive in terms of privacy, but you have to keep in mind that especially with attributes with a low number of characters it is easy to revert the hashing with a rainbow table.


Remove duplicated code in comparison.js

Fix #950.
The extra code added in daa43335099eb5caf19a63025922b4f37f0c4e6d.

Removed in 416afc5a6426175999ee1d8a4a56aaedd6a8f0b4


WIP (FM-7439) Add RSAPI provider for domain_name

Codecov Report

Merging #7 into puppet6 will increase coverage by 0.06%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           puppet6      #7      +/-   ##
==========================================
+ Coverage      0.4%   0.47%   +0.06%
==========================================
  Files          171     172       +1
  Lines        21725   21739      +14
==========================================
+ Hits            89     103      +14
  Misses       21636   21636

Impacted Files
Coverage Δ

lib/puppet/provider/domain_name/nexus.rb
100% <100%> (ø)

Continue to review full report at Codecov.

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

:+1:  except for the hiccup in the unit test.

👍 except for the hiccup in the unit test.

yayyy

There is a tests/beaker_tests/netdev_stdlib/domain_name_provider_defaults.rb and tests/beaker_tests/netdev_stdlib/domain_namelib.rb that could probably be removed as the tests have been updated which should work for both modes.


Addresses test failures when epmd is not running

Addresses #1112

Are you getting a clean run with this, or is it just removing a subset of the errors?

Double checking. I know the test in question passes with epmd running, and doesn't pass with it not running, and I know make test seems to work with this change, but I haven't compared the # of tests run with and without.

Yep, something's off. 296 successes either way, 4 failures on develop. Thanks for pointing this out; do you know what's going on?

Scratch that: I was misreading eunit's output. Derp. 296 tests, not 296 successes. Is there something you specifically were concerned about, @cmeiklejohn?

:+1: 8eb9c1a

@borshop merge


dotnet-watch seems to hide Console.ReadLine input

Consider this program:
using System;

namespace ConsoleApplication
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Console.WriteLine("Enter something.");
            string input =  Console.ReadLine();
            Console.WriteLine($"You said {input}.");
        }
    }
}

If I run this program using dotnet watch run, my input for the Console.ReadLine() command is not visible. Once I hit enter, the program continues as normal and my input AND output are displayed.
Hello World!
Enter something.
I can't see what I'm typing.
You said I can't see what I'm typing..
[DotNetWatcher] info: dotnet exit code: 0
[DotNetWatcher] info: Waiting for a file to change before restarting dotnet...

@victorhurdugaci is this by design somehow?

I've tried to reproduce this but it seems to work fine. I can see the input as I type it. Is this happening on a particular OS or shell?

I can repro this on osx. Happens in Terminal and iTerm, sh and zsh.

This is due to a bug in how dotnet-cli forwards stdout/stdin streams. This was fixed in https://github.com/dotnet/cli/pull/3808, which should be in the next release of dotnet-cli. I tested the problem is resolved in one of the latest nightlies, 1.0.0-preview3-003546.
Closing as the issue is external to dotnet-watch.


Modify True Lux sensors to use "lux" sensor type

Noticed while testing the VCNL4040 that the "light" sensor type has no units. The official SI unit of lux is only displayed for the "lux" sensor type.

This shows the current definition of the VCNL4040 which is declared as the "light" sensor type, and currently shows no units.
@brentru

Context from Loren:

Closing as Wont Fix


change sidebar width and document flow

https://github.com/boxyhq/saas-starter-kit/assets/21326996/9558af28-f2a2-41fb-968e-9c6d3821cdda

Thanks for making this PR. One thing I noticed is that the width of the sidebar is reduced. Can we keep the original width?
Here are the screenshots to compare the two.


[RFR] Be a little less agressive with vendor prefixes

I am not quite sure which browsers you intend to support but I believe it's safe to get rid of -khtml- prefixes as well as -ms- and -moz- prefixes for transitions (especially since the -ms- one has never been used). We could even ditch -o- I believe, but I left it just in case.
Feel free to decline if that does not suit your browser needs.

Related #4

ha good call :P

thanks!


[request] Update k8s.io/* go-dependencies to branch "release-1.11"

I have a controller relying on packages for k8s.io/apimachinery release-1.11, but this controller is also using helm packages, which currently depend on release-1.10. No variant can satisfy both apimachinery and helm, so I seem to have no choice than waiting for helms update to depend on release-1.11.
mycontroller# dep ensure -update -v
...
(29)  ? attempt k8s.io/kubernetes with 12 pkgs; 441 versions to try
(34)      try<EMAIL_ADDRESS>(35)  ✗   k8s.io/kubernetes at v1.11.1 has problem subpkg(s):
(35)    	k8s.io/kubernetes/pkg/kubectl/resource is missing; required by k8s.io/helm@master.
(34)      try<EMAIL_ADDRESS>(35)  ✗   k8s.io/kubernetes at v1.11.0 has problem subpkg(s):
(35)    	k8s.io/kubernetes/pkg/kubectl/resource is missing; required by k8s.io/helm@master.
(34)      try<EMAIL_ADDRESS>(35)  ✗<EMAIL_ADDRESS>depping on k8s.io/apimachinery at release-1.11 has problem subpkg(s):	k8s.io/apimachinery/pkg/apimachinery/announced is missing	k8s.io/apimachinery/pkg/apimachinery/registered is missing
(34)      try<EMAIL_ADDRESS>(35)  ✗<EMAIL_ADDRESS>depping on k8s.io/apimachinery at release-1.11 has problem subpkg(s):	k8s.io/apimachinery/pkg/apimachinery/announced is missing	k8s.io/apimachinery/pkg/apimachinery/registered is missing
(34)      try<EMAIL_ADDRESS>...

I've currently k8s.io/helm as constraint branch=master.

Is there something specific you are asking us to do?
1.11 support has been in the works for a long time, and is not released because of stability/compatibility issues. But we will get a final release done as soon as we can, though.

Thank you. All good, I wasn't sure you are on track for that.


Add version file, update build parameters and other fixes

Signed-off-by: Saad Khan<EMAIL_ADDRESS>

@khansaad Pls fix the conflicts, thanks


How to remove MOCHA?

Hello!
How can I remove Mocha? When I try do it, I have separation the sidebar during opening and closing.

Hi @shartazh!
Why do you want to remove mocha? I don't understand your question.

I want to use the default template without big changes like your example

You could set  min-height property to .slideout-panel:
.slideout-panel {
  min-height:1000px;
}

Thank you! So much!


DEV:LOGS: Update indexType check and switch to use new enumerated values

Epic:
#361
Size:
Small
The DOT team has updated their values for indexType from "Time" and "Depth" to use the schema compliant enumerated values of "date time" and "measured depth".
We need to update the getFromStore query switch for the index type processing to check for the new enumerated value instead of the previous values.

UPDATE: Sukhe closed this 6/12


Feature#374 - Add server side rendering SSR

Update dependencies to fix conflicts
Adapt Starter Component to SSR

Please, keep an eye to next issues:

File server.ts contains hard-coded parameters as ports and others that may cause app not working


Using Search Fields from CLI & API

Context / purpose
Closes https://github.com/quickwit-inc/quickwit/issues/225
Description
Added search fields to rest API and making use of it in the CLI
Checklist
Remove or complete this list if required.

[x] tested locally
[x] updated unit tests

So I tried the custom deserialization Impl but serde_qs keep complaining about duplicate keys even with the flatten attribute
For now, I am using a comma-separated list while searching a way to aggregate the values with same keys.

I'm ok to support only comma separated value and handle the other syntax later.


[BUG] Error message uploading a model incorrectly says model when it means model_group.

What is the bug?
I'm getting this error when uploading a model without specifying a model group:
{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "The name you provided is already being used by another model with ID: DOIXbIoBKue4OlrZ--X-. Please provide a different name"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "The name you provided is already being used by another model with ID: DOIXbIoBKue4OlrZ--X-. Please provide a different name"
  },
  "status": 400
}

This message is incorrect. What is taking up the ID is a model group, not a model.
How can one reproduce the bug?
Steps to reproduce the behavior:

Go to Dev Console and issue this request twice:

POST /_plugins/_ml/models/_upload
{
  "name": "sentence-transformers/all-MiniLM-L12-v2",
  "version": "1.0.1",
  "model_format": "TORCH_SCRIPT",
  "model_content_hash_value": "f8012a4e6b5da1f556221a12160d080157039f077ab85a5f6b467a47247aad49",
    "model_config": {
		"model_type": "bert",
		"embedding_dimension": 384,
		"framework_type": "huggingface_transformers",
		"pooling_mode": "MEAN",
		"normalize_result": true,
		"all_config": "{\"_name_or_path\":\"microsoft/MiniLM-L12-H384-uncased\",\"attention_probs_dropout_prob\":0.1,\"gradient_checkpointing\":false,\"hidden_act\":\"gelu\",\"hidden_dropout_prob\":0.1,\"hidden_size\":384,\"initializer_range\":0.02,\"intermediate_size\":1536,\"layer_norm_eps\":1e-12,\"max_position_embeddings\":512,\"model_type\":\"bert\",\"num_attention_heads\":12,\"num_hidden_layers\":12,\"pad_token_id\":0,\"position_embedding_type\":\"absolute\",\"transformers_version\":\"4.8.2\",\"type_vocab_size\":2,\"use_cache\":true,\"vocab_size\":30522}"
	},
  "url": "https://artifacts.opensearch.org/models/ml-models/huggingface/sentence-transformers/all-MiniLM-L12-v2/1.0.1/torch_script/sentence-transformers_all-MiniLM-L12-v2-1.0.1-torch_script.zip"
}

Consider the error message that returns, and then use the _search api to confirm that its a model group and not a model.
What is the expected behavior?
The error message should correctly identify the existing resource as a model group, not a model.

Thanks for reporting this issue. @rbhavna can you help tune to error message?

Thanks @nateynateynate Will fix the error message here

Hey I took my best shot at adjusting that error message, but I don't think I ahve the tools or environment to test the build or know anything about it. Can someone do me the honors so I can say that I contributed to the ml-commons plugin?

@nateynateynate sure, thanks a lot for your contribution. The PR #1294 looks good.

Thanks for the opportunity to help!


Cells being assigned multiple times to agents

Agents are scanning cells multiple times in the simulation. All cells should be visited once only. Likely problem with taskAssignment function.

Duplicate cells assigned close to each other - appears to be recorded twice in a row for an agent.

Ran simulation without MPC - 710/400 cells scanned - 310 repeats
Ran simulation with MPC active -  586/400 cells scanned - 186 repeats
Performance improvements by optimisation achieved by scanning cells fewer times, even though travel times are longer.

Bug fixed


question about habitat_sim.utils.datasets_download

I try to download dataset using following command:
python -m habitat_sim.utils.datasets_download --uids replica_cad_dataset
it seems that this command relys on git-lfs. So I follow the instruction to install
sudo apt install git-lfs and git lfs install
However when I try to download the dataset again, it returns error:
Error: unknown shorthand flag: 'f' in -f
git lfs prune [options]
Could anyone else encounter similar problem? Thanks a lot!

@aclegg3 it works! Thank you very much !!


Update README.md

Classes bgzip.Reader and bgzip.Writer do not exist, changed them to BGZipReader and BGZipWriter, respectively.

Codecov Report

Merging #22 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #22   +/-   ##
=======================================
  Coverage   87.97%   87.97%
=======================================
  Files           1        1
  Lines         183      183
=======================================
  Hits          161      161
  Misses         22       22

Continue to review full report at Codecov.

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

Thanks for your contribution!


[WIP] Add text messaging screens

Related Issue or Background Info
Resolves #862
TODO

[x] Conditionally show phone number when text option is selected - change to radio btn component
[x] Show the success alert after a person submits
[x] Change button text to "Continue" after the text is sent
[ ] Add modal snapshot

Additional Information

TODO in a following PR:
After the button is clicked, the button will change to disabled, and then when we receive the sent notification from Twilio, change to the "Continue" message and re-enabled.

Screenshots / Demos

Re: loading state after clicking the button:
After talking to the designers, we'd like to start with doing nothing. We may revisit after this is implemented. @nullflux

This is ready for design review @hmyers-cms @katiealoisi (see screenshots)

Looks like it needs Modal.setAppElement(el) in the AoEModalForm test.

@dmethvin-gov thanks, could you point to the line where we need that? In case it wasn't obvious, in addition to my newness with React, this is also the first snapshot I've ever made 😄


Update to Cadence v1.0.0-M8

Description
Automatically update to:

onflow/cadence v1.0.0-M8
onflow/flow-go-sdk v1.0.0-M5
onflow/flow-go 3677206d445c

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

Project coverage is 53.68%. Comparing base (1d4f5d9) to head (1a6716b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #578   +/-   ##
=======================================
  Coverage   53.68%   53.68%
=======================================
  Files          31       31
  Lines        3962     3962
=======================================
  Hits         2127     2127
  Misses       1672     1672
  Partials      163      163

Flag
Coverage Δ

unittests
53.68% <ø> (ø)

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

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


Add floor to top collections on landing

Missing Floor on Basilisk currently.

Missing Floor on Basilisk currently.

related with kodadot/snek#116
This is not really the floor price that is displaying on TopCollection component

Currently floorPrice get NULL when chain is Basilisk.
query seriesInsightList(
  $limit: Int
  $orderBy: SeriesOrderByInput!
  $where: SeriesWhereInput
) {
  collectionEntities: series(
    limit: $limit
    orderBy: [$orderBy]
    where: $where
  ) {
    id
    **floorPrice**
    averagePrice
    image
    metadata
    sold
    name
    total
    buys
    unique
    uniqueCollectors
    volume
  }
}

Here is screenshot when chain is Basilisk

Here is screenshot when chain is RMRK

I'm not familiar with graphQL, so where can I calculate and get floorPrice?

I'm not familiar with graphQL,
It's easy! :)

so where can I re-calculate and get floorPrice?

Rubick is for RMRK - https://github.com/kodadot/rubick
Snek is for Basilisk - https://github.com/kodadot/snek

I'm not familiar with graphQL, so where can I re-calculate and get floorPrice?

hey have you managed to progress with this one? :)


Change of error

Change of error #8
Added red background with error wriiten with white foreground. Removed the text "----------|| BUCKSHOT++ ||----------".

Can you post a picture of the result?

Hey, the error will now be shown against red console background like shown below.

Closes: #8

Thanks <3


What is gmail.dom.inbox_content()?

There doesn't seem to be any documentation for it. I'm wanting to parse each email thread in the inbox.

From what I can tell (by sheer inspection) is that it returns the list-view of the email inbox.
It's listed in the README as an available function, but sadly not all functions are 100% documented.

I'm wanting to parse each email thread in the inbox.

If so, it might be more apt to create an event for when GmailJS itself has parsed each email's content (as they are preloaded by Gmail itself).
We could do this by triggering an event from api.tools.cache_email_data(). Would that work for you?
Please note: There's no guarantee about the rate of emails being preloaded, nor that only the ones in the current view are being preloaded.

Oh. We already have an event for that! "load_email_data".
Please try that one:
gmail.observe.after("load_email_data", emails => console.log("EMAILS:", emails));

@josteink Awesome, thanks! I'll give load_email_data a go.


Add more glossary terms

This is a...

[x] Feature Request
[ ] Bug Report

Problem:
Now that the revamped Glossary has been launched, we need to add more terms to the list.
Proposed Solution:
At the K8s Doc Sprint @ Kubecon 2017, have participants add terms that are missing. His is the original glossary list from v1.5 Reference ToC:

[ ] Aggregation Layer
[ ] Annotation (@spzala)
[ ] Certificate
[ ] Cloud Controller Manager (CCM)
[ ] Cloud Provider
[ ] ConfigMap (@zachpuck )
[ ] Container Environment Variable
[ ] Container Lifecycle Hook
[ ] Controller Manager
[x] Cron Job
[x] Custom Resource Definition (formerly Third Party Resource) (Cheryl)
[ ] DaemonSet (Brad)
[x] Deployment
[ ] Device Plugin
[ ] Disruption
[ ] docker
[ ] Dynamic Volume Provisioning
[x] Etcd (Tina)
[ ] Extension
[ ] Federation
[ ] Garbage Collection
[x] Horizontal Pod Autoscaling (@zhangxiaoyu-zidif)
[ ] HostAliases
[x] Image (Chris)
[x] Ingress Resource
[ ] Init Container
[x] Job (Ryan)
[ ] kube-proxy
[ ] kubelet (@spzala)
[ ] Label
[ ] Logging
[ ] Name
[x] Namespace
[ ] Network Plugin
[x] Network Policy (Radhika)
[x] Node
[x] Persistent Volume (Tina)
[x] Pod
[ ] Pod Disruption Budget
[ ] Pod Lifecycle
[ ] Pod Preset
[ ] Pod Priority
[x] Pod Security Policy (Radhika)
[ ] Preemption
[ ] Proxy
[x] Replica Set (Ivange)
[ ] Replication Controller (Chris)
[ ] Resource Quota (@radhikapc)
[ ] rkt
[x] Secret
[x] Security Context (@erwbgy)
[ ] Selector
[x] Service
[x] Service Account (@radhikapc)
[x] Stateful Set (formerly Pet Set)
[ ] Storage Class
[ ] supervisord
[ ] Sysctls
[ ] Taint
[ ] Toleration
[x] Volume (Jared)
[x] fluentd (@radhikapc)

Page to Update:
Add YAML files to /_data/glossary/ directory using the format outline in /_data/glossary/_example.yml. They should then automatically show up in
https://kubernetes.io/docs/reference/glossary/?all=true
For example, /_data/glossary/cluster.yaml has this:
id: cluster
name: Cluster
tags:
- fundamental
- operation
short-description: >
  A set of machines, called nodes, that run containerized applications managed by Kubernetes.
long-description: >
  A cluster has several worker nodes and at least one master node.

A glossary definition can refer to other glossary terms. Here's /_data/glossary/deployment.yaml. The definition of Deployment uses {% glossary_tooltip %} to refer to the definition of Pod:
id: deployment
name: Deployment
full-link: /docs/concepts/workloads/controllers/deployment/
tags:
- fundamental
- core-object
- workload
short-description: >
  An API object that manages a replicated application.
long-description: >
  Each replica is represented by a {% glossary_tooltip term_id="pod" %}, and the Pods are distributed among the nodes of a cluster.

Kubernetes Version: v1.8

Third Party Resource has been deprecated. Custom Resource Definition now replaces it. https://kubernetes.io/docs/tasks/access-kubernetes-api/extend-api-third-party-resource/

I just added:

[ ] Aggregation Layer
[ ] Certificate
[ ] Cloud Controller Manager (CCM)
[ ] Cloud Provider
[ ] Container Environment Variable
[ ] Container Lifecycle Hook
[ ] Controller Manager
[ ] Custom Resource Definition
[ ] Device Plugin
[ ] Disruption
[ ] Dynamic Volume Provisioning
[ ] Extension
[ ] Federation
[ ] Garbage Collection
[ ] HostAliases
[ ] Init Container
[ ] Label
[ ] Logging
[ ] Network Plugin
[ ] Pod Disruption Budget
[ ] Pod Lifecycle
[ ] Pod Preset
[ ] Pod Priority
[ ] Preemption
[ ] Proxy
[ ] Selector
[ ] Storage Class
[ ] Sysctls
[ ] Taint
[ ] Toleration
[x] Etcd

It would be nice to have a glossary for Custom Resources as well. Most users who search for CRDs would want to search for Custom Resources as well.

It would be nice to add Volume Plugin to the list.

Label appears to already be added to the glossary -https://github.com/kubernetes/website/blob/2999938d81c87068fe333b9f69e10f551e70ae90/_data/glossary/labels.yaml#L1

/remove-lifecycle rotten
still some terms left

@chenopis would the help wanted label suit here? this also looks like something new contributors could tackle! :) good first issue might be nice as well.

@nikhita Yes, for sure. The glossary is probably the easiest thing to contribute to, especially for new contributors. =)

/remove-lifecycle stale

/remove-lifecycle stale
On Tue, Dec 18, 2018 at 12:05 PM fejta-bot<EMAIL_ADDRESS>wrote:

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually
close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta
https://github.com/fejta.
/lifecycle stale
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/website/issues/5993#issuecomment-448112733,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APXA0PR5fyBtIyKv-2LGuZSalp8KrIlwks5u6IytgaJpZM4QBQyb
.

I was working on Federation and then ran into some questions. Federation has a similar architecture to the cluster architecture, in that it uses the Federation API and a controller manager to manage clusters opposed to nodes. Would it be worth while to include Federation API and Federation Controller Manger into the glossary separately?

In addition, I was looking at proxy. But in the kubernetes documentation here: https://kubernetes.io/docs/concepts/cluster-administration/proxies/ there are 5 proxies listed. So would it be beneficial to list them separately, or bullet them under the proxy definition?

/language en

I suggest: update the issue description with a new list that clearly shows what terms are missing.
(If it helps, I can draw up the list and then someone with edit access can paste it in).

Is it OK to skip terms for:

Federation (deprecated)
supervisord (not relevant to v1.15 cluster operators)

?

If the above 3 PRs get merged, I think it'd be OK to close this issue as implemented.

/priority backlog
because most of the work is done

/status active

All remaining work (that is listed) is already started
/remove-good-first-issue

Also see #19535

@chenopsis is this OK to /close?

Related: #24528 Add object to glossary


Can we detect beacon without knowing it's UUID ?

Can we detect nearby beacons without knowing it's UUID /Major/minor/identifier  ?

Will check! Thanks

@willdages Major/Minor are not optional
As per apple documentation -

When detecting an iBeacon, you must specify the proximityUUID, major, and minor values that you programmed into the beacon hardware.
https://developer.apple.com/documentation/corelocation/clbeaconregion

Right
https://developer.apple.com/documentation/corelocation/determining_the_proximity_to_an_ibeacon


Removed PHP close tags

PHP coding standard for Phabricator provides "Use "" tag.".

Thanks! I'm wondering why I haven't got any warnings from std phabricator linter in this case.

I'm not sure, maybe add "standard": "phutil.xhpast" to xhpast block in .arclint to specify the code style standard to use.


nmigen-yosys versions are internally inconsistent

For annoying reasons, the setuptools_scm version of nmigen-yosys does not match the Yosys node version:
 nMigen Yosys 0.9+3527 (PyPI ver 0.9.post4831.dev23, git sha1 a0177569)

We detect features based on the Yosys node version. There is some code that parses the setuptools_scm version in _toolchain.yosys, and it is broken with the currently published nmigen-yosys packages because the versions don't match.
The reason this code parses the Python package version rather than the -V output version is wasmtime's startup latency: I did run python3 -m nmigen-yosys -V at one point, but the performance hit felt unacceptable.
I think the only reasonable way to handle this is to stop using setuptools_scm to get Yosys version and just shell out to git. We must do this before shipping the next release, since our backends already require recent node versions.

Done and verified on CI.
Since the Yosys node vesion is less than the setuptools_scm version, I had to go and (manually...) delete every nmigen-yosys package ever released. Why delete and not yank? Because of this pip issue.


Feature_Request after click on book now on start.html page checkout need to be aligned

Is your feature request related to a problem? Please describe.
Request after click on book now on start html page checkout need to be aligned
Describe the solution you'd like

Describe alternatives you've considered

Demo Video/Screenshot (Mandatory )

Are you contributing under any open-source program ?
Gsoc 24

Hello @apu52 please assign this issue to me under gssoc 24

I want to work on this project.Please assign this issue to me.        under gssoc24

@kapilG0 you are assigned . you can start working

@kapilG0 you are assigned . you can start working

Hello @apu52 i have raised pr https://github.com/apu52/Travel_Website/pull/631 for this issue please check


Add sparse binding support

Changelog:
### Breaking changes
Changes to images:
- `ImageMemory::Sparse` no longer has a field for memory requirements, this is now queried directly from the image.

### Additions
- Support for sparse binding.

This is ready for review now.


The box mark could use bin/rect instead of group/bar for quantitative data

As an approximation:
Plot.plot({
  marks: [
    Plot.ruleX(data, Plot.binX({y1: loqr1, y2: hiqr2}, {x, y})),
    Plot.rectY(data, Plot.binX({y1: "p25", y2: "p75"}, {x, y, fill: "#ccc"})),
    Plot.ruleY(data, Plot.binX({y: "p50"}, {x, y, strokeWidth: 2})),
    Plot.dot(data, Plot.map({y: oqr}, {x, y, z: ???}))
  ]
})

I couldn’t figure out how to compute the per-bin outliers, though. Maybe we need a Plot.binmapX transform where z can be imputed by binning x? Or maybe there’s a way to compose the bin and map transform? 🤔
Ref. https://talk.observablehq.com/t/how-to-label-a-boxplot-with-dates-format-axis/7739/3

I feel this could be addressed at a higher abstraction level (#1336)?

I think we could use exactly the same technique we use in Plot.auto, then have the box mark chose dynamically between bin+rect and group+bar.

This is the test example in http://localhost:8008/?test=aaplMonthly (minus the outliers)

Here’s an example workaround:

Plot.plot({
  y: {
    grid: true,
    label: "↑ Price"
  },
  x: {
    interval: 0.5,
    label: "Carats →",
    labelAnchor: "right",
    tickFormat: (x) => x.toFixed(1)
  },
  marks: [
    Plot.ruleY([0]),
    Plot.boxY(diamonds, {x: (d) => Math.floor(d.carat * 2) / 2, y: "price"})
  ]
})


UIWebView Deprecation warning by Apple

Thanks for the wonderful plugin.
Please refer below. According to apple, When the app contains a reference to UIWebView, they won't allow permission into AppStore. I have found out phonegap-nfc has a reference to UIWebView. Please advise, what to do to fix this issue?

If your app still embeds web content using the deprecated UIWebView API, we strongly encourage you to update to WKWebView as soon as possible for improved security and reliability. WKWebView ensures that compromised web content doesn’t affect the rest of an app by limiting web processing to the app’s web view. And it’s supported in iOS and macOS, and by Mac Catalyst.

The App Store will no longer accept new apps using UIWebView as of April 2020 and app updates using UIWebView as of December 2020.

(https://developer.apple.com/news/?id=12232019b)

This plugin supports WKWebView.

@JoshuvaGeorge03 your app got rejected because of this?  It's a conditional reference that can probably be removed like @tzeroem suggests.

@don Could you please advise how to use WKWebView in PhoneGap-NFC?

@tzeroem Could you please say how to remove UIWebView instance from NfcPlugin.m? Please advice.

@JoshuvaGeorge03 newer versions of Cordova/PhoneGap should use WKWebView
The ObjectiveC code in the plugin needs to execute some Javascript in the UI. This code checks to see if your app is using UIWebView or WKWebView and calls the function on the correct one.
https://github.com/chariotsolutions/phonegap-nfc/blob/df3afc165d5546bccbedca66ec1496bd04b36e6d/src/ios/NfcPlugin.m#L117-L122
I don't want to remove that code immediately because it will break older apps. If your app was rejected by Apple because of this UIWebView let me know and I'll bump up the priority on this fix.

@don I have got a warning message from apple for now.  But it should be done for every app I think. Because apple will stop accepting apps with UIWebView reference from December 2020.
Please check this link for more info
https://developer.apple.com/news/?id=12232019b

@JoshuvaGeorge03 this is just a warning. Ignore it for now. The next release will fix it.

@don Thanks, keenly waiting for that

PR #399 removed UIWebView. Changes published in phonegap-nfc-1.1.0.


Performance on large datasets

How does buntdb perform on data too large to fit into ram?  would i have good performance with a dataset of over 5gb (mongodb dump), on a 500mb or 1gig ram server?
I'm currently evaluating buntdb over boltdb. As replacement for a system that currently runs on mongodb. I intend to use bleve search as well for indexing and search.  Can I query with an array of keys? or get each key from the array individually?

Hi Tony,

How does buntdb perform on data too large to fit into ram? would i have good performance with a dataset of over 5gb (mongodb dump), on a 500mb or 1gig ram server?

Assuming that the server has virtual memory, it'll start paging to disk when the all the ram is used up. This could cause the Go app to run very slowly,  between 10-100x slower that reading directly from ram, depending on disk speed. If the server is not using virtual memory then the Go program will panic with an out of memory error.
I don't recommend that you do this. If memory is an issue then use an on-disk database like BoltDB or leveldb. For BuntDB you should have 1/4 more memory on the server than the working in-memory dataset to be safe. I suggest loading the data into a test buntdb program and see how much mem it uses.

Can I query with an array of keys? or get each key from the array individually?

You'll need to query each key individually.

Thanks Josh. You helped me clear my mind about what to use. And when buntdb is a good choice.

You're welcome and best luck.


Please provide ARM and ARM64 binaries

Get a Pi4 :) and provide arm / arm64 binaries.
Also for Docker that would make sense.

Thanks, @egandro
ARM is supported but it didn't have a lot of demand. I am leaving this issue open for a while to see if it gets some upvoting, otherwise, I will be closing it as every option we add is more maintenance.

@alombarte same here. It's getting momentum to at last evaluate arm and arm64. I am willing to help with the coding - but you guys need to buy maybe 2 PI4s for arm and arm64 or use qemu.

I think now with the new apple systems using ARM CPUs as well as Amazon announcing some of there services to use it this should be looked at again.

@fkrauthan You can install Krakend using brew on Mac.
brew install krakend and you'll get a Mac binary.

Yeah but we are running everything (including kraken). So we build our own image and install kraken through the debian repository which only publishes amd64 binaries and no arch.

We have requirements to have always the most up to date of a OS running under our Docker images and that's why we build the images ourselves. Regardless, looking in docker HUB I don't see an amr64 image for KrakenD. Would it be possible to start publishing those arm64 images?


fix typo in Gradle Kotlin DSL script filename extension

Why:

Fixes #2259
What's being changed:

Fix typo in Gradle Kotlin DSL script filename extension, (.tks -> .kts)

Check off the following:

[ ] All of the tests are passing.
[ ] I have reviewed my changes in staging. (look for the deploy-to-heroku link in your pull request, then click View deployment)
[x] For content changes, I have reviewed the localization checklist
[x] For content changes, I have reviewed the Content style guide for GitHub Docs.

Thanks @HonkingGoose! I'll get this triaged for review ✨

@runleonarun Thanks for the compliment! 😄


API is not responding as expected when creating / editing google-gke-example kontainer-driver

Version: Master 2.2 (3/4/19)
HA setup and Single-node rancher install
What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):

Add a custom cluster driver with latest https://github.com/rancher/kontainer-engine-driver-example/releases (and UI https://github.com/rancher/ui-cluster-driver-skel/tree/google-gke-example)
Create a simple cluster using defaults and inspect the request payload and server response
Do this again when editing

Result:
When you create the cluster the UI sends empty arrays for taints, labels, resourceLabels, and locations. When the server responds these are null. In the rancher server logs you will see:
[rancher-6767c849fc-bmn7j] time="2019-03-04T22:08:13Z" level=info msg="gke driver 2 up and running on at <IP_ADDRESS>:10844"
[rancher-6767c849fc-bmn7j] 2019/03/04 22:08:18 [INFO] kontainerdriver kd-ldbsw listening on address <IP_ADDRESS>:10844
[rancher-6767c849fc-bmn7j] 2019/03/04 22:08:18 [WARNING] could not convert <nil> taints=<nil>
[rancher-6767c849fc-bmn7j] 2019/03/04 22:08:18 [WARNING] could not convert <nil> resourceLabels=<nil>
[rancher-6767c849fc-bmn7j] 2019/03/04 22:08:18 [WARNING] could not convert <nil> locations=<nil>
[rancher-6767c849fc-bmn7j] 2019/03/04 22:08:18 [WARNING] could not convert <nil> labels=<nil>
[rancher-6767c849fc-bmn7j] 2019/03/04 22:08:18 [INFO] kontainerdriver kd-ldbsw stopped

When you edit the cluster it will fail because these are not nullable in the driver.
When you inspect /v3/schemas/exampleEngineConfig the fields are not set with non-nullable so the UI is not expected to error out. (Thank you Wes for finding this information in https://github.com/rancher/rancher/issues/18406#issuecomment-469424676)

I believe this is an API issue, however if I have made a mistake please let me know. I am happy to edit the issue description/title. I am not certain the best person to assign this to.


svi and l2vlan keys to check and tested as int

Change Summary

With this change we can use both strings and integer under l2vlan and svi and do the checks correctly.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes)
[ ] Documentation content changes
[ ] Other (please describe):

Related Issue(s)

Component(s) name
eos_l3ls_evpn
Proposed changes

Anything matching svi or l2vlan under any if condition will have | int
svi | int in leaf.svi
l2vlan | int in leaf.l2vlans
How to test

Tested in venv and created molecule test case, validated both before and after.
Checklist:

[x] I have read the CONTRIBUTING document.
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed (pre-commit, make linting and make sanity-lint).
[x] I have updated molecule CI testing accordingly

cherry-picked to pre-release branch: https://github.com/titom73/ansible-avd/tree/release-v1.1.3-preparation

cherry-picked to pre-release branch: https://github.com/titom73/ansible-avd/tree/release-v1.1.3-preparation


crow-translate: 2.8.7 → 2.9.1

Motivation for this change
Changelog
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Some icons are missing (on xfce):

I tried adding breeze-icons to buildInputs but it did not help.
As this is not a regression due to the upgrade I'm still merging, though.

Upstream issue: https://github.com/crow-translate/crow-translate/issues/330


Quality prediction on T1w images failing with Python 3.6

Hi,
I'm running into an error when I start MRIQC with two sessions "T1w".
Before that the "func" run successfully through the pipeline and derivatives and reports were generated fine. MRIQC also works fine for T1w with only 1 session and both "func" and "T1w".
For all analyses I've used MRIQC 0.9.1 on ubuntu16.04
Do you have any idea how to fix this?
Please, find attached a copy of the terminal output.
MRIQC_T1w_multiple_sessions.txt
Best,
Vivian

Thanks for reporting this, we'll look into this.

@vsteiger, I'm confirming your error. However it is unrelated to the multiple session feature of your dataset. It is related to the quality prediction we added in the last revision.
Will look at this ASAP.

@oesteban, thank you very much for having a look into this

Hi guys, I've tested the T1w data with MRIQC 0.9.2 again. Error messages still indicating an issue with the classifier in combination with T1w at time stamp (2017-04-17 09:18:32,053 workflow:ERROR in the attached log file).
MRIQC_T1w_log.txt

2017-04-17 10:04:42,425 workflow:INFO Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/plugins/multiproc.py", line 52, in run_node
    result['result'] = node.run(updatehash=updatehash)
  File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 366, in run
    self._run_interface()
  File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 476, in _run_interface
    self._result = self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 607, in _run_command
    result = self._interface.run()
  File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/interfaces/base.py", line 1085, in run
    runtime = self._run_wrapper(runtime)
  File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/interfaces/base.py", line 1033, in _run_wrapper
    runtime = self._run_interface(runtime)
  File "/usr/local/miniconda/lib/python3.6/site-packages/mriqc/interfaces/bids.py", line 189, in _run_interface
    id_dict['mriqc_pred'] = int(cvhelper.predict(np.array([features]))[0])
  File "/usr/local/miniconda/lib/python3.6/site-packages/mriqc/classifier/cv.py", line 363, in predict
    return self.estimator.predict(datapoints).astype(int)
  File "/usr/local/miniconda/lib/python3.6/site-packages/sklearn/utils/metaestimators.py", line 54, in <lambda>
    out = lambda *args, **kwargs: self.fn(obj, *args, **kwargs)
  File "/usr/local/miniconda/lib/python3.6/site-packages/sklearn/model_selection/_search.py", line 448, in predict
    return self.best_estimator_.predict(X)
  File "/usr/local/miniconda/lib/python3.6/site-packages/sklearn/ensemble/forest.py", line 534, in predict
    proba = self.predict_proba(X)
  File "/usr/local/miniconda/lib/python3.6/site-packages/sklearn/ensemble/forest.py", line 573, in predict_proba
    X = self._validate_X_predict(X)
  File "/usr/local/miniconda/lib/python3.6/site-packages/sklearn/ensemble/forest.py", line 355, in _validate_X_predict
    return self.estimators_[0]._validate_X_predict(X, check_input=True)
  File "/usr/local/miniconda/lib/python3.6/site-packages/sklearn/tree/tree.py", line 365, in _validate_X_predict
    X = check_array(X, dtype=DTYPE, accept_sparse="csr")
  File "/usr/local/miniconda/lib/python3.6/site-packages/sklearn/utils/validation.py", line 407, in check_array
    _assert_all_finite(array)
  File "/usr/local/miniconda/lib/python3.6/site-packages/sklearn/utils/validation.py", line 58, in _assert_all_finite
    " or a value too large for %r." % X.dtype)
ValueError: Input contains NaN, infinity or a value too large for dtype('float32').
Interface IQMFileSink failed to run.

Since 0.9.4 MRIQC stopped supporting Python 2. However, before 0.9.6 we will not start supporting the classifier (it will be fully Python 3).
Regarding this error in the IQMFileSink, I'll add the problem to #377.
I'll close this one now. Feel free to open new issues if 0.9.6 does not work for you (when we release it in a couple of weeks).


Copying a role does not work

Copying a role to another so you can modify it does not work.
You get a Password and UserID can't be blank error.

Adding from scratch gives the same error

I couldn't replicate the error downstream.
I was using the docker image

@miq-bot add_label   bug

@sergio-ocon this now works in master.  Please retest and reopen if needed.  Thx, Dan


repl: Automatically call toString in BigNumber results

Similar to how promises are waited, bignumbers should automatically call the toString method.

This should also be used in eth decode:
$ eth decode 'transfer(address,uint256)' '0xa9059cbb000000000000000000000000697dB915674bAc602F4d6fAfA31c0e45f386416E00000000000000000000000000000000000000000000000000000004ff043b9e'
[
  "0x697dB915674bAc602F4d6fAfA31c0e45f386416E",
  {
    "_hex": "0x04ff043b9e"
  }
]

Closed by some PR whose number I'm too lazy to look up.


top menu always shown (fix for small screens)

This fix allows to show the fixed menu on small screens

fixes #143


UWP OAuth2Authenticator AuthenticatorPage push

With Alpha 13 following the Xamarin.Forms sample, I've deleted Platform PageRenderer and use:
Navigation.PushAsync                     (                         new Xamarin.Auth.XamarinForms.AuthenticatorPage()                         {                             Authenticator = authenticator,                         }                     );
On Android OAuth login page was pushed, on UWP nothing happen and no exception.
Something missing in XForms UWP sample code?

@fileman
Yes. Exceptions deep deep in the code. Unfortunatelly I cannot use project references, because I get "Payload contains two or more files with the same path..." for all Windows projects. And they have the same name because of nuget bait-n-switch.
Xamarin.Android and Xamarin.iOS are OK. So I need to publish nuget locally, remove refs, add again.
And you can imagine how fast this is.
I filed a bug on VS side:
https://developercommunity.visualstudio.com/content/problem/53431/error-when-using-project-references-for-libraries.html
Try this sample I fixed it to work with 13, but needs more for sure

Following this sample UWP is ok, but Android seem broken.

@fileman
Can you provide more info on "Android seem broken"?

I've open another issue (and closed), but forgot to link #178


Add recommended accept header to all requests to Github

At the end, we kept all headers with Accept: 'application/json as before because we had problems by setting the to the recommended value by the Github API documentation.


[Help Wanted][UTF-8 Enconding and decoding] Problems to get portuguese text in my first bot

Hey Everyone, I am doing my first chatbot using ChatterBot, in portuguese from Brazil and I am facing some problems with python 3.
this is my code:
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer

def main():
    chatbot = ChatBot('Ron Obvious')
    # Create a new trainer for the chatbot
    trainer = ChatterBotCorpusTrainer(chatbot)

    # Train the chatbot based on the english corpus
    trainer.train("chatterbot.corpus.portuguese")

    user_text = ""
    while(user_text != "sair"):
        user_text = input("Voce: ")
        response = chatbot.get_response(user_text).text.encode('utf-8')
        print(response)

if __name__ == "__main__":
    main()

But instead of of printing como vai você? it prints b'Como vai voc\xc3\xaa?'
Also if I send a text like "Como você está?" it breaks the code with this error:
 File "/Users/OtacilioN/.pyenv/versions/3.6.3/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 536, in do_execute
    cursor.execute(statement, parameters)
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 7-8: surrogates not allowed

Just add a decode method on printed string 💃

thanks @renidantass


Type annotations

Hi 👋 great library. Is there any existing work to add type annotations to pymoo? If not I'd be happy to contribute. Perhaps just starting with core and iterating on the rest of the library?

Happy to look at a PR. Probably good to split it up into multiple.
You might even be able to use an LLM to do it for some files rather quickly (but would need to be checked carefully)
And yes when starting the framework I have not used any type annotations which is very tempting in Python as well.


safe_int never returns an integer '0'

Discovered this silly bug while troubleshooting the other issue.
In [6]: m.sms_list()
Out[6]:
[['0', 'REC READ', 999222, '', '12/05/10,10:05:41+08'],  <-- '0' string
 [1, 'REC READ', 9996248, '', '12/05/10,09:50:51+08'],
 [2, 'REC READ', 9996248, '', '12/05/10,10:18:44+08'],
 [3, 'REC READ', 9996248, '', '12/05/10,10:24:53+08'],
 [4, 'REC READ', 9996248, '', '12/05/19,12:38:57+08'],
 [5, 'REC READ', 999222, '', '12/05/19,15:05:25+08'],
 [6, 'REC READ', 9996248, '', '12/05/20,12:51:05+08'],
 [7, 'REC READ', 999222, '', '12/05/20,14:15:10+08'],
 [8, 'REC READ', 9996248, '', '12/05/20,17:55:00+08'],
 [9, 'REC READ', 9996248, '', '12/05/21,01:54:36+08']]

In [7]:

This whole safe_int was a pretty bad idea in the first place. It should get killed.

I don't disagree, but wouldn't it be easier to just add on top if x=='0': return 0. I don't have a better idea.

Master has my fix, closing this for now.


Simplified color naming for accessibility

Closes #5792, closes #4110, closes #4111.
This implements an alternative color naming strategy to the one proposed in #5792 (and #1732 before that). The previous proposal used fairly complex color names that I'm not sure would be understandable for everyone, or easily translated to different languages. For example, I'm not sure I would know the difference between "Arctic Blue", "Cornflower Blue", "Cobalt Blue", or "Persian Blue" without looking at them. These names also resulted in the need for over 250 new strings that would need to be translated into different languages, and increase the bundle size.
This proposal uses a simplified strategy that requires only 26 additional strings, in various combinations. This includes 13 main hues (pink, red, orange, brown, yellow, green, cyan, blue, purple, magenta, gray, white, and black), along with the halfway points between them (e.g. red orange, yellow green, and blue purple), combined with modifiers for lightness (very dark, dark, light, and very light), and chroma (pale, grayish, and vibrant). These combine together to form a description for any color. In addition to reducing the number of strings we need, these descriptions are also simpler, more universally understood, and more easily translated to other languages. This proposal is inspired by how the native iOS color picker works in VoiceOver.
The algorithm used to generate the description works in the OKLCH color space, recently standardized by CSS. This color space has the advantage of having uniform lightness across all hues, unlike HSL/HSV for which some hues such as blue are much darker than others. As shown below, you can see the difference between HSL and OKLCH.

It also avoids a shift in hue based on lightness, as can be seen in HSL for blue (which shifts toward purple).

These properties mean we can produce a perceptually accurate description for any color. The algorithm first converts the color to OKLCH, and uses the manually picked thresholds along the l, c, and h channels to produce descriptions for the hue, lightness, and chroma. If a color is partially transparent, that is also prepended (I used percent transparent rather than percent opaque here because I thought it seemed more easily understandable).
In order to localize these color names, the strings for each channel are externalized, and a "colorName" string combines them together. For example in English, the string is "{transparency} {lightness} {chroma} {hue}", but in other languages, the words may be in a different order. In French, I believe the hue would come first, followed by the lightness and chroma, and in Chinese there would be no spaces between the words. The halfway points between hues (e.g. yellow orange) are also included as separate strings rather than combining the individual hues because I believe in some languages there are single words for these colors rather than combining the two words like in English. We will need to somehow explain the way this works to translators so they can accurately produce strings in each language.
To easily test, I've added the color name to the stories for ColorArea, ColorSlider, and ColorWheel, but they should also be read by screen readers.

@devongovett Curious why pure yellow #ffff00 returns the string "very light vibrant yellow green."


a multi-scan pretrained model?

I find it has 'semantic-kitti-multiscan.yaml' in your repository,  do you have a multi-scan pretrained model?  If I want to train multi-scan data, what should I do?
Thanks.

I have provided the data processing of mulit-scan point cloud segmentation (for SemanticKITTI); You can check this comment https://github.com/xinge008/Cylinder3D/commit/7df59464c9b1828f9f97084997b3d47beda612cd

Thank you so much!
One more question, if I want to get the IOU result of multi-scan in your paper, do I need to adjust any parameters in 'semantickitti.yaml'?
The hyperparameters in 'semantickitti.yaml' are as follows:
_output_shape:
- 480
- 360
- 32
fea_dim: 9
out_fea_dim: 256
num_class: 20
num_input_features: 16
use_norm: True
init_size: 32
max_volume_space:
- 50
- 3.1415926
- 2
min_volume_space:
- 0
- -3.1415926
- -4_

They share same hyper-parameters, except the num_class;


mqttv5 client cannot receive ResponseTopic,CorrelationData

MqttV500DataConverter.cs
public MqttApplicationMessage CreateApplicationMessage(MqttPublishPacket publishPacket)
{
return new MqttApplicationMessage
{
Topic = publishPacket.Topic,
Payload = publishPacket.Payload,
QualityOfServiceLevel = publishPacket.QualityOfServiceLevel,
Retain = publishPacket.Retain,
UserProperties = publishPacket.Properties?.UserProperties ?? new List()
};
}

Hi,
thank you for reporting this issue. I added these to the message class and will release a new version soon.
Best regards
Christian


flop buffer names -- conflict with jasch package & unable to parse?

some strange issues for one discord user with flop

conflict with jasch package -- if this is required by ppooll from Max Package Manager, can we just use those versions and delete the ones in ppooll repo?

unable to parse buffer?

i'd say delete the included version and make jasch a required dependency.

i made a subpatch in flop to generate these playback-buffers there.
so ho_st is no more loading these.


Polish git as an SCM extension

SCM Viewlet

[x] Basic viewlet UI
[x] Resource decorations
[x] Global menu
[x] Context menu
[x] Inline menu
[ ] Provider switcher
[ ] Drag n drop
[ ] Multi select
[ ] Telemetry

Git extension

[x] Model
[x] Output channel
[x] Decorations
[x] Menus
[x] Status bar
[x] Commit box as text editor?
[x] Merge decorator
[x] Auto fetch
[x] Configurations
[x] Progress
[x] Localization
[x] Status bar
[x] View > Git menu
[x] Make sure it runs under en locale
[ ] Empty slate (git init)
[ ] Git 2.0 recommender
[ ] Scoped git workspaces
[ ] Range staging
[ ] Editor menu actions
[ ] Clone command
[ ] Askpass
[ ] Huge repo prevention
[ ] Telemetry

Documentation

[ ] New viewlet keybinding

Misc

[x] Shrinkwrap git extension dependencies

I miss the action to switch an editor back and forth between current content and diff view. Is that tracked here, should I open an issue?

It's tracked as Editor menu actions.

Are issues for the git SCM Extension moving to another GitHub repo? Or will they stay within vscode?
The reason I ask: If issues are moving, I want to make sure #5770 doesn't get lost.

Not moving 👍

I can't see "Quick copy lines in diff view #22003". Shouldn't it be out?

@Mellbourn

@joaomoreno ah. ok. I was hoping for the GUI "arrows" mentioned in the original issue.


v2.0

updated Android 12
updated Couchbase-lite Version to 2.8.6
migrated to androidX
minSdkVersion updated to 22
targetSdkVersion updated to 31
activity set as exported in AndroidManifest.xml

@arnab-kundu  Thanks for the PR. We will review. That said, this is a relatively dated app. Would recommend that you check out our newer Android samples that demonstrate the standalone, query and sync capabilities https://docs.couchbase.com/userprofile-couchbase-mobile/standalone/userprofile/android/userprofile_basic.html
This is the latest repo : https://github.com/couchbase-examples/android-java-cblite-userprofile


Pinterest support

Add Pinterest support

Deferred for now. Pinterest doesn't return email id.

OK, then I will close this one :)


Tag: async-await

This issue proposes a new tag that explains some basics about asyncio and concurrency. Essentially the content would be along the lines of:

What's an event loop?
How does it work?
How do I use it?

If approved I'd like to write this myself

AMAZING! I WOULD LOVE THAT BECAUSE WE HAVE A LOT OF ASYNC/AWAIT QUESTIONS

Go for it

Awesome, thanks!


Free bag slots still showing, even when show bags is disabled

Free bag slots still showing, even when show bags is disabled.
Would be nice if there was an option to also hide the number of free bag slots.

Completed in https://github.com/TheLinuxITGuy/Turtle-Dragonflight/releases/tag/v2.6.1

Tested, I can confirm it's fixed.


Manual ROOH decomposition - how to add it?

Dear Developers,
as I cannot seem to get a handle on the database format for RMG, I would like to ask for some assistance:
ROOH -> RO. +  .OH
How can I add this reaction to the library so that I can call it as a user defined library with user defined parameters?
For reference:
Denisov, 2003 - a book
Hydroperoxide decomposition has a comparatively high activation energy in the gas phase, lower in the liquid phase but it also catalysed by many species (sulfur, metals, etc.).
Many thanks
Detlev

If you want to put a specific reaction into the database, you can place it into a reaction library by creating a new folder in RMG-Java/databases/RMG_database/kinetics_libraries/.  The name of the folder should also be used in your condition file like so:
ReactionLibrary:
Name: NameOfLibrary
Location: NameOfFolder
END
The folder should contain the 3 files: reactions.txt   pdepreactions.txt   species.txt
Please take a look at any of the existing libraries to find the format for these files (i.e. https://github.com/GreenGroup/RMG-Java/tree/master/databases/RMG_database/kinetics_libraries/wang/)
The species.txt file contains the species dictionaries and names.  In the reactions.txt file, write the reaction using the names found in the species.txt file, a reaction's format is:
R1 + R2  =  P1 + P2         A       n       E       dA      dn      dE
If you instead are wanting to create a general rule for ROOH --> RO  + OH, then you will have to modify the reaction family R_Recombination, which is actually defined in the reverse direction.  Which of these did you need?

Dear Connie,
thank you for getting back to me.
I'd prefer to have the reaction in a general form as a user library - however that might not be possible.
I was trying to find it in the R_Recombination library but the syntax beat me - I understand bits of it but cannot find it...
My reasoning for having it as a user defined library is that Denisov suggests the activation energy is comparatively high in the gas phase and lower, but still high in the liquid phase.
However the decomposition is catalysed - where the parameters would depend on the catalyst employed. So a user library would be more beneficial to testing and tweaking parameters which differ depending on the additive employed.

If you want to create a general ROOH --> RO + OH decomposition rate, you would have to alter the R_Recombination rate library.  Right now that family is entirely filled with gas phase rates.  One thing you could potentially do is substitute the entire library with liquid-phase catalyzed rates.  However, the rest of the reaction families will still use gas phase kinetics.  Basically, there is no good way to implement what you want to do, unless you made alterations to the code itself.

Hmm, that sounds problematic - I don't have the time to work out all parameters...
Having said that though, my understanding of RMG is that it does a liquid phase correction by itself. So I guess for the remaining parameters it would not cause any issues as long as one does not want any catalytic effects.
Rewriting the code is out of the question (for now - no idea what happens in the future).
I also wonder if there is any better documentation on the format than the manual? Because I cannot make head or toe of it...

Database modification documentation can be found here: http://rmg.sourceforge.net/documentation/modification.html
The one for RMG-Py can be found here: http://greengroup.github.io/RMG-Py/users/rmg/database/modification.html
I'm not sure too many people know what the liquid phase kinetics correction is inside RMG-Java.
You can create some rate rules just for your reactions but if they may have side effects on other kinetics due to averaging.
You can try to find out what groups you should design rate rules for by using the search kinetics function here: http://rmg.mit.edu/database/kinetics/search/  Just take a representative real reaction and search for the kinetics generated by rate rules.  The estimate should tell you what the most specific nodes are in the tree for that reaction, and that should be the rate rule you need to make.  You can also find visual links to the groups here: http://rmg.mit.edu/database/kinetics/families/R_Recombination/groups/


CB-20087 make GCP cloud resource names unique to a stack

If we resize the DataLake we create new resources from a blueprint with the same names as in the old DataLake and this causes GCP to request creation requests due to name conflict.
Name strategy before: DATALAKE_NAME-templateName
Example:
we create an environment with LightDuty DL. DL blueprint is datalake/src/main/resources/duties/7.2.15/gcp/light_duty.json
and datalake name is "butterfly".  This will use datalake/src/main/resources/duties/7.2.15/gcp/medium_duty_ha.json blueprint and will request another instanceGroup idBroker (line 80) so a cloud resource with the name "butterfly-idBroker" will be attempted to be created. This request will be requected by GCP due to name uniqueness constraint.
Proposed solution:
add the stack id to the name. When we resize we create a new Stack so this will make names stack-bounded and prevent resource name conflicts on GCP.
Note: same approach is already used in AWS resource naming

@doktoric you have open comments

if your comments are still valid, please request changes on the pr
if your comments are answered, please resolve them so we know the pr is ready to be merged

thanks


remove Mutex in database/schema/table catalog

Summary

Related issue #590

Would you please merge main and fix fmt?

ready for review now


added footer using bootstrap classes

👷 Deploy Preview for cg-eleventy-blog processing.

Name
Link

🔨 Latest commit
f68706c4e23a3c146ce5142f68182cabf63f7ef8

🔍 Latest deploy log
https://app.netlify.com/sites/cg-eleventy-blog/deploys/65bcf0b99c18c900080823e2