text:
fix(iroh-blobs): Remove debugging logs & more cleanup

Description
More stuff to clean up I came across while trying to debug an issue.
Also, this makes it so that errors from iroh_blobs::get::db::get_blob that happen before the get_conn step get printed.

Breaking Changes
None.

Notes & open questions

I decided to just remove the tracing logs in downloader/progress.rs. They never really helped us surface the bug, they mostly polluted the logs, to be honest.
The only thing they surfaced was that we didn't properly clean up TransferState::progress_id_to_blob when there's an error in iroh_blobs::get::db::get_blob that causes us to not send the DownloadProgress::Done event.
Change checklist

[x] Self-review.
[ ] Documentation updates following the style guide, if relevant.
[ ] Tests if relevant.
[x] All breaking changes documented.

@divagant-martian did you intentionally enable auto-merge? You didn't approve the PR :sweat_smile:

I did. I also wanted to know what were you looking for by logging that error. It's still better than before so let's go ahead

what were you looking for by logging that error

There's a thread in discord that has some details.
More specifically, any errors in iroh_blobs::get::db::get_blob before its call to co.get_conn().await get swallowed and just reported as DownloadFailed.
I suspected that Pasha's issues might have occurred in that part of the code, so wanted to log the actual errors.
I hope I remember the part of the code correctly - following the whole call structure took some time. But as far as I remember failures end up as this FailureAction error type returned from self.getter.get (in the place in this PR's diff).


text:
🛑 peertube is down

In 357868f, peertube (https://peertube.n1l.dev) was down:

HTTP code: 0
Response time: 0 ms

Resolved: peertube is back up in c0f3388 after 38 minutes.

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 rasp.n1l.dev is down

In cc36133, rasp.n1l.dev (https://rasp.n1l.dev) was down:

HTTP code: 0
Response time: 0 ms

Resolved: rasp.n1l.dev is back up in 63e7606 after 47 minutes.


text:
Storage folders, etc, still visible in /public mode (.htaccess doesn't block)

Subfolders in storage, etc, are not blocked (testing on http://vmsdemo.space)
Happens when put into subfolder (e.,g https://vmsdemo.space/subfolder)

refs #411

Unable to reproduce this, and have phpVMS git master installed in a subdir here. The rewrite rules in public/.htaccess need modifying to work in a subdirectory:
Options -Indexes

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /phpVMS/$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ /phpVMS/index.php [L]
</IfModule>

Thanks, I might include that in the docs... "officially" I'm not supporting subdirectory installs, mainly because Laravel doesn't behave well with it.

Alright, let me start from the oldest bug.
I would like to solve it @nabeelio

@YashGovekar actually this one I can close, it seems to be fixed

authors: YashGovekar barf nabeelio

repo: nabeelio/phpvms


text:
com.mysql.cj.exceptions.UnableToConnectException: Public Key Retrieval is not allowed

使用最新的Nacos Docker 1.3.2无法连接数据库。出现com.mysql.cj.exceptions.UnableToConnectException: Public Key Retrieval is not allowed错误。
环境：
Docker Desktop for Window 2.4.0.0
MySQL mysql-community-8.0.22.0
Nacos 1.3.2
目前解决办法是：
启动并进入容器，vim conf/application.properties
数据库连接中，增加：
allowPublicKeyRetrieval=true

AllowPublicKeyRetrieval=True这种方式安全隐患挺大的吧？

AllowPublicKeyRetrieval=True这种方式安全隐患挺大的吧？

目前应急能找到的方法就是这个。

|   : '  '; | /       \   /     \.   ; ,. :|  :  /./   Console: http://172.18.0.3:8848/nacos/index.html
'   ' ;.    ;.--.  .-. | /    / ''   | |: :|  :  ;_
|   | | \   | __/: . ..    ' / '   | .; : \  \    .      https://nacos.io '   : |  ; .' ," .--.; |'   ; :__|   :    |  ----.
|   | '--'  /  /  ,.  |'   | '.'|\   \  /  /  /--'  /
'   : |     ;  :   .'   \   :    : ----'  '--'.     / ;   |.'     |  ,     .-./\   \  /            --'---'
'---'        -----'     `----'
2020-10-21 15:20:25,568 INFO Bean 'org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration' of type [org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration$$EnhancerBySpringCGLIB$$caa11b31] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-10-21 15:20:25,789 INFO Bean 'objectPostProcessor' of type [org.springframework.security.config.annotation.configuration.AutowireBeanFactoryObjectPostProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-10-21 15:20:25,794 INFO Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@16b2bb0c' of type [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-10-21 15:20:25,796 INFO Bean 'org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration' of type [org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration$$EnhancerBySpringCGLIB$$ef75bde3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-10-21 15:20:25,820 INFO Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-10-21 15:20:27,960 INFO Tomcat initialized with port(s): 8848 (http)
2020-10-21 15:20:28,438 INFO Root WebApplicationContext: initialization completed in 13089 ms
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:371)
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:523)
at com.alibaba.nacos.config.server.service.datasource.ExternalDataSourceServiceImpl$SelectMasterTask.run(ExternalDataSourceServiceImpl.java:233)
at com.alibaba.nacos.config.server.service.datasource.ExternalDataSourceServiceImpl.reload(ExternalDataSourceServiceImpl.java:137)
at com.alibaba.nacos.config.server.service.datasource.ExternalDataSourceServiceImpl.init(ExternalDataSourceServiceImpl.java:115)
at com.alibaba.nacos.config.server.service.datasource.DynamicDataSource.getDataSource(DynamicDataSource.java:53)
at com.alibaba.nacos.config.server.service.repository.extrnal.ExternalStoragePersistServiceImpl.init(ExternalStoragePersistServiceImpl.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:363)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:307)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:419)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1737)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:392)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:394)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366)
at com.alibaba.nacos.core.auth.AuthConfigs$$EnhancerBySpringCGLIB$$6a3cb135.authFilter()
at com.alibaba.nacos.core.auth.AuthConfigs.authFilterRegistration(AuthConfigs.java:114)
at com.alibaba.nacos.core.auth.AuthConfigs$$EnhancerBySpringCGLIB$$6a3cb135.CGLIB$authFilterRegistration$4()
at com.alibaba.nacos.core.auth.AuthConfigs$$EnhancerBySpringCGLIB$$6a3cb135$$FastClassBySpringCGLIB$$e1d2528c.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
at com.alibaba.nacos.core.auth.AuthConfigs$$EnhancerBySpringCGLIB$$6a3cb135.authFilterRegistration()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:235)
at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:226)
at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:101)
at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:88)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:261)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234)
at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:54)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5098)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1432)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1422)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1432)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1422)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:801)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:372)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:106)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:86)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:414)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:540)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at com.alibaba.nacos.Nacos.main(Nacos.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:109)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:466)
Caused by: java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:905)
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:830)
at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:455)
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240)
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:199)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:354)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:473)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:554)
at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:151)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78)
... 172 more
Caused by: com.mysql.cj.exceptions.CJException: Public Key Retrieval is not allowed
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:124)
at com.mysql.cj.protocol.a.authentication.CachingSha2PasswordPlugin.nextAuthenticationStep(CachingSha2PasswordPlugin.java:151)
at com.mysql.cj.protocol.a.authentication.CachingSha2PasswordPlugin.nextAuthenticationStep(CachingSha2PasswordPlugin.java:49)
at com.mysql.cj.protocol.a.NativeAuthenticationProvider.proceedHandshakeWithPluggableAuthentication(NativeAuthenticationProvider.java:596)
at com.mysql.cj.protocol.a.NativeAuthenticationProvider.connect(NativeAuthenticationProvider.java:202)
at com.mysql.cj.protocol.a.NativeProtocol.connect(NativeProtocol.java:1452)
at com.mysql.cj.NativeSession.connect(NativeSession.java:165)
at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:849)
... 186 more
Caused by: com.mysql.cj.exceptions.UnableToConnectException: Public Key Retrieval is not allowed
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:85)
at com.mysql.cj.protocol.a.authentication.CachingSha2PasswordPlugin.nextAuthenticationStep(CachingSha2PasswordPlugin.java:128)
... 192 more`

外部数据库，自己建表，在Nacos Github distribution下面有

以前用的Nacos 1.2.1和 MySQL5.7，所以就一整套的更新了。
1、重新安装了MySQL 8.0.22，作为外部数据库。（库和表都已经建好，原有数据都已经导入，使用工具用主机名和IP都可以访问）
2、重新下载Nacos Docker 镜像（latest），运行后，无法访问http://IP:8848/nacos，发现数据库无法连接。
问题就表现在通过jdbc无法连接数据库。除了上面的问题，还有一个时区的问题。目前通过在jdbc url 增加参数：
allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
allowPublicKeyRetrieval确实不安全，而且数据库连不上也可能是问题的表象而已。后续再慢慢研究

我后面发版增加一个数据库参数给你们自己配置吧 这个没办法满足所有人的需求,另外你数据库的表是用的最新的吗？

我后面发版增加一个数据库参数给你们自己配置吧 这个没办法满足所有人的需求,另外你数据库的表是用的最新的吗？

感谢支持。我的数据库表用的是从Nacos 1.3.2 release 包中取的。

已经处理了 可以使用1.4.0的版本已经支持了

authors: Pointerv paderlol

repo: nacos-group/nacos-docker


text:
ffmpeg.exe not shutting down on application crash

Context
Running on Windows 10 and .NET framework 4.8
This is how I start the video stream:
stopTokenSource = new CancellationTokenSource();
Client = new VideoStreamClient();
Client.NewImageReceived += Client_NewImageReceived;
var inputSource = new StreamInputSource(streamUrl);
streamReadingTask = Client.StartFrameReaderAsync(inputSource, OutputImageFormat.Bmp, stopTokenSource.Token);

And this is how it is stopped and disposed:
stopTokenSource?.Cancel();
stopTokenSource?.Dispose();
stopTokenSource = null;

if (Client != null)
    Client.NewImageReceived -= Client_NewImageReceived;

Problem
When closing my application normally, the videostream is stopped and dealt with accordingly.
However, when an unexpected exception occurs and the application crashes, ffmpeg.exe will still be running.
This is causing a lot of issues for me, mainly because the TCP ports used by my application will remain open until ffmpeg.exe is shut down manually through the Task Manager.
Solution
The problem can be solved by either:

Setting UseShellExecute = true in the ProcessStartInfo in the StartFrameReaderAsync method
Adding an extra (optional) parameter: StartFrameReaderAsync(InputSource inputSource, OutputImageFormat outputImageFormat, CancellationToken cancellationToken, bool useShellExecute = false)

I have push a new package, thanks for your feedback

authors: JPasterkampRotec tinohager


text:
Question: How to reset my chart if the config parameters change at runtime

Hello
I have the realtime config setup and working fine.
I want to add functionality that a user could select the refresh interval of the chart. When this happens, I update the config in the chart object, but the chart is not reset.
So I am updating the duration, refresh and ttl in the following code but still the original duration and refresh rates are being used.
        this.chart.options.scales.xAxes.realtime = {             duration: 1000 * 60 * 60,             refresh: 1000 * 10,             ttl: 1000 * 60 * 60,             onRefresh: () => this.onRefresh(),             delay: 100         }
What should I do to get this to work?
Thank you!

Your code has two problems (assuming it uses chartjs-plugin-streaming 1.8 and Chart.js 2.8).

xAxes option is an array, so it should be xAxes[0]
The change won't be effective immediately without calling chart.update()

So, the following code should work as expected.
this.chart.options.scales.xAxes[0].realtime = {
  duration: 1000 * 60 * 60,
  refresh: 1000 * 10,
  ttl: 1000 * 60 * 60,
  onRefresh: () => this.onRefresh(),
  delay: 100
};
this.chart.update({duration: 0})

authors: nagix rabac

repo: nagix/chartjs-plugin-streaming

license: mit

license_source: bigquery


text:
Update documentation

Pending update documentation with authentication rules.

Shows properties error in Swagger.
CORS error

Resolved in sprint-10

repo: nahrdmelo/ecomm


text:
Division by zero on low latency connections, client/server desync

client/src/connection/handshake_time_manager.rs has code at line 104 to prune pong outliers:
// Prune out any pong values outside the standard deviation (mitigation)
let mut pruned_pongs = Vec::new();
for (time_offset_millis, rtt_millis) in pongs {
    let offset_diff = (time_offset_millis - offset_mean).abs();
    let rtt_diff = (rtt_millis - rtt_mean).abs();
    if offset_diff < offset_stdv && rtt_diff < rtt_stdv {
        pruned_pongs.push((time_offset_millis, rtt_millis));
    }
}

On near zero latency connections (e.g. local unix socket where client and server are in the same process), this sometimes leads to all pongs being pruned.
let pruned_sample_count = pruned_pongs.len() as f32; // 0
...
pruned_offset_mean /= pruned_sample_count; // NaN
pruned_rtt_mean /= pruned_sample_count; // NaN

This ultimately leads to initial offset and rtt values being set to NaN and results in client/server desync.

Fixed in Release 0.24.0

authors: connorcarpenter dubrowgn

repo: naia-lib/naia


text:
Games update script is broken

The script used to update new games from Steam is currently borked. Needs to be fixed.

Closing this because I no longer support steamplaytime.

repo: naiyt/steamplaytime


text:
Problem testing with Jest

I'm having this issue working with jest and moti:
SyntaxError: Unexpected token 'export'
at node_modules/moti/build/index.js:1
-> export * from '@motify/core'

Tried to change babel config, jest config, etc, but didn't solve the problem

I’ve never used Jest so I’m not sure. Maybe you need to add Moti to a transpile list?

This one was hard to look into. Anyway just "solved" it!
I had to downgrade the jest version and complementary libs (ts-jest, @types/jest) to ~26.
Just for curiosity, what lib you use for testing?

Just for curiosity, what lib you use for testing?

I actually haven’t used one before

authors: danielkv nandorojo

repo: nandorojo/moti


text:
🛑 WinePass is down

In 7a96765, WinePass (https://www.winepass.com.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: WinePass is back up in 4da64f3 after 12 minutes.

repo: nandosb/upptime


text:
🛑 diotimagrossert.com is down

In 950ba64, diotimagrossert.com (https://diotimagrossert.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: diotimagrossert.com is back up in 8eb47f2 after 35 minutes.

repo: nanhosting/monitoring


text:
🛑 judoclubstadelausanne.ch is down

In ddca2de, judoclubstadelausanne.ch (https://judoclubstadelausanne.ch) was down:

HTTP code: 0
Response time: 0 ms

Resolved: judoclubstadelausanne.ch is back up in ba2afec after 26 minutes.


text:
🛑 stitchbienne.ch is down

In 9c14b0d, stitchbienne.ch (https://stitchbienne.ch) was down:

HTTP code: 502
Response time: 852 ms

Resolved: stitchbienne.ch is back up in 1fd81d7 after 5 minutes.


text:
Consider creating a helm chart

The values that you've setup in environments and makefile are difficult to manage, consider creating a helm chart https://github.com/kubernetes/helm and list your app on https://kubeapps.com/

Thanks for pointing that out, however I don't believe I will have the time to make that change.

authors: audip erez-rabih

repo: nanit/kubernetes-graphite-cluster


text:
If the SSH folder doesnt exist vagrant up will fail

2015-11-19 14:07:30 ERROR There are errors in the configuration of this machine. Please fix
2015-11-19 14:07:30 ERROR the following errors and try again:
2015-11-19 14:07:30 ERROR 2015-11-19 14:07:30 ERROR vm:
2015-11-19 14:07:30 ERROR * The host path of the shared folder is missing: ~/.ssh
2015-11-19 14:07:30 ERROR 2015-11-19 14:08:26 ERROR There are errors in the configuration of this machine. Please fix
2015-11-19 14:08:26 ERROR the following errors and try again:
2015-11-19 14:08:26 ERROR 2015-11-19 14:08:26 ERROR vm:
2015-11-19 14:08:26 ERROR * The host path of the shared folder is missing: ~/.ssh
2015-11-19 14:08:26 ERROR

Shot in the dark here, but this may have to do with where the .ssh folder is expected to be.
For example, when I ran nanobox dev originally it said See ~/.nanobox/nanobox.log for details
I am using Windows, and the ~/ directory in this case turned out to be my user folder, so I found the log in:
C:/Users/Me/.nanobox/nanobox.log
Now, my .ssh folder is actually stored in my C:/ directory, i.e. C:/.ssh.
So using the logic from where the log is stored, perhaps ssh is expected to be in C:/Users/Me/.ssh when it is not

@rajeevmehrotra that is exactly right. I think to solve this issue nanobox needs to:
1 try detecting where ssh has put its folder
2 use that location to mount into the virtual box
3 if the location doesnt exist and cant be found dont try mouting the folder at all

@lyondhill I was able to fix this particular issue manually by editing the Vagrant file.
In particular, I went to C:/Users/<Me>/.nanobox/apps/<MyApp>/Vagrantfile and changed the nanobox.vm.synced_folder from ~/.ssh to C:\\.ssh.  Note that I had to change single backslashes to double backslashes for windows directories.
After this fix I got a later error:
FATAL [util/file/hosts] os.Open() failed -  - open /etc/hosts: The system cannot find the path specified. but this may already be filed under a separate issue, I'll look

the /etc/hosts file problem should be fixed in https://github.com/nanobox-io/nanobox/pull/76 which just got merged. The new nanobox cli should be uploaded soon.

@rajeevmehrotra do you know how I would detect in windows where the ssh folder is? on unix systems its pretty standard to put it in the ~/.ssh/ folder is C:.ssh\ the 'standard' in windows?

I'm not sure if putting it at the C directory is standard, I can look into it.  My ssh setup was configured as I was installing the git cli, which allows for the option to use ssh (among other commands) to be invoked directly from window's command prompt, and which created the .ssh directory at the C level.  I would imagine this is a pretty typical setup, though I'm not sure what it would look like if I were to use ssh from cygwin or similar.

Also, when you say the new nanobox cli should be updated soon, does that mean that a nanobox update command will pull down the latest changes? Or to get the latest will I need to have installed nanobox from source rather than from the installer as I had done?

@rajeevmehrotra normally 'nanobox update' would suffice. Unfortunately, the binary that was available yesterday (which is probably when you downloaded it) has a bug where the 'update' isn't working properly.
Go ahead and try 'nanobox update', and afterwards the version should be at least 0.16.8. If it's not, you'll need to download the installer and re-run.
Thanks

@tylerflint thanks! nanobox update does not work (says its up to date). I'll redownload the installer and try again

@rajeevmehrotra I'm not sure the installers have the newest version of nanobox just yet, you may need to download it from here: https://s3.amazonaws.com/tools.nanobox.io/cli/windows/amd64/nanobox.exe and replace your existing one

Thanks, I replaced the old nanobox.exe with the one downloaded from that link
I got this error:
FATAL Cause of failure: runtime error: makeslice: len out of range
2015-11-20 12:57:33 FATAL Error output:
/Users/sdomino/gocode/src/github.com/nanobox-io/nanobox/main.go:24 (0x40110a)
/usr/local/Cellar/go/1.5/libexec/src/runtime/asm_amd64.s:437 (0x459275)
/usr/local/Cellar/go/1.5/libexec/src/runtime/panic.go:423 (0x42ae27)
/usr/local/Cellar/go/1.5/libexec/src/runtime/slice.go:26 (0x43eb14)
/usr/local/Cellar/go/1.5/libexec/src/strings/strings.go:464 (0x541386)
/Users/sdomino/gocode/src/github.com/nanobox-io/nanobox/util/file/file.go:197 (0x54858a)
/Users/sdomino/gocode/src/github.com/nanobox-io/nanobox/commands/update.go:141 (0x48affc)
/Users/sdomino/gocode/src/github.com/nanobox-io/nanobox/commands/update.go:42 (0x489f65)
/Users/sdomino/godeps/src/github.com/spf13/cobra/command.go:547 (0x508420)
/Users/sdomino/godeps/src/github.com/spf13/cobra/command.go:630 (0x508d1a)
/Users/sdomino/gocode/src/github.com/nanobox-io/nanobox/main.go:38 (0x40108c)
/usr/local/Cellar/go/1.5/libexec/src/runtime/proc.go:111 (0x42d3be)
/usr/local/Cellar/go/1.5/libexec/src/runtime/asm_amd64.s:1696 (0x45b5b1)

@rajeevmehrotra i created a new issue for the new report #83 but that one should be a quick fix.

authors: lyondhill rajeevmehrotra sdomino tylerflint

repo: nanobox-io/nanobox


text:
Update Number.cs

Fixes nanoframework/Home#118

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

source: gharchive/pull-request

authors: CLAassistant MikroBusNet

repo: nanoframework/lib-CoreLibrary


text:
napari octree doesn't work for multiple layers blended

🐛 Bug
Multiple layers blended do not work with the napari octree right now as it doesn't track the layer id properly in the cache. This can be fixed by disabling an aspect of the cache, but then performance is slow. We also might want to think about delaying the update until all layers for a certain tile have loaded to avoid an unseemly flickering.
To Reproduce
import dask.array as da
import napari

file_name = 'data/camelyon16/tumor_001.zarr'
pyramid = [da.from_zarr(file_name + '/' + str(i)) for i in range(10)]

# create an empty viewer
viewer = napari.Viewer()

# add the pyramid
viewer.add_image([p[:, :, 0] for p in pyramid], name='red', colormap='red', blending='additive')
viewer.add_image([p[:, :, 1] for p in pyramid], name='green', colormap='green', blending='additive')
viewer.add_image([p[:, :, 2] for p in pyramid], name='blue', colormap='blue', blending='additive')
napari.run()

Expected behavior
Here is the current behaviour
https://user-images.githubusercontent.com/6531703/121442205-02fa9a80-c940-11eb-9b91-c2b8748b923e.mov
Here is the expected behavior (which comes from rendering image as rgb with all layers together).
https://user-images.githubusercontent.com/6531703/121442265-1c034b80-c940-11eb-8d65-3b9835575af8.mov

Note the above was done with NAPARI_OCTREE enabled. If disabled then things render correctly, but are slow

So far I've been able to identify at least three issues that might be preventing this from working.
The first is that with tiled rendering enabled but force_synchronous set to True, we still see artifacts like

and the blending isn't quite right, suggesting that work is still needed on the vispy tiled visual.
Next off is that the cancel_unseen will cancel all chunks from other layers apart from the last one, so this clearly needs to be changed
https://github.com/napari/napari/blob/ced9a10708e57cdfa20e0e82c6a9802a38f570b9/napari/layers/image/experimental/_octree_loader.py#L423-L425
And then finally the OctreeLocation doesn't have the layer id in the hash and eq methods, see https://github.com/napari/napari/blob/ced9a10708e57cdfa20e0e82c6a9802a38f570b9/napari/components/experimental/chunk/_request.py#L103-L112 which means that some of the tracking of chunks in dictionaries and the cache will match objects from the same location but different layers.
All this will need to be fixed for this to work as expected. I think during that process there will be an opportunity to consider the multilayer use-case with fresh perspective and improve the implementation for this use case

@sofroniewn Hey Nick! Curious if this is still the up-to-date view in the napari community regarding multiple layers and using lazy loading (/pyramid-based) approaches. We're really interested to go further in this direction and use napari to view large (e.g. > 1000 image sites), multiplexed (> 20 channels) datasets.
Here's a movie of how this looks in an old tool from our lab, but that's 2D only. Would be great to build the next version of this (with 3D & time) in napari!
https://user-images.githubusercontent.com/18033446/145804740-371b158f-a88b-4d99-8a53-7b6196693021.mov
Any pointers to where we can push to get around this issue?

Any pointers to where we can push to get around this issue?

Maybe @perlman can weigh in. I'm afraid the above represents my latest knowledge

With octree having been removed, I think this issue is no longer valid and we can close?
cc: @andy-sweet

With octree having been removed, I think this issue is no longer valid and we can close? cc: @andy-sweet

Agreed. Closing.

authors: andy-sweet jluethi psobolewskiPhD sofroniewn

repo: napari/napari


text:
Does not work in command line when options are specified before path

What version are you using?
0.6.0
I run livereload in command line:
livereload --port 4444 public/

And include script to page:
<script src="//localhost:4444/livereload.js?snipver=1"></script>

Expected result
Should apply changes (reload page)
Actual result
WS connection is established (I see three messages), but server does not notify client about changes.
When I change arguments order (put path first)
livereload public/ --port 4444

livereload starts to work as expected:
{"command":"reload","path":"/home/dmitry/dev/public/styles/styles.css","liveCSS":true,"originalPath":"","overrideURL":""}

This is expected behavior as shown in the documentation. Path first, followed by options,

For me this is really unexpected behaviour, because I can do the following:
npm i -g express
npm i express -g

cp -r testdir/* testdir2
cp testdir/* testdir2 -r

And result is always the same

About documentation: it just says that we have to use path if we specify options. Nothing about it must be first

I understand. But this is expected behavior until someone takes the time to rewrite the option parser. Feel free to take a crack at it.

authors: Jokero napcs

repo: napcs/node-livereload


text:
Change Background color of comment box

What would you like to share?
I see that comment box is not so good with designing part, I can make it better with changing the style & background color.

I will make comment box more attractive than before.

Additional information
No response

yeah, i want to work on this issue, can you please assign to me and also add the gssoc23 label

sure go ahead!


text:
Fix for #127

The code included does two things:

It fixes #127
It changes how ore_per_minute is calculated. It keeps a circular list of the last 10 changes to the field size and averages them out, then factors in the idle time between the most recent update, the now, and the oldest data in the array to give an accurate use rate on 'pulsed' (on for a bit, off for a bit) fields.

So, say the array had 10 minutes of data from a field that was 100% in use. But then all belts filled after 10 minutes and it went idle for 10 minutes. The code would say "10 minutes passed between the oldest snapshot of the field and the most recent change." and it would also realize 10 minutes had passed between the last snapshot and right now. It would thus compute the average ore rate for the 10 minute the field was running (say 3000 ore/min) and then decrease that by the factor of idle time (10m of data, 10m of idle = 50% decrease to mining rate). So it would report 1500 ore/min as the result to be displayed.
I have lots of comments in the code explaining how and why things are done. I need to test it more on my end to ensure there are no more weird bugs. But for now, I can add a field, remove a field, and just have fields mine all without issue. The one 'weird bit' is that until a field has been mining for at least 20 seconds (with default settings) it will not display a correct mining rate. This is because I need at least two snapshots to calculate a mining rate, and we only check for changes every 10 seconds (at least on my map).

It seems you are working on this again @narc0tiq - Can this fix be merged in if it resolves issue #127?

Well, I've just returned to playing a bit of Factorio and so I've been trying this patch for the last couple of days. It feels fairly reliable, so I'm going to merge it in and call it good.

Sorry this took so long, I haven't been playing Factorio for the last, um... two years or so, so YARM and EvoGUI weren't really something I was paying much attention to.

NB: There have been multiple reports of save file corruption (including #145) with this patch; I'm going to go ahead and revert it, but will attempt to reinclude it later. From testing, it seems that an ore site that's idle enough to generate "n/m" as the ore-per-minute report is what causes Factorio to believe the save to be corrupted -- where "n" stands for "NaN", aka Not a Number. Mining a single piece of ore is enough to prevent the corruption, but obviously this can't be left this way.


text:
fix some typos found by codespell

plus a few python3 prints

Thanks!

authors: bcoltin fchapoton

repo: nasa/CrisisMappingToolkit


text:
Fix #72,  LGTM build now omits deprecated code

Describe the contribution
Added OMIT_DEPRECATED=true to LGTM script
Fix #72
Testing performed
CI
Expected behavior changes
Should clear up some errors related to shell, decompress, etc.
System(s) tested on

CI

Additional context
Built on latest IC
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

Rebased on master

CCB 2020-04-29: Approved

authors: astrogeco skliper

repo: nasa/cFS


text:
Performance improvements

I am making some ongoing performance improvements to the code. Although this won't matter much for a single run, it will create a measurable impact on execution speed and memory usage for bulk comparisons, for example, while comparing thousands of files.
I am making sure that the input and output stays the same for each optimized function.
Once I optimize the entire codebase, we can merge it.
@danielfromearth

@danielfromearth I have fixed the issues raised by Pylint. I believe you will need to run the workflow manually, again, because my PR has not been accepted yet.

Closing this in favor of a new pull request #263

repo: nasa/ncompare


text:
Feature/add support for keep alive

Adding clientSessionKeepAlive - See https://docs.snowflake.net/manuals/user-guide/nodejs-driver-use.html#required-connection-options

@natesilva Should I bump the snowflake-sdk as well ? Or should that be a separate PR?

Should we also add clientSessionKeepAliveHeartbeatFrequency? I wish there was a TypeScript definition for snowflake-sdk so we don’t have to keep updating this.

Updated the PR to include clientSessionKeepAliveHeartbeatFrequency.

Agree on the bit about typescript definitions for the snowflake-sdk repo - a lot of the code in the repo is also dedicated to typechecking.

@natesilva Have you had a chance to take a look at this one?

Thank you! This will be published on npm in a few minutes.

authors: natesilva sshivananda

repo: natesilva/snowflake-promise


text:
merge develop

By submitting a PR to this repository, you agree to the terms within the Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description

Describe the purpose of this PR along with any background information and the impacts of the proposed change. For the benefit of the community, please do not assume prior context.
Provide details that support your chosen implementation, including: breaking changes, alternatives considered, changes to the API, etc.

References

Include any links supporting this change such as a:

GitHub Issue/PR number addressed or fixed
StackOverflow post
Support forum thread
Related pull requests/issues from other repos

If there are no references, simply delete this section.

Testing

Describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.
Also include details of the environment this PR was developed in (language/platform/browser version).

[ ] This change adds test coverage for new/changed/fixed functionality

Checklist

[ ] I have added documentation for new/changed functionality in this PR or in /docs
[ ] All active GitHub checks for tests, formatting, and security are passing
[ ] The correct base branch is being used, if not master

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

authors: dan-qc iacoshoria

repo: natgeosociety/marapp-services


text:
Dragging should maintain the cursor position relative to the bar

Currently when dragging, the gutter snaps so that its centre lines up with the cursor. When working with large gutters this is not desirable, as it causes an unexpected jump. This is especially problematic when users want to make fine adjustments to the arrangement.
It should be possible (at least via an option and I would suggest by default) to drag gutters based on where the cursor clicks on them. This would be easy to implement by adjusting start within startDragging (immediately after calling calculateSizes https://github.com/nathancahill/Split.js/blob/master/split.js#L366). The change required would be:
start += mouseLocation - gutterCentre;

Sounds great. Can you submit a PR?

Sure, I'll have a go at some point this weekend. What are your general contribution guidelines here? (testing / browser testing / linting / minifying / CI / etc.?)

Testing: The initialization options are tested with Jasmine. The interaction is not tested yet, but I'd love to implement it some day with Leaflet/prosthetic-hand.
Browser testing. Test in whatever browsers you have access to. Ideally Firefox and Chrome, Safari if Mac, Edge if Windows.
Linting: There's an eslint config in the root of the project.
CI: BrowserStack sponsers CI testing across all supported browsers. https://github.com/nathancahill/Split.js#browser-support
Minifying: This happens when a new build is published, so only submit your PR with changes in split.js.
Keep in mind that the goals of the repo (besides being the best split view utility) are tiny code size and zero dependencies.
Thanks!

@nathancahill OK, that all sounds good (btw I suggest you put all that in a CONTRIBUTING.md file for future contributors)
Can you confirm which version of eslint you're using? When I check out the code as-is I get a few linter errors (using eslint 3.19.0), but if I forcibly downgrade it I get errors due to unrecognised configuration options.
Alternatively I can fix most of the 3.19.0 issues easily enough, except that it's complaining about "Assignment to property of function parameter 'el'" in setElementSize (and similar for setGutterSize), but clearly changing the elements is the purpose of those functions.

I'm away from my computer at the moment, but you can throw a eslint disable line comment for now.
Added you as contributor on the repo, you seem to have a good grasp as to what needs to be done.

I have implemented this with
        if (!dragMiddle) {
            const percentage = a.size + b.size
            const ratio = self.size / percentage
            self.start = getMousePosition(e) - (a.size * ratio)
        }

at the end of startDragging. getMousePosition is a function extracted from the existing drag function:
    function getMousePosition (e) {
        // Supports touch events, but not multitouch, so only the first
        // finger `touches[0]` is counted.
        if ('touches' in e) {
            return e.touches[0][clientAxis]
        }
        return e[clientAxis]
    }

This works fine except that it's revealed an existing issue where some handles will be slightly offset from their correct position (e.g. try dragging the right-most bar of the bottom example at https://nathancahill.github.io/Split.js/; notice how it snaps so the cursor is on the right of the bar rather than the centre). I'm looking through the code at the moment to see why this might be the case.
I'll push this to a branch in my fork & make a PR when I'm happy with it.

Addressed in #156.

Published in v1.5.4.


text:
Install new collection

Hi there,
I'm having trouble with the installation and i don't know why. The message returned is: "Error isntalling collection".
I'm using Ubuntu 15.04, pencil 2.0.5. I tried to install some templates (here: http://pencil.evolus.vn/Stencils-Templates.html) and the importation finished with success.

I've extracted manually this project to the folder "/home/{USER}/.pencil/r3nd4i1v.default/Pencil/Stencils", and it works. Thanks.

Same error - "Error Installing Collection"

Which zip are you downloading from the releases page? Trying to install the source code zip will give an error, so make sure you're grabbing android-lollipop-pencil-stencils-v1.0.0.zip file. I could probably make that clearer in the readme.

Yes @nathanielw, i used the clone project zip at the first time. Now i installed downloading by the releases page and it works perfectly. Thanks.

Great. I'll leave this issue open to remind me to update the readme instructions.

authors: bhu1st castrors nathanielw


text:
use record opening date label

IN PROGRESS
Changes in this PR

Remove Closure Expiry date and use record opening date

JIRA ticket
https://national-archives.atlassian.net/browse/AYR-714
Screenshots of UI changes
Before
After

[ ] Requires env variable(s) to be updated

noticed all unit testing is using date_last_modified as date filter, it would be good if one or two test cases being added for 'record opening date' as date filter and sorting

noticed all unit testing is using date_last_modified as date filter, it would be good if one or two test cases being added for 'record opening date' as date filter and sorting

Added tests to check that results are sorted by opening date and filters

authors: colinbowen pgandhizaizi

repo: nationalarchives/da-ayr-beta-webapp


text:
Bugfix: Correct XQuery for publishing judgments

This should be set-property not set-properties - the latter will replace
all properties, the former only adds one property.

It looks like this code is also duplicated in #108 - do we want to close this and just have the one PR?

authors: LewisDaleUK lozette

repo: nationalarchives/ds-caselaw-public-ui


text:
CHORE: Clean up topic + time period page

About these changes
I noticed that the FEATURE_RELATED_ARTICLE_ON_EXPLORE_PAGES was brought back in - I assume by the merge conflicts.
I removed anything that was brought in by this (there was also a double live()) and removed some if alt_text statements which we shouldn't have as we should always have alt on img elements (even if it's just alt="")
Before assigning to reviewer, please make sure you have

[x] Checked things thoroughly before handing over to reviewer.
[x] Checked PR title starts with ticket number as per project conventions to help us keep track of changes.
[x] Ensured that PR includes only commits relevant to the ticket.
[x] Waited for all CI jobs to pass before requesting a review.
[x] Added/updated tests and documentation where relevant.

Merging PR guidance
Follow docs\developer-guide\contributing.md
Deployment guidance
Follow docs\infra\environments.md

Hey @William-Blackie I've made the changes you requested :)

repo: nationalarchives/ds-wagtail