add function for createInstance

Hello, i have a problem with createInstance. In your variant, if we have more 5000 data item, createInstance will work more 7 seconds. For fix this problem create function createInstance1. Thanks, and sorry for bad language.

Can you replace the function so that we can see the diff? Maybe also explain why this one is better/faster and what breaking change we can expect (or is it the exact same behavior?)?

Change create instance. Is it the exact same behavior, but faster.


fix(Dockerfile): update npm commands

fixes npm warnings during docker build

https://github.com/remix-run/blues-stack/actions/runs/4874718021/jobs/8696061595#step:6:121
https://github.com/remix-run/blues-stack/actions/runs/4874718021/jobs/8696061595#step:6:166

@rubys That's why I let @kwigley remove the --ignore-scripts in https://github.com/remix-run/blues-stack/pull/184#discussion_r1186758083


Fix Core Lro Sample Issue

Fixes https://github.com/Azure/azure-sdk-for-js/issues/26981
@joheredi, @deyaaeldeen for notification.

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


Unable to use OrchardSuppressDependency for MediaLibraryService

I'm trying to create a new implementation of one of the methods in the MediaLibraryService in Orchard.MediaLibrary.
After several hours of fiddling around, I couldn't get it to work in my own module so I moved the class straight into the MediaLibrary module itself to try and rule out a problem with my module - it still didn't pick up the new implementation. Attaching a debugger I could see that it was still using the original service.
Could something be broken or am I just being an idiot?
    [OrchardSuppressDependency("Orchard.MediaLibrary.Services.MediaLibraryService")]
    public class MyCustomMediaLibraryService : MediaLibraryService, IMediaLibraryService
    {
        public MyCustomMediaLibraryService(
            IOrchardServices orchardServices,
            IMimeTypeProvider mimeTypeProvider,
            IStorageProvider storageProvider,
            IEnumerable<IMediaFactorySelector> mediaFactorySelectors)
            : base(orchardServices, mimeTypeProvider, storageProvider, mediaFactorySelectors)
        {
        }

        public new string UploadMediaFile(string folderPath, string fileName, Stream inputStream)
        {
            throw new Exception("It works!");
        }
    }

I assume you cleared out your app_data after making the changes?

As you are already attaching the debugger, can you check when your class is found why the code doesn't actually replace the specified one?
Also, have you added a manifest dependency on Orchard.MediaLibrary to be sure the service is loaded first, then yours?

Another 2 hours on this and I finally managed to work out what was going on. There's nothing wrong with Orchard, it's a C# thing...
I'd inherited the Orchard implementation to save having to duplicate the whole thing, as I only wanted to change the behavior of one method. However, the new keyword causes the method to be available only when invoked directly against the derived class, not the base class. In this case, other methods in the base class also call UploadMediaFile. This is what was happening here, changing my code as below worked fine - I just had to add the method that was calling the one I actually wanted to modify, copying the existing implementation.
Thanks for your time, I'll close this issue now.
    [OrchardSuppressDependency("Orchard.MediaLibrary.Services.MediaLibraryService")]
    public class MyCustomMediaLibraryService : MediaLibraryService, IMediaLibraryService
    {
        public MyCustomMediaLibraryService(
            IOrchardServices orchardServices,
            IMimeTypeProvider mimeTypeProvider,
            IStorageProvider storageProvider,
            IEnumerable<IMediaFactorySelector> mediaFactorySelectors)
            : base(orchardServices, mimeTypeProvider, storageProvider, mediaFactorySelectors)
        {
        }

        public new MediaPart ImportMedia(Stream stream, string relativePath, string filename, string contentType) {
            var uniqueFilename = GetUniqueFilename(relativePath, filename);
            UploadMediaFile(relativePath, uniqueFilename, stream);
            return ImportMedia(relativePath, uniqueFilename, contentType);
        }

        public new string UploadMediaFile(string folderPath, string fileName, Stream inputStream)
        {
            throw new Exception("It works!");
        }
    }


StreamListener adapters trigger early instantiation cascade

I think the main culprit is not StreamListenerAnnotationBeanPostProcessor, but rather the things it depends on, since it does BeanFactoryUtils.beansOfTypeIncludingAncestors() a lot and those beans don't do lazy lookups when they could. But one or the other probably needs to change to prevent a mess of early instantiation, e.g.
2017-11-27 18:37:03.242  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration' of type [org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration$$EnhancerBySpringCGLIB$$a3a08db8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.295  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationGlobalProperties' of type [org.springframework.beans.factory.config.PropertiesFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.304  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationGlobalProperties' of type [java.util.Properties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.326  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.stream.config.BindingServiceConfiguration$PostProcessorConfiguration' of type [org.springframework.cloud.stream.config.BindingServiceConfiguration$PostProcessorConfiguration$$EnhancerBySpringCGLIB$$9efc6d8f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.417  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.stream.config.SpelExpressionConverterConfiguration' of type [org.springframework.cloud.stream.config.SpelExpressionConverterConfiguration$$EnhancerBySpringCGLIB$$dd71277f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.424  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spelConverter' of type [org.springframework.cloud.stream.config.SpelExpressionConverterConfiguration$SpelConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.427  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.cloud.function.stream-org.springframework.cloud.function.stream.config.StreamConfigurationProperties' of type [org.springframework.cloud.function.stream.config.StreamConfigurationProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.428  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.function.stream.config.StreamAutoConfiguration' of type [org.springframework.cloud.function.stream.config.StreamAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.433  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.stream.reactive.ReactiveSupportAutoConfiguration' of type [org.springframework.cloud.stream.reactive.ReactiveSupportAutoConfiguration$$EnhancerBySpringCGLIB$$251631e7] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.440  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'messageChannelToFluxSenderArgumentAdapter' of type [org.springframework.cloud.stream.reactive.MessageChannelToFluxSenderParameterAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.442  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'messageChannelToFunctionInvokerParameterAdapter' of type [org.springframework.cloud.function.stream.config.MessageChannelToFunctionInvokerParameterAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.448  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration$$EnhancerBySpringCGLIB$$38c84f1b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.455  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties' of type [org.springframework.boot.autoconfigure.jackson.JacksonProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.459  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration$$EnhancerBySpringCGLIB$$a62bf723] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.465  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'standardJacksonObjectMapperBuilderCustomizer' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration$StandardJackson2ObjectMapperBuilderCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.467  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration$$EnhancerBySpringCGLIB$$eb151134] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.473  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$$EnhancerBySpringCGLIB$$1ad3ecaa] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.496  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'jsonComponentModule' of type [org.springframework.boot.jackson.JsonComponentModule] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.500  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'jacksonObjectMapperBuilder' of type [org.springframework.http.converter.json.Jackson2ObjectMapperBuilder] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.518  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'jacksonObjectMapper' of type [com.fasterxml.jackson.databind.ObjectMapper] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.532  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationConversionService' of type [org.springframework.integration.context.CustomConversionServiceFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.532  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationConversionService' of type [org.springframework.core.convert.support.DefaultConversionService] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.533  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'datatypeChannelMessageConverter' of type [org.springframework.integration.support.converter.DefaultDatatypeChannelMessageConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.533  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.stream.config.BindingServiceConfiguration' of type [org.springframework.cloud.stream.config.BindingServiceConfiguration$$EnhancerBySpringCGLIB$$33661d7] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.543  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'compositeMessageConverterFactory' of type [org.springframework.cloud.stream.converter.CompositeMessageConverterFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.546  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'messageChannelToInputFluxArgumentAdapter' of type [org.springframework.cloud.stream.reactive.MessageChannelToInputFluxParameterAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-27 18:37:03.550  INFO 32380 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'fluxToMessageChannelResultAdapter' of type [org.springframework.cloud.stream.reactive.FluxToMessageChannelResultAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

Some of those come from Spring Integration core, and maybe won't be harmful. We could maybe look at reducing the Stream induced ones.

@dsyer I've noticed that as well while working on unrelated issue. . . There are other places as well where we do similar things. I have a few ideas, let me work'em.

So, it appears that one of the issue is more general where any @Configuration class that defines at least one BPPs will trigger this message unless itself is annotated with @Role(BeanDefinition.ROLE_INFRASTRUCTURE) - (which they probably should be)

SLABPP is doing some really evil things though. I noticed some changes in master, so it might be improving, but in 1.3.x it actually does bean lookups by type in its own afterPropertiesSet() (so all beans of those types and all their dependencies are eagerly instantiated). It's kind of a disaster to do that. IMO all this processing should be deferred to after the context is refreshed (or maybe in a SmartLifecycle if it needs to be earlier).

Indeed! And that is gone. I mean the whole afterPropertiesSet() and yes, there is more cleaning under way

Any chance of a back port? Some people are going to be using Ditmars for a long time.

Yeah, that is one of the reasons why I am pushing back on 1.3.1, so we can potentially include things like this

@dsyer it's been back ported (see https://github.com/spring-cloud/spring-cloud-stream/commit/dad81c617baf1935e4c5b731fa72e10875fcf0c3).  But I am sure as the work continues there will be more

I don't think this is fixed by quite a long chalk, so I'll re-open while we do some more digging
2017-11-30 10:18:47.800  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'integrationGlobalProperties' of type [org.springframework.beans.factory.config.PropertiesFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.803  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'integrationGlobalProperties' of type [java.util.Properties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.826  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.stream.config.BindingServiceConfiguration$PostProcessorConfiguration' of type [org.springframework.cloud.stream.config.BindingServiceConfiguration$PostProcessorConfiguration$$EnhancerBySpringCGLIB$$2aef9361] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.905  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'spelConverter' of type [org.springframework.cloud.stream.config.SpelExpressionConverterConfiguration$SpelConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.909  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'spring.cloud.stream.integration-org.springframework.cloud.stream.config.SpringIntegrationProperties' of type [org.springframework.cloud.stream.config.SpringIntegrationProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.921  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.function.web.flux.ReactorAutoConfiguration' of type [org.springframework.cloud.function.web.flux.ReactorAutoConfiguration$$EnhancerBySpringCGLIB$$1ead79bb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.930  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.stream.reactive.ReactiveSupportAutoConfiguration' of type [org.springframework.cloud.stream.reactive.ReactiveSupportAutoConfiguration$$EnhancerBySpringCGLIB$$b10957b9] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.936  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration$$EnhancerBySpringCGLIB$$c4bb74ed] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.940  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration$$EnhancerBySpringCGLIB$$77083706] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.944  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration$$EnhancerBySpringCGLIB$$321f1cf5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.949  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties' of type [org.springframework.boot.autoconfigure.jackson.JacksonProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.953  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'standardJacksonObjectMapperBuilderCustomizer' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration$StandardJackson2ObjectMapperBuilderCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.957  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$$EnhancerBySpringCGLIB$$a6c7127c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.978  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'jsonComponentModule' of type [org.springframework.boot.jackson.JsonComponentModule] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.980  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'jacksonObjectMapperBuilder' of type [org.springframework.http.converter.json.Jackson2ObjectMapperBuilder] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:47.997  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'jacksonObjectMapper' of type [com.fasterxml.jackson.databind.ObjectMapper] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:48.004  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'integrationConversionService' of type [org.springframework.integration.context.CustomConversionServiceFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:48.004  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'integrationConversionService' of type [org.springframework.core.convert.support.DefaultConversionService] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:48.004  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'datatypeChannelMessageConverter' of type [org.springframework.integration.support.converter.DefaultDatatypeChannelMessageConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:48.013  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'compositeMessageConverterFactory' of type [org.springframework.cloud.stream.converter.CompositeMessageConverterFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:48.016  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'messageChannelToInputFluxArgumentAdapter' of type [org.springframework.cloud.stream.reactive.MessageChannelToInputFluxParameterAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:48.018  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'messageChannelToFluxSenderArgumentAdapter' of type [org.springframework.cloud.stream.reactive.MessageChannelToFluxSenderParameterAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-30 10:18:48.021  INFO 10128 --- [       Thread-1] trationDelegate$BeanPostProcessorChecker : Bean 'messageChannelStreamListenerResultAdapter' of type [org.springframework.cloud.stream.binding.MessageChannelStreamListenerResultAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

@dsyer perhaps renaming it to something more general then? While there are few minor things related to this may still need to be addressed in StreamListener, the vast majority is outside of it, so we need a more generic description.

It's not a general problem, it's a set of specific problems tied to individual BPP implementations. I don't think it's minor in StreamListenerAnnotationBeanPostProcessor, I think it will require some surgery, so let's fix that, resolve this issue and then move on. StreamListenerAnnotationBeanPostProcessor might need to inspect every bean as it is created, looking for the annotatipm, but we really need to see if it can defer the processing (and looking up its dependencies) until the BeanFactory is ready.

Lots of bean post processors here as well: BindingServiceConfiguration.PostProcessorConfiguration. Similar issues.

That is what I was trying to say. It's scattered across the code base, so I'll change the name of this issue to something more descriptive

@dsyer the last commit resolves the issue by removing all autowiring from SLBPP.
There are still work to be done elsewhere, but this one now behaves properly (although I plan to polish it even more).
Please let me know if you feel differently.

Are we backporting that latest change (I don't see any improvement with Edgware.BUILD-SNAPSHOT)?

@dsyer no it hasn't been but I'll work on back-porting it shortly

@dsyer the latest changes have been back-ported.

No change here that I can see. All those BeanPostProcessorChecker messages still show up on startup, even though the StreamListenerAnnotationBeanPostProcessor has moved it's depdendency lookup till later in the cycle (afterSingletonsInstantiated() which is pretty early still).

Hmm,
I don't think you see anything coming out of or triggered by SLABPP.
There are indeed other components that still need work, and I am taking care of them incrementally one at the time.
Also, not sure I fully understand how is afterSingletonsInstantiated is pretty early still? Wasn't the whole purpose of it to address this exact issue? Am I missing something?

StreamEmitterAnnotationBeanPostProcessor is one culprit in this project. The same anti-pattern.
I guess afterSingletonsInstantiated() might turn out to be a good choice. I haven't tried that before in similar situations.

Agreed and is one I am working on to introduce same changes.
As for 'afterSingletonsInstantiated()' after discussing it with few folks and stepping through the code I believe we're ok as it is executed way past BPP lifecycle.


UNION is not working

I'm trying to use UNION ALL for selecting two different columns of sometimes the same rows in order to create a list of dates, see below a simplified version of what I'm trying to do:
alasql('SELECT [projectID], [Date1] FROM ? UNION ALL SELECT [projectID], [Date2] FROM ?',[projects])

As far as I know, this should work. However, no matter what I do, as long as  UNION or UNION ALL is present in the code I get the following error:
alasql.js:6580 Uncaught Error: Data source number 0 in undefined
	doJoin						@ alasql.js:6580
	queryfn3					@ alasql.js:6086
	queryfn2					@ alasql.js:6061
	(anonymous function)		@ VM3835:3
	(anonymous function)		@ alasql.js:6012
	queryfn						@ alasql.js:6009
	tatement					@ alasql.js:7031
	queryfn3					@ alasql.js:6172
	queryfn2					@ alasql.js:6061
	(anonymous function)		@ VM3833:3
	(anonymous function)		@ alasql.js:6012
	queryfn						@ alasql.js:6009
	statement					@ alasql.js:7031
	alasql.dexec				@ alasql.js:4304
	alasql.exec					@ alasql.js:4255
	alasql						@ alasql.js:128
	(anonymous function)		@ functions.js:1635		=> this is where I have the above code
	(anonymous function)		@ alasql.js:7044
	queryfn3					@ alasql.js:6330
	queryfn2					@ alasql.js:6061
	(anonymous function)		@ alasql.js:15353
	xhr.onload					@ alasql.js:3443

(I used the latest alasql.js 0.2.6 version.)
Am I doing something wrong, or is this a bug?

Thank you for a really well described error.
Does @agershun have any inputs on this?

Any news on this?
For now, I am using the following method to chain my results like this:
alasql('SELECT * FROM ? ORDER BY [deadline]',[
	alasql('SELECT [projectID], DATE([date1]) AS [deadline] FROM ?',[projects]).concat(
	alasql('SELECT [projectID], DATE([date2]) AS [deadline] FROM ?',[projects])).concat(
	alasql('SELECT [projectID], DATE([date3]) AS [deadline] FROM ?',[projects]))
]);

But I have a feeling that a functioning UNION  would be faster (not to mention cleaner):
alasql(
	'SELECT [projectID], DATE([date1]) AS [deadline] FROM ?  UNION ALL '+
	'SELECT [projectID], DATE([date3]) AS [deadline] FROM ? '+
	'ORDER BY [deadline]'
,[projects]);

... especially because it would require only one alasql call to the database.
Anyway, I just thought I'd share, maybe others might have the same problem for now.

just saw your original sql

alasql('SELECT [projectID], [Date1] FROM ? UNION ALL SELECT [projectID], [Date2] FROM ?',[projects])

first ? will give the first index (projects) and second ? will give the second index - but there is no data in the second index.

You sir are absolutely right.
However, one issue still remains: ORDER BY does not seem to have an effect on the joined results.  I tried adding ASC or DESC, no change.
Any ideas?

I made a jsfiddle to demonstrate ORDER BY failing: https://jsfiddle.net/gf845cfp/

As you have no WHERE statement the order by semanticly belongs to the second select of the union all.
I tried to put a (...) around, but the parser can not handle it.
So - the solution for you is to add WHERE 1 before your ORDER BY
https://jsfiddle.net/gf845cfp/1/

So - the solution for you is to add WHERE 1 before your ORDER BY
https://jsfiddle.net/gf845cfp/1/

I'm sorry, but it still doesn't seem to work, or am I missing something?
The fact that it produces the exact same order if you use ASC  or DESC, to me, shows that it's not working.
(To specify, I want it to order by price in the example, so the result should be in the order of: 100 200 300 400.)

Omg. Im so sorry - I looked in the wrong collumn to verify it worked !
Ill mark it as a bug again

Hi @tmrk
Had a look with fresh eyes. I dont know how I could miss this. The problem is that its sorting on an alias - and its not supported at the moment.
The solution is th have the union as a subquery - not both results have same sorting:
https://jsfiddle.net/hu0hzsrn/

The solution is th have the union as a subquery
Thank you! I confirm that this is working.

Sorting on alias shouldn't be a problem otherwise, as it's valid SQL, see an example here: http://sqlfiddle.com/#!9/3983f/1 Maybe an idea for future SQL compliance?
Anyway, thanks Mathias!

Glad I could help.

Sorting on alias shouldn't be a problem otherwise, as it's valid SQL.

True. I will make an "fresh" issue on the matter.

Hmm. Looks like it works in when there is no sub or union
https://jsfiddle.net/0dozpgvq/
I will reopen this to make sure I remember to identify the problem.


See what a functional approach to the downloader loop looks like

STUB: experiment in reducing the mutation from the _download loop using some functional primatives.

I don't actually think this is a good idea, but I wanted to see what it would take to remove the mutation from the batch value from the _download function. cc  @gsalgado
Assuming you agree with me that this is not a good idea, feel free to close this PR once you've marveled over the amazing functional zealotry.

Also, it took me a while to find the iterate function (no clue why) but it's the primative I've been looking for for a while.
# naive pattern
state = initial_state
while True:
     state = do_logic(state)

# with iterate
do_logic_iterator = iterate(do_logic, initial_state)
while True:
    next(do_logic_iterator)

# or as a for loop
for _ in iterate(do_logic, initial_state):
    pass

Yeah, I also think the functional version is far less readable


nixos/input-remapper: Fix missing [], add more options, add test

Motivation for this change
Fixes a bug, adds two new options for the service WantedBy target and the udev rules, and adds a test that the module works.
Disables python unit tests for the package due to flaky tests under high load. https://github.com/sezanzeb/input-remapper/issues/306
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Unfortunately I don't have the capacity to review this right now.
/status needs_reviewer

/status needs_reviewer


Infinite loop of requests are being sent to the authorize endpoint when third-party cookies are disabled in the browser

Describe the issue:
When using the Auth SDKs with third-party cookies disabled in the browser, infinite requests are being sent to the authorize endpoint. This is because, when third-party cookies are disabled, the obps cookie is not being sent with the requests when checking if the session state is changed.
Log in to one of the sample apps after disabling third-party cookies in the browser.
Expected behavior:
When third-party cookies are disabled, checking session state should be disabled.

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Follow issue 10925

https://github.com/D-Programming-Language/dmd/pull/4514

That merge was closed, so I'm closing this one as well.


remove obsolete .npmignore

Instead, white list files to be published

If there is no .npmignore, npm publish is looking for a .gitignore. As both these files have the same value right now, we don’t need .npmignore: https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package
README.md and LICENSE are published implicitly and don’t need to be listed in "files": https://docs.npmjs.com/files/package.json#files

Should tsconfig.json be in the files array if it's in the gitignore?

Good question Joe! I don’t know. I’m not using Typescript myself. I thought it would be a meta file used by IDEs to get information about the different methods, but looking at http://www.typescriptlang.org/docs/handbook/tsconfig-json.html it seems it’s only needed for development. I will amend my PR

Thanks!


Add dash as a legal property name character

Signed-off-by: Peter Rosin<EMAIL_ADDRESS>

@glikely, any ideas why latexdiff breaks? This is the first commit since v0.2


Multiple Patches I could submit if there is interest in them

Hi!
I have made a couple of small changes to the DNN source code regarding the issues below. If there is some interest in having those patches included we could discuss how to enable them (and the default setting):

DNN Platform\Library\Framework\AJAX.cs

I have added ", EnableScriptLocalization = false" in line 44. The default setting is EnableScriptLocalization = true and this leads to an attempt to load a localized version of the AJAX library. You should be able to see it in a Browser network trace if you have some module loaded on a page that uses AJAX. With this change in place it will not attempt to localize the file name. To see this problem you may have to enable the CDN for Ajax in order to load it from a Microsoft web server. If you load it from your site you may already have copied the original version of the library file to have the requested file name. Would be interesting to hear others opinion of this.

DNN Platform\Website\admin\Skins\Privacy.ascx.cs & Terms.ascx.cs

The rel="nofollow" for the link to privacy and terms should be at least part of the ascx file to configure "rel" without having to recompile DNN. I could add rel="nofollow" to the Privacy.ascx and Terms.ascx files and remove it from the cs file. Would that be sufficient? The default would still be the same and if one doesn't want it to be nofollow one could easily change it. There are mixed opinions on having it set to nofollow (pro and contra). Some say having it nofollow could look kind of shady.

DNN Platform\Website\Default.aspx.cs

We don't want to differentiate between en-us and en-en for example, or de-de and de-au so we cut the location off leaving the two letters of the language code in the rendered <html lang="en"> tag. We are not big enough of a site to have individual pages for each location and language is enough. What are your thoughts? Should this somehow be enabled/disabled? What would be the best way?
If there is any interest I could submit the 3 patches separately.
Best regards & happy DNNing
Andy9999

Hello Andy...  This is AWESOME to hear!  Thank you for offering to contribute these back to the core.  I'd recommend creating a separate issue for each (if it doesn't already exist), so that you and others can collaborate on, triage, and test/release each individually based on their states at the end of each release cycle.  Let's see what others say...  Thanks again for being awesome!  :)

Hello Will, Thank you. I will split it into separate topics as suggested. :)
Best regards & happy DNNing
Andy9999

I don't see (at leat on that issue) a stale problem, a comment is good to unstale an issue in between the period of time of the first stalebot comment about it being closed soon if not active and the final comment when the issue gets closed due to lack of anyone moving the subject forward. That being said, human will reopen commented closed issues at any sign of interest in handling a closed issue.

I reopened #4559 yesterday after this comment


Neoscrypt mining setup

Hi,
I was wondering if anyone knows how to setup multiminer for neoscrypt mining. I've tried every thing and can't find any info on google.

NeoScrypt is supported out-of-the-box now in MultiMiner and MultiMiner supports any custom algorithms and CGMiner forks.


'datasets.features' is not a package

@albertvillanova
python 3.9
os: ubuntu 20.04
In conda environment
torch installed by
/env/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
datasets package is installed by
/env/bin/pip  install datasets==1.8.0

During runing the code I have this error
[6]<stderr>:  File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class
[6]<stderr>:    return super().find_class(mod_name, name)
[6]<stderr>:ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package

precisely this error appears when
torch.load('data_file.pt')

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 607, in load
    return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
  File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load
    result = unpickler.load()
  File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class
    return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package

Why I am getting this error?

Hi @Arij-Aladel,
You are using a very old version of our library datasets: 1.8.0
Current version is 2.0.0 (and the previous one was 1.18.4)
Please, try to update datasets library and check if the problem persists:
/env/bin/pip install -U datasets

The problem I can no I have build my project on this version and old version on transformers. I have preprocessed the data again to use it. Thank for your reply


Sample page from readme is incorrecty

Hello,
Please, check your links from the readme file.
The Sample link redirect to another project.
Best regards

Corrected. Thank you!


1.6.0 yanked?

Hi there,
I just noticed that version 1.6.0 was yanked a few hours ago:

What's the rationale for if I may ask? And is there any chance it could be unyanked? It breaking a few of my dependencies.
Thanks

Why can't you use 1.6.1? Run cargo update.

I use fixed versions on my crates to have the choice on when to update them.
error: failed to select a version for the requirement `bytes = "=1.6.0"`
candidate versions found which didn't match: 1.6.1, 1.5.0, 1.4.0, ...
location searched: crates.io index
required by package `anise v0.4.0`
    ... which satisfies dependency `anise = "^0.4.0"` of package `nyx-space v2.0.0-rc (/home/runner/work/nyx/nyx)`

According to the Cargo Book:

Crates should only be yanked in exceptional circumstances, for example, an accidental publish, an unintentional SemVer breakages, or a significantly broken and unusable crate. In the case of security vulnerabilities, RustSec is typically a less disruptive mechanism to inform users and encourage them to upgrade, and avoids the possibility of significant downstream disruption irrespective of susceptibility to the vulnerability in question.

The change from 1.6.0 to 1.6.1 seems to not fall in this category, which is why I ask if there is any possibility for version 1.6.0 to be unyanked.
Thanks again

Crates shouldn't use = version constraints.

I've been bitten before by poor version management, hence the =.
Can't you just unyank 1.6.0? The change in 1.6.1 is very minimal and does not meet the criteria of the Cargo book.

The maintainers also did not yank the previous versions when bug fixes were release.

I guess I'm lost as to why the maintainers would yank 1.6.0 for a pretty minor PR and not specify it in the README.

I'm sorry, but by using =1.6.0 as a dependency constraint, you have explicitly signed up for this kind of churn in your project. You should use at least a tilde version constraint if crates being yanked is a problem for your workflow.
If you look at the actual cause of the bug, I think it's a pretty serious kind of mistake. It's reading memory of one type as another type. It only barely isn't a security vulnerability worthy of a CVE since the operation is not a write, the memory being read is not out of bounds, the type used for the read is valid for all possible values, and not used for anything more complicated than checking whether the value is equal to one.

I beg to differ. Your argument, if I understand it correctly, is that there almost was a vulnerability. The Cargo Book, as I quoted above, explicitly says that even for a vulnerability, a yank is not the right approach. So it just sounds like you've made an overly eager yank here.
The reason I use fixed version dependencies is because several of my dependencies will update a patch version when they ought to update a minor version. Locking in dependencies means that only in "exceptional circumstances" (to quote the Cargo Book again) will these dependencies no longer be available.
Would it please be possible to un-yank version 1.6.0? That's all I'm asking. Thanks again

Unbelievable.

The Cargo Book also recommends that  avoiding constraining SemVer too much. As an alternative, users can commit Cargo.lock into VCS.

Avoid constraining the upper bound of a version to be anything less than the next semver incompatible version (e.g. avoid ">=2.0, <2.4") as other packages in the dependency tree may require a newer version, leading to an unresolvable error (see #9029). Consider whether controlling the version in your Cargo.lock would be more appropriate.

cargo update --precise <yanked> will be stabilized in 1.80 so you can opt-in yanked versiond as you wish.

I mean, maybe yanking crates in this situation is the wrong way to go about it. But yanking versions with issues like this has precedent in the bytes crate going back to 2019, whereas the guidance you are quoting from the cargo book is from 2023. In fact, this is the first I hear of it.
As for the 1.2.1 patch release that was not yanked, that was a less serious bug.

Mistakes happen, I totally get it, and I make mistakes all the time. All I was asking was un-yank version 1.6.0, nothing more: it's just a single click on crates.io. This would still allow for dependent crates which specify version bytes = "1.6.0" will be updated automatically.
Among of the many advantages of the Rust ecosystem are reliable crate versions and reproducible builds. Yanking version 1.6.0 for a simple bug fix will break numerous other packages. Should the dozens and dozens of users be expecting that future bug fixes (without vulnerabilities, as said above) will also lead to previous version of bytes being yanked?
I'm not trying to impose any kind of onerous requirement here. I too maintain OSS, and it can be a lot of extra and demanding work. Again, all I am asking for is to unyank version 1.6.0 which was eagerly yanked for a bug fix.
Thank you

If you want reproducible builds you should check in a lockfile.

I'm sorry this has been a problem for you. Though, I do agree with Alice's assessment that yanking was appropriate. If it helps nudge people off a potentially bad version, then keeping it yanked can be for the greater good.
I hope you can increase the version you depend on your crates. The libraries maintained by us all very strictly follow semver. We put in a lot of effort to curate these crates for many users.
I'd suggest that it would be better to ask those who don't follow semver to do so, or just not depend on those crates.
However, because this has pulled in several of the maintainers already, and they're all extremely busy, I'm inclined to close this down and lock it.


Android FireFox - No go

Not working with Firefox Android. The settings screen is blank, no way to turn on.

Duplicate of #245.

Should work now. Static Theme is used by default, FIlters are slow on smartphones and decrease battery life.


Newbie question: Can I drag an object and drop another?

I have an image as drag origin, but I want drop a diferent object (a Vue component, in fact) on the target. Obviously this component is someway linked to the origin image (the image of a button will drop a real button on target, for example).
Any hints about this?

I do something similar. There might be a better way of achieving this, but this is how I do it:
Based on the 'drag from outside' example 10 I define my layout:
      layout: [
        { x: 0, y: 0, w: 1, h: 1, i: "0", kind: "button"},
        { x: 2, y: 0, w: 2, h: 4, i: "1", kind: "textarea" },
      ],

and a palette of things to drag

Textarea<textarea disabled></textarea>

<button>Click Me</button>

<input disabled>

and html
        <grid-item
          v-for="item in layout"
          :x="item.x"
          :y="item.y"
          :w="item.w"
          :h="item.h"
          :i="item.i"
          :key="item.i"
        >
          <TestElement :msg="item.i" :kind="item.kind"></TestElement>

        </grid-item>

Notice I am creating a bunch of TestElement components. However within that TestElement component is the real component, as mentioned in #56. Thus TestElement.vue is something like:
<template>

    <button v-if="kind == 'button'">Click me</button>

    <input v-if="kind == 'input'" />

    <textarea v-if="kind == 'textarea'"></textarea>

      Choose a car:
      <select id="cars" name="cars">
        <option value="volvo">Volvo</option>
        <option value="saab">Saab</option>
        <option value="fiat">Fiat</option>
        <option value="audi">Audi</option>
      </select>

      {{ msg }}

</template>

thus based on the kind property in the drag from div, I can control what is created within the TestElement component.

It turns out that the other, better way of doing it (also mentioned in  #56) is to use the vue built in dynamic component creation trick, which creates a component specified by the value of  :is="someComponentName".
Here you would define your grid data like this, where kind refers to a vue component name (notice it starts with an uppercase letter):
layout: [
  { x: 6, y: 0, w: 1, h: 1, i: "2", kind: "Button", },
  { x: 7, y: 0, w: 1, h: 1, i: "3", kind: "ButtonHugging"  },
  { x: 6, y: 2, w: 1, h: 1, i: "4", kind: "Select" },

Your template would look like this:
      <grid-layout
        ref="gridlayout"
       ...
      >
        <grid-item
          v-for="item in layout"
          :x="item.x"
          :y="item.y"
          :w="item.w"
          :h="item.h"
          :i="item.i"
          :key="item.i"
        >
          <component v-bind:is="item.kind" :msg="item.i"></component>

        </grid-item>
      </grid-layout>

Notice we are no longer using a wrapper component TestElement but specifying the component we want directly via item.kind. In the for loop, the component that ends up being created within the grid-item by vue may be different each time.
Hooking into drag/drop
Define a palette of things to drag

            <Button>Drag Button</Button>

      ...

the component you want to create on drop is stored in the attribute data-kind.  At least that's how I did it.
Assuming you are using the drag/dragend functions from example 10, you'll have to modify the drag function to pass the kind information all the way through to the dragend function where the final this.layout.push(item) happens.  The item you push needs to have the kind property for the vue template to do its thing.
Passing the kind information from the dragged palette object involves setting kind on the temporary 'drop' item, then on the global DragPos object, then on the final item that is pushed by the dragend function.


GitHub: Invite member

Who should be invited to Catena-X ng
GitHub User:
ds-psosnowski
Vouching person: ds-mkanal

Invitation sent. Please keep in mind, that the invitation is valid for 7 days. After the invite has been accepted by ds-psosnowski a maintainer can add the user to required GH Teams.

Invite was accepted and a maintainer added user to a GH team.
ok2close


i18n: Update Italian Translations

Added all missing Italian translations for the next coming release (#345)

I've used my previous fork for this PR, maybe a merge by squash is needed.


Signature help doesn't open when accepting generic type completion

In this code, accepting the Vec<...> completion places the cursor inside the <> brackets, but unlike when typing < by hand it does not open the signature help popup:
fn f() {
    let t: Ve$0
}

For function calls, this appears to work fine. For example, typing Vec::with_cap and accepting the with_capacity(...) completion places the cursor inside the parentheses, prefills the capacity argument with a placeholder, and opens the signature help popup. Such a placeholder is not included in the type completion, so that might be why it doesn't work there.

The completion needs to explicitly trigger the call info/signature help via https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_completion/src/item.rs#L514-L517


error: ‘requires’ only available with ‘-fconcept

Exceptional work! I ran camsim successfully. but the wurblpt didn't work on my computer.  The software environment is:
Ubuntu 20.04
GCC 9.4.0
CMake 3.16.3
According to readme.md, I install libtgd and libwurblpt. When I ran the wurblpt-tof-example, the problems occur：
In file included from /usr/local/include/wurblpt/transformation.hpp:28,
from /usr/local/include/wurblpt/animation.hpp:33,
from /usr/local/include/wurblpt/scene.hpp:36,
from /usr/local/include/wurblpt/wurblpt.hpp:42,
from /home/fxw/so/wurblpt/wurblpt-tof-example/wurblpt-tof-example.cpp:32:
/usr/local/include/wurblpt/gvm.hpp:88:52: error: ‘requires’ only available with ‘-fconcepts’
88 |     template constexpr T min(T x, T y) requires (std::is_arithmetic_v) { return (x < y ? x : y); }
|                                                    ^~~~~~~~
/usr/local/include/wurblpt/gvm.hpp:93:52: error: ‘requires’ only available with ‘-fconcepts’
93 |     template constexpr T max(T x, T y) requires (std::is_arithmetic_v) { return (x > y ? x : y); }
|                                                    ^~~~~~~~
/usr/local/include/wurblpt/gvm.hpp:98:69: error: ‘requires’ only available with ‘-fconcepts’
98 | plate constexpr T clamp(T x, T minval, T maxval) requires (std::is_arithmetic_v) { return min(maxval, max(minval, x)); }
|                                                              ^~~~~~~~
In file included from /usr/local/include/wurblpt/transformation.hpp:28,
from /usr/local/include/wurblpt/animation.hpp:33,
from /usr/local/include/wurblpt/scene.hpp:36,
from /usr/local/include/wurblpt/wurblpt.hpp:42,
from /home/fxw/so/wurblpt/wurblpt-tof-example/wurblpt-tof-example.cpp:32:
/usr/local/include/wurblpt/gvm.hpp:100:56: error: ‘requires’ only available with ‘-fconcepts’
100 |     template constexpr T step(T edge, T x) requires (std::is_arithmetic_v) { return (x < edge ? T(0) : T(1)); }
|                                                        ^~~~~~~~
/usr/local/include/wurblpt/gvm.hpp:102:52: error: ‘requires’ only available with ‘-fconcepts’
102 |     template constexpr T mod(T x, T y) requires (std::is_integral_v) { return x - (x / y) * y; }
|                                                    ^~~~~~~~
/usr/local/include/wurblpt/gvm.hpp:103:52: error: ‘requires’ only available with ‘-fconcepts’
103 |     template constexpr T mod(T x, T y) requires (std::is_floating_point_v) { return x - std::floor(x / y) * y; }
|                                                    ^~~~~~~~
/usr/local/include/wurblpt/gvm.hpp:103:38: error: redefinition of ‘template constexpr T WurblPT::mod(T, T)’
103 |     template constexpr T mod(T x, T y) requires (std::is_floating_point_v) { return x - std::floor(x / y) * y; }
|                                      ^~~
......
In file included from /usr/local/include/wurblpt/wurblpt.hpp:49,
from /home/fxw/so/wurblpt/wurblpt-tof-example/wurblpt-tof-example.cpp:32:
/usr/local/include/wurblpt/texture_image.hpp: In function ‘WurblPT::Texture* WurblPT::createTextureImage(const TGD::ArrayContainer&, WurblPT::LinearizeSRGBType, const vec2&, const vec2&, const vec4&, const vec4&)’:
/usr/local/include/wurblpt/texture_image.hpp:270:27: error: expected type-specifier
270 |                 tex = new TextureImage<1, TGD::uint8, true>(img, coordFactor, coordOffset, valFactor, valOffset);
|                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/wurblpt/texture_image.hpp:272:27: error: expected type-specifier
272 |                 tex = new TextureImage<1, TGD::uint8, false>(img, coordFactor, coordOffset, valFactor, valOffset);
|                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/wurblpt/texture_image.hpp:275:27: error: expected type-specifier
275 |                 tex = new TextureImage<1, TGD::uint16, true>(img, coordFactor, coordOffset, valFactor, valOffset);
|                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/wurblpt/texture_image.hpp:277:27: error: expected type-specifier
277 |                 tex = new TextureImage<1, TGD::uint16, false>(img, coordFactor, coordOffset, valFactor, valOffset);
|                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.......
So, how to solve this problem?(perheps the gcc version problem?)

Yes, WurblPT uses C++ 2020, which gcc 9 does not yet fully support.
It should be sufficient to add -fconcepts to CMAKE_CXX_FLAGS with gcc 9. In the example programs, the CMakeLists.txt files already contain a line that modifies CMAKE_CXX_FLAGS. You can add -fconcepts there. For libwurblpt, you can add the same line at the end of the section Requirements in CMakeLists.txt.
Alternatively, you can use a newer version of gcc.

cool, add "set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fconcepts") " in the CMakelists of Wurblpt-tof-example and libwurblpt. The solution is quite effective, but it causes another problem(I think it's  the last one) :
In file included from /usr/include/c++/9/cassert:44,
from /usr/local/include/wurblpt/geometryproc.hpp:28,
from /usr/local/include/wurblpt/mesh.hpp:33,
from /usr/local/include/wurblpt/scene.hpp:41,
from /usr/local/include/wurblpt/wurblpt.hpp:42,
from /home/fxw/so/wurblpt/wurblpt-tof-example/wurblpt-tof-example.cpp:32:
/usr/local/include/wurblpt/bvh.hpp: In static member function ‘static const WurblPT::BVHNode* WurblPT::BVHNode::buildBVH(size_t, std::vector<const WurblPT::Hitable*>, WurblPT::AnimationCache&, WurblPT::AnimationCache&)’:
/usr/local/include/wurblpt/bvh.hpp:183:13: error: ‘omp_get_supported_active_levels’ was not declared in this scope; did you mean ‘omp_get_max_active_levels’?
183 |             assert(size_t(omp_get_supported_active_levels()) >= maxTreeDepth);
|             ^~~~~~
Perheps, the openMP cause this problem? （Rebuild the openMP？）

Well, I try to use "omp_get_max_active_levels" in the bvh.hpp. I find this program(tof-example) can run, but i don't know whether the result is correct.

Yes, you can use omp_get_max_active_levels instead. The function was just renamed in newer versions of OpenMP.
This is in an assert statement, which means it is only used in Debug builds anyway.
You probably want to set CMAKE_BUILD_TYPE to Release to get vastly better performance.

Great, the method is very useful. Well done.


Windows Terminal port

got it done, just waiting for someone to create repository

Invited you to org. You should be able to create a repo

Invited you to org. You should be able to create a repo

thanks!

Work complete, needs repo moved to Public and main repo README updated


⚠ Bofrost.be has degraded performance

In e1246b9, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1324 ms

Resolved: Bofrost.be performance has improved in f9a2487.


n_augment

could you tell me how "n_augment" works?

It creates an augmented version of the dataset containin n_augment samples. For the CelebA dataset it doesn't really help and you might simply set n_augment=0 in which disables augmentation.

Should I decrease the complexity of the model to decrease parameters and avoid overfitting when I set n_augment=0?

No, that is not my experience. Are we talking CelebA?

Yes.
I try to implement your algorithm on my own and my model's parameters are no more than yours, but  my model seems to overfit because the validation error increases after several epochs.
I guess maybe it is because i don't augment the CelebA data ?

What are you measuring as validation error?

The reconstruction error — second term in your loss function

Ok, I wouldn't worry about that since the reconstruction error is measured in a feature space. The scale of the feature representation may increase over time which leads to larger reconstruction errors. I guess this is what you are observing.


Higher level parameters not given in plot names

I'm not sure if this should be fixed at this point or is a work in progress, but for putting the plots onto the website Rupert needs the Location, Site and Sample names in the plot name. For this contribution
magic_contribution_16462.txt
we get files names like:
LO:__SI:__SA:__SP:_0SC2105_CO:_g_TY:demag.png
LO:__SI:__SA:__SP:_0SC2105_CO:_g_TY:eqarea.png
LO:__SI:__SA:__SP:_0SC2105_CO:_g_TY:zijd.png
Specimens show up but nothing else.

@njarboe, this is not something I've been working on, but I can go about fixing now.  zeq_magic.py should now be producing file names as expected, and I'll also check the others.
What should we do in a case like polemap_magic, where multiple locations are plotted in one figure? It currently looks like this:
'LO:_' + locations + '_POLE_map.' + fmt

but that probably won't work well.  Any ideas on how to handle this?

Other question: in all cases, will we need the full hierarchy, from location down, in order to use the figure?

colon delimited list of locations?

On Jul 13, 2018, at 4:31 PM, Lori J<EMAIL_ADDRESS>wrote:
@njarboe https://github.com/njarboe, this is not something I've been working on, but I can go about fixing now. zeq_magic.py should now be producing file names as expected, and I'll also check the others.
What should we do in a case like polemap_magic, where multiple locations are plotted in one figure? It currently looks like this:
'LO:_' + locations + '_POLE_map.' + fmt
but that probably won't work well. Any ideas on how to handle this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/PmagPy/PmagPy/issues/391#issuecomment-404978933, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKrDdmTcU5FJLWkVZIn7LeJm71lHWBSks5uGS3NgaJpZM4VPdi0.

it would seem so but that will be awkward and should only happen within make_magic_plots and not in all the sub programs.  It is really annoying to have some of these programs break because of a lack of full hierarchy.
lisa

On Jul 13, 2018, at 4:52 PM, Lori J<EMAIL_ADDRESS>wrote:
Other question: in all cases, will we need the full hierarchy, from location down, in order to use the figure?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/PmagPy/PmagPy/issues/391#issuecomment-404981208, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKrDYsYrXn9T0dGVcHIXBL3sOXxHsupks5uGTK4gaJpZM4VPdi0.

@ltauxe, definitely -- I will set it up so it won't break anything.  For the most part, this code will only be run when isServer is set to True.  And even on the server, it won't break if the full hierarchy is missing, it will just produce incomplete plot names.  Propagating all of the names down will slow the program down a bit, but again, it will only be run when isServer is set to True.

Regarding the list of location names: colons aren't permitted in filenames in Windows, but should be ok in Linux.  @njarboe, are we assuming that the relevant server for MagIC will always be Linux?
Another issue is that occasionally a contribution will have a lot of locations, and then sometimes a too-long filename is created.  This occurred with one of the contributions I was testing recently, so I added some code into polemap_magic.py to truncate super long lists of locations.

It's unlikely we would move to a Windows OS for the MagIC plot server, so the colons should be fine.

  I forgot about that.
I'm checking through the rest of the plotting programs and should be done soon!

For programs like dayplot_magic.py, where all specimens are being plotted, what should the naming convention look like?  Currently, it looks like this: LO:_McMurdo_SI:__SA:__SP:__TY:_day_.svg.  Is that satisfactory?

@njarboe, aside from the above question, the naming convention should be fixed.  Let me know what other issues you find in make_magic_plots.py.

I've run through most of the MagIC Files with your first changes here. Filenames are much improved. Thanks. There aren't any errors thrown at this point. I'll rerun them to get your most recent improvements. Then I'll take a close look at those plots that don't seem to be working and let you know if there are data files that should be plotting but aren't and open those as new issues.

If the pole map is plotting the poles for all the locations in the contribution, it would be nice to have 'MC:_' + MagicContributionNumber + '_POLE_map.' + fmt  This plot would be shown at the contribution level.
I'm not sure how it currently is expected to work, but it would also be nice to have the plots of the pole for each location, if available, by itself to display at the location level. In that case 'LO:_' + location + '_POLE_map.' + fmt  would be good.

I think leaving out levels that are not expected to exist is cleaner for humans to read but the other is more explicit to what is going on. Since it will just be machine read or looked at by developers I would say keep the LO:_McMurdo_SI:__SA:__SP:__TY:day.png format.

@moonshoes87 Running through all the data files again. I'll spot check a few more and then I think we should be ready to put them on the live site. Thanks.


Source links in scaladoc are wrong for 3.3.3

Compiler version
3.3.3
Minimized example
https://scala-lang.org/api/3.3.3/scala/collection/immutable/Vector.html
Output
The source link points to https://github.com/lampepfl/dotty/blob/3.3.3/out/bootstrap/stdlib-bootstrapped/scala-3.3.2-bin-SNAPSHOT-nonbootstrapped/src_managed/main/scala-library-src/scala/collection/immutable/Vector.scala#L115
Expectation
The source should point tohttps://github.com/scala/scala/blob/v2.13.12/src/library/scala/collection/immutable/Vector.scala#L115

@Kordyjan your wheelhouse?

Workaround (based on tip from @JD557 - thanks!!):
View old docs from 3.3.2 https://www.scala-lang.org/api/3.3.2/

So also old docs needs to be updated; there is a big risk that a newcomer comes to another version of the docs when sifting the net....

This looks to be the same issue as https://github.com/scala/scala3/issues/15689
And I still think that this is an issue with the release procedure and not the scaladoc itself.
Curiously though, there seems to be a pattern of only the last patch release in every minor being broken. Is there a different script for releasing the last patch in a minor line?


Specify Port Forwarding's Port

What would you like to be added:
When port forwarding to a container, I want to specify the client local port.
Why is this needed:
Used for debugging and connecting to Databases, and any TCP services, it is inconvinent having to configure my tool to whatever the random port Lens chooses every time.
Environment you are Lens application on:

Kubernetes distribution: [EKS, AKS, GKE, Rancher, ...] EKS ( but this is applicable to any )
Desktop OS: ( Mac, & Linux )

Thanks for reporting this, however, we already have a request for this. https://github.com/lensapp/lens/issues/2340


Auto replicanti galaxy button jitters

The button outline (not the text) for the replicanti galaxy auto toggle has a tendancy to move back and forth rapidly. It eventually stops once things slow down in longer runs. I've only tested on the dark theme, but it happens every time I start a new infinity so it should be easy to reproduce.

Resolved in the time dilation update.


Bump png to 0.14

Signed-off-by: Robert-André Mauchin<EMAIL_ADDRESS>Tested in Fedora Rawhide
https://copr.fedorainfracloud.org/coprs/eclipseo/rav1e/package/rust-resize/

Thanks!


Update README.md

But why? Login shows a practical example, when a custom JSON might be useful.

its not working. @custom needs to same as the function name like this
/**
* @login
* @summary Lorem ipsum dolor sit amet
* @paramPath provider - The login provider to be used - @enum(google, facebook, apple)
* @responseBody 200 - {"token": "xxxxxxx"}
* @requestBody {"code": "xxxxxx"}
*/
	public async login({ request, response }: HttpContextContract) {}

Oh sorry, my bad... I just saw the lines where you changed login to custom... but didn't realize, I hadn't uniformed it. Thx 👍


Added example of how to activate +ein-hydra

Small change to README.org with an example of how to bind ein hydra. The code is based on hlissner's suggestion when I asked about this on Discord. Might be useful for other users setting up ein who are not too familiar with hydras (I didn't know you have to append /body to hydra definition to actually call it).

Sorry for the tremendously late response. Thank you for your help!


Suggestion: Ignore settings_data.json setting

A suggestion: A setting in the gruntfile that ignores the settings_data.json and doesn't upload it to the site if changes to it are detected.
I see there is an option for this on the upload command, but don't see a similar setting for the watch command.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

You can use the upload_patterns filter to exclude this. Haven't tested it myself but using globbing patterns in grunt you can exclude the file.
upload_patterns: ['assets/*.*','config/*.*','layout/*.*','locales/*.*','snippets/*.*','templates/*.*','templates/customers/*.*', '!settings_data.json']

Let me know if that doesn't work any I'll set a flag but I'd prefer this approach.


Only allocate buf for ticket_nonce if length is larger than zero

calloc may return NULL if size of 0, depending on implementations.

Thanks for reviewing. Updated


[site is down] strange exception after testing site stability

Site https://imperium.org.ru
#0 /srv/wondercms-imperium.org.ru/index.php(92): Wcms->getDb()
#1 /srv/wondercms-imperium.org.ru/index.php(14): Wcms->__construct()
#2 {main}
thrown in /srv/wondercms-imperium.org.ru/index.php on line 539" while reading response header from upstream, client: <IP_ADDRESS>, server: imperium.org.ru, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/imperium-php-fpm.sock:", host: "imperium.org.ru"
2020/05/13 00:22:12 [error] 25915#25915: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Return value of Wcms::getDb() must be an instance of stdClass, null returned in /srv/wondercms-imperium.org.ru/index.php:539
Stack trace:
#0 /srv/wondercms-imperium.org.ru/index.php(92): Wcms->getDb()
#1 /srv/wondercms-imperium.org.ru/index.php(14): Wcms->__construct()
#2 {main}
thrown in /srv/wondercms-imperium.org.ru/index.php on line 539" while reading response header from upstream, client: <IP_ADDRESS>, server: imperium.org.ru, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/imperium-php-fpm.sock:", host: "imperium.org.ru"
2020/05/13 00:24:10 [error] 25915#25915: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Return value of Wcms::getDb() must be an instance of stdClass, null returned in /srv/wondercms-imperium.org.ru/index.php:539
Stack trace:
#0 /srv/wondercms-imperium.org.ru/index.php(92): Wcms->getDb()
#1 /srv/wondercms-imperium.org.ru/index.php(14): Wcms->__construct()
#2 {main}
thrown in /srv/wondercms-imperium.org.ru/index.php on line 539" while reading response header from upstream, client: <IP_ADDRESS>, server: imperium.org.ru, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/imperium-php-fpm.sock:", host: "imperium.org.ru"
Now my site is down. How to fix it?

@robiso should I place web site snapshot?
nginx config:
`
user melkor; #Special user for security. Make sure you changed permissions of /var/lib/nginx/tmp/
worker_processes 4;
error_log /var/log/nginx/error_log info;
pid /var/run/nginx.pid;
events {
worker_connections 512;
use epoll;
}
http {
include mime.types; #TODO: add more mimetypes
default_type application/octet-stream;
##Timeouts and limits
client_header_timeout 10m;
client_body_timeout 10m;
send_timeout 10m;
client_max_body_size 100m;
##Compression
###Old style compression — gzip. However, can be overriden for some locations
gzip off; #Disabled because there are brotli replacement
###New type of compression algoritm — brotli
###See https://github.com/google/ngx_brotli
###Also brotli --help
brotli on; #Enables
brotli_static on; #Enables precompressed ones like jquery.js.br
brotli_comp_level 4; #Level of compression; By default 6; Range from 0 to 11;
#brotli_types *; #All compressed, enable only for the desired sites
brotli_min_length 128; #Do not use compression for files smaller that 128 bytes; By default 20
brotli_window 512k; #Default. Can be overriden for some locations or servers. Acceptable values are 1k, 2k, 4k, 8k, 16k, 32k, 64k, 128k, 25>
server {
listen 80;
server_name imperium.org.ru;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/imperium.org.ru/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/imperium.org.ru/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
server_name imperium.org.ru;
root /srv/wondercms-imperium.org.ru;
index index.php;
include fastcgi.conf;
brotli_types *; #All compressed
autoindex off; #Prevent directory listing
rewrite url to make it pretty
location / {
if (!-e $request_filename) {
rewrite ^/(.+)$ /index.php?page=$1 last; }
}
prevent access to database.js
location ~ database.js {
return 403;
}
location ~ cache.json {
return 403;
location ~ cache.json {
return 403;
}
use php-fpm for dealing with php files
location ~ .php(/|$) {
using unix socket
try_files $uri =404;
fastcgi_pass unix:/run/imperium-php-fpm.sock;
}
}
`

RarogCmexExp ~ # LC_ALL=C diff /srv/wondercms-imperium.org.ru/data/database.js /mnt/data/Ds.Backups/beta.1/localhost/srv/wondercms-imperium.org.ru/data/database.js
Binary files /srv/wondercms-imperium.org.ru/data/database.js and /mnt/data/Ds.Backups/beta.1/localhost/srv/wondercms-imperium.org.ru/data/database.js differ

Seems like database.js corrupted

@robiso send compressed site archive with database to you<EMAIL_ADDRESS>

Database is recovered from backup, site now working.
May be I have just bad webserver, because I created ones from semi-broken notebook 2010 yearborn :(
Accident is happened when I experiment with pm.max_children = 6 in php settings. I tries to increase it up to 30 to see memory consumption.

@RarogCmex, thanks for the report.
Is there any chance you could create a backup of your website again and try to reproduce the same case?

@robiso I'll try that, but may be it's hardware error.

@RarogCmex looking forward and intrigued to see what the results will be.

@robiso It seems like hardware error. I can't reproduce it.

Should ticket be closed?

@RarogCmex thanks for getting back to me on a such short notice. I'll close the issue, but please feel to re-open it if you run into any issues.
If you're interested in something a bit more fresh, I've just published an pre-release version of WonderCMS 3.0.8 with some interesting improvements:

https://github.com/robiso/wondercms/tree/experimental3.0.8

Let me know if you want to run it for a spin, should work even faster.


Update contribution and hacking docs

Remove all osbuild-composer info from CONTRIBUTING.md and HACKING.md and write useful development and testing guides for this repo.

Splendid!


lock viewpager swipe when image is zoomed

I have a view pager that shows images. I want to lock the viewpager swipe when image is zoomed so that when image is zoomed user can not swipe to next image, user have to zoom out and then can swipe to the next image. How to achieve that ?

achieve by coding man

I think you'll need to create your own fork of the library to do this. That's not something I'm able to assist with, but look for references to page swipe and experiment with changing that code.


Doesn't work with jQuery 3.2.1 and above

Basically it give an error like:
i.prevAll(...).andSelf is not a function
How to reproduce it: change the jquery url from 1.10.2 ro 3.2.1 and you should see it.

Sorry, my fault, it's fixed on that repository, but it's still with andSelf() in the npm repo

No problem, versioning is hard! :-)


Cannot launch QT applications when disabling Xwayland

Already reported ? *

[X] I have searched the existing open and closed issues.

Regression?
No
System Info and Version
 System/Version info
Hyprland, built from branch  at commit 0c7a7e2d569eeed9d6025f3eef4ea0690d90845d  (version: bump to 0.44.0).
Date: Sun Oct 6 11:04:13 2024
Tag: v0.44.0, commits: 5299
built against aquamarine 0.4.1

flags: (if any)

System Information:
System name: Linux
Node name: liu
Release: 6.6.54-1-lts
Version: #1 SMP PREEMPT_DYNAMIC Sat, 05 Oct 2024 17:53:31 +0000

GPU information:
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] [1002:15dd] (rev c4) (prog-if 00 [VGA controller])

os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

plugins:

======Config-Start======

Config File: /home/liu/.config/hypr/hyprland.conf: Read Succeeded
$source_dir = ~/.config/hypr/conf
$scripts_dir = ~/.config/hypr/scripts

# Source color theme
source = $source_dir/color.hypr.conf

# Monitor config
source = $source_dir/monitor.hypr.conf

# Input config
source = $source_dir/input.hypr.conf

# General config
source = $source_dir/general.hypr.conf

# Decoration config
source = $source_dir/decoration.hypr.conf

# Animation config
source = $source_dir/animations.hypr.conf

# Master layout config
source = $source_dir/master.hypr.conf

# Gestures config
source = $source_dir/gestures.hypr.conf

# Keybindings config
source = $source_dir/binds.hypr.conf

# Misc configs
source = $source_dir/misc.hypr.conf

# Cursor config
source = $source_dir/cursor.hypr.conf

# Environment Variables
source = $source_dir/env.hypr.conf

# Autostart
source = $source_dir/autostart.hypr.conf

# Window rules and layer rules
source = $source_dir/rules.hypr.conf

Config File: /home/liu/.config/hypr/conf/color.hypr.conf: Read Succeeded
# Grubvox color
$fg = rgb(EBDBB2)
$bg = rgb(282828)
$black = rgb(1D2021)
$red = rgb(CC241D)
$lightred = rgb(fb4934)
$green = rgb(98971A)
$lightgreen = rgb(B8BB26)
$yellow = rgb(D79921)
$lightyellow = rgb(FABD2F)
$blue = rgb(458588)
$lightblue = rgb(83A598)
$purple = rgb(B16286)
$lightpurple = rgb(D3869B)
$aqua = rgb(689D6A)
$lightaqua = rgb(8EC07C)
$white = rgb(FBF1C7)
$orange = rgb(D65D0E)
$lightorange = rgb(FE8019)

Config File: /home/liu/.config/hypr/conf/monitor.hypr.conf: Read Succeeded
monitor=,preferred,auto,1

Config File: /home/liu/.config/hypr/conf/input.hypr.conf: Read Succeeded
# Input devices config
input {
    kb_layout = us
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

    follow_mouse = 1
    accel_profile = flat

    touchpad {
        disable_while_typing = true
        natural_scroll = true
        tap-to-click = true
    }

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}

# Touchpad config
device {
    name = elan2203:00-04f3:309a-touchpad
    accel_profile = adaptive
}

# Disable laptop keyboard by default
$LAPTOP_KB_ENABLED = false
$STATUS_FILE="$XDG_RUNTIME_DIR/keyboard.status"
exec-once = printf "false" >"$STATUS_FILE"
device {
    name = kanata
    enabled = $LAPTOP_KB_ENABLED
}

Config File: /home/liu/.config/hypr/conf/general.hypr.conf: Read Succeeded
general {
    gaps_in = 3
    gaps_out = 5
    border_size = 3
    col.active_border = $blue $aqua 45deg
    col.inactive_border = $bg $fg 45deg
    no_border_on_floating = false

    layout = master
}

Config File: /home/liu/.config/hypr/conf/decoration.hypr.conf: Read Succeeded
decoration {
    rounding = 6

    drop_shadow = false
    dim_inactive = false
    blur {
        enabled = true
        size = 8
        passes = 2
    }
}

Config File: /home/liu/.config/hypr/conf/animations.hypr.conf: Read Succeeded
animations {
    enabled = yes

    bezier=slow,0,0.85,0.3,1
    bezier=overshot,0.7,0.6,0.1,1.1
    bezier=bounce,1,1.6,0.1,0.85
    bezier=slingshot,1,-2,0.9,1.25
    bezier=nice,0,6.9,0.5,-4.20

    animation=windows,1,4,bounce,slide
    animation=border,1,4,default
    animation=fade,1,4,default
    animation=workspaces,1,4,overshot,slide
}

Config File: /home/liu/.config/hypr/conf/master.hypr.conf: Read Succeeded
master {
    mfact = 0.5
    new_status = master
    new_on_top = true
    no_gaps_when_only = true
}

Config File: /home/liu/.config/hypr/conf/gestures.hypr.conf: Read Succeeded
gestures {
    workspace_swipe = true
}

Config File: /home/liu/.config/hypr/conf/binds.hypr.conf: Read Succeeded
$mainMod = SUPER

# Start terminal
bind = $mainMod, return, exec, foot
bind = $mainMod, m, exec, env ZELLIJ_ENABLED=true foot zellij attach -c my_zellij_session

# Kill active window
bind = $mainMod SHIFT, Q, killactive,

# Logout
bind = $mainMod SHIFT, E, exec, $scripts_dir/powermenu

# Reload Configuration
bind = $mainMod, R, exec, hyprctl reload && notify-send "Configuration reloaded"

# Toggle floating
bind = $mainMod SHIFT, space, togglefloating,

# Launcher
bind = $mainMod, D, exec, rofi -show drun

# Toggle fullscreen
bind = $mainMod, F, fullscreen,

# Cycle through windows (NOTE: master layout only)
bind = $mainMod, J, layoutmsg, cyclenext
bind = $mainMod, K, layoutmsg, cycleprev

# Swap windows (NOTE: master layout only)
bind = $mainMod SHIFT, J, layoutmsg, swapnext
bind = $mainMod SHIFT, K, layoutmsg, swapprev

# Move to previous or next workspace
bind = $mainMod, H, workspace, -1
bind = $mainMod, L, workspace, +1

# Move current window to previous or next workspace
bind = $mainMod SHIFT, L, movetoworkspace, +1
bind = $mainMod SHIFT, H, movetoworkspace, -1

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Special workspace
bind = $mainMod, I, togglespecialworkspace,
bind = $mainMod SHIFT, I, movetoworkspace, special

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# Start firefox borwser
bind = $mainMod, N, exec, firefox
bind = $mainMod SHIFT, N, exec, firefox --private-window

# Screen saver (NOTE: hyprlock)
bind = $mainMod SHIFT, X, exec, hyprlock

# Volume keys
bind = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
binde=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
binde=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-

# Backlight
binde = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
binde = , XF86MonBrightnessUp, exec, brightnessctl set 5%+

# Clipboard manager (NOTE: wl-clipboard cliphist fzf)
bind = $mainMod SHIFT, V, exec, foot --title=clipboard $scripts_dir/cliphist-fzf-sixel

# Screenshot (NOTE: grim slurp satty)
bind = $mainMod, P, exec, grim -g "$(slurp)" - | satty --filename - --fullscreen --output-filename ~/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png
bind = $mainMod SHIFT, P, exec, grim - | satty --filename - --fullscreen --output-filename ~/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png

# Change wallpapers (NOTE: swaybg)
bind = $mainMod SHIFT, W, exec, killall -9 wallpaper_service ; killall -9 sleep ; $scripts_dir/wallpaper_service
bind = $mainMod, C, exec, loupe $(cat ~/.cache/current_wall.txt)
bind = $mainMod SHIFT, C, exec, cp $(cat ~/.cache/current_wall.txt) ~/wallpapers/collection/ && notify-send "已收藏当前壁纸"

# Open notification center (NOTE: swaync)
bind = $mainMod SHIFT, F, exec, swaync-client -t -sw

# Submap resize and move

bind = $mainMod SHIFT, R, submap, resize&move

submap = resize&move

# Resize window
binde = $mainMod, J, resizeactive, 0 50
binde = $mainMod, K, resizeactive, 0 -50
binde = $mainMod, H, resizeactive, -50 0
binde = $mainMod, L, resizeactive, 50 0

# Move window
binde = $mainMod SHIFT, K, moveactive, 0 -50
binde = $mainMod SHIFT, J, moveactive, 0 50
binde = $mainMod SHIFT, H, moveactive, -50 0
binde = $mainMod SHIFT, L, moveactive, 50 0

bind = , escape, submap, reset

submap = reset

Config File: /home/liu/.config/hypr/conf/misc.hypr.conf: Read Succeeded
misc {
    disable_autoreload = true
    mouse_move_enables_dpms = true
    key_press_enables_dpms = true
    animate_mouse_windowdragging = false
    animate_manual_resizes = false
}

xwayland {
    enabled = false
}

Config File: /home/liu/.config/hypr/conf/cursor.hypr.conf: Read Succeeded
cursor {
    hide_on_key_press = true
}

Config File: /home/liu/.config/hypr/conf/env.hypr.conf: Read Succeeded
# Set up cursors
# env = XCURSOR_SIZE,24
# env = HYPRCURSOR_SIZE,24
env = HYPRCURSOR_THEME,catppuccin-mocha-lavender-cursors

# XDG specifications
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_CURRENT_DESKTOP,Hyprland

# Qt: Use wayland if available, fall back to x11 if not.
env = QT_QPA_PLATFORM,wayland;xcb
# enables automatic scaling, based on the monitor’s pixel density.
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
# Disables window decorations on Qt applications.
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
# Tells Qt based applications to pick your theme from qt5ct, use with Kvantum.
env = QT_QPA_PLATFORMTHEME,qt5ct

# GTK: Use wayland if available. If not: try x11, then any other GDK backend.
env = GDK_BACKEND,wayland,x11,*
# Run SDL2 applications on Wayland. Remove or set to x11 if games that provide older versions of SDL cause compatibility issues.
env = SDL_VIDEODRIVER,wayland
# Clutter package already has wayland enabled, this variable will force Clutter applications to try and use the Wayland backend.
env = CLUTTER_BACKEND,wayland
# Some Java AWT applications will not display properly unless you set the following.
env = _JAVA_AWT_WM_NONREPARENTING,1

# Language
env = LANG,zh_CN.UTF-8

Config File: /home/liu/.config/hypr/conf/autostart.hypr.conf: Read Succeeded
# Waybar
exec-once = killall -9 waybar
exec-once = env LANG=en_US.UTF-8 waybar

# Fcitx5
exec-once = killall -9 fcitx5
exec-once = fcitx5

# Screensaver (NOTE: hypridle)
exec-once = killall -9 hypridle
exec-once = hypridle

# Clipboard manager (NOTE: wl-clipboard cliphist fzf)
exec-once = killall -9 wl-paste
exec-once = wl-paste --type text --watch cliphist store # Stores only text data
exec-once = wl-paste --type image --watch cliphist store # Stores only image data

# Wallpapers (NOTE: swaybg)
exec-once = killall -9 wallpaper_service ; $scripts_dir/wallpaper_service

# Notification (NOTE: swaync)
exec-once = killall -9 swaync
exec-once = swaync

# Polkit (NOTE: mate-polkit)
exec-once = /usr/lib/mate-polkit/polkit-mate-authentication-agent-1

# Bluetooth control (NOTE: blueman)
# exec-once = killall -9 blueman-applet
# exec-once = killall -9 blueman-tray
# exec-once = blueman-applet

# Network management (NOTE: network-manager-applet)
# exec-once = killall -9 nm-applet
# exec-once = nm-applet

# Screen sharing (NOTE: xdg-desktop-portal-hyprland)
exec-once = $scripts_dir/screenshareing

# Systemd config (NOTE: stolen form sway `/etc/sway/config.d/50-systemd-user.conf`)
exec-once = systemctl --user set-environment XDG_CURRENT_DESKTOP=Hyprland
exec-once = systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd DISPLAY XAUTHORITY XDG_CURRENT_DESKTOP=Hyprland WAYLAND_DISPLAY

# Gtk theme
# NOTE: https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland
exec-once = $scripts_dir/import-gsettings

Config File: /home/liu/.config/hypr/conf/rules.hypr.conf: Read Succeeded
layerrule = blur,waybar
layerrule = blur,swaync-control-center

windowrulev2 = float,title:(clipboard)
windowrulev2 = size 1200 800,title:(clipboard)
windowrulev2 = center,title:(clipboard)

windowrulev2 = float,class:(nm-connection-editor)
windowrulev2 = size 1200 800,class:(nm-connection-editor)
windowrulev2 = center,class:(nm-connection-editor)

windowrulev2 = float,class:(blueman-manager)
windowrulev2 = size 1200 800,class:(blueman-manager)
windowrulev2 = center,class:(blueman-manager)

windowrulev2 = float,class:(org.gnome.Loupe)
windowrulev2 = size 1600 900,class:(org.gnome.Loupe)
windowrulev2 = center,class:(org.gnome.Loupe)

windowrulev2 = float,title:(画中画)
windowrulev2 = center,title:(clipboard)

======Config-End========

Description
Recently I tried to run Hyprland without any xorg stuff. I disabled Xwayland in the configuration file according to this after I confirmed that most of my daily use applications can run under Wayland not Xwayland.
But after I disabled Xwayland,  I found out some QT applications cannot launch and get errors like Gtk-WARNING **: 17:53:34.130: cannot open display:, which is extremely weird because they don't need Xwayland nor Gtk.
I have already set QT_QPA_PLATFORM environment variable and I have confirmed QT applications can run under wayland not Xwayland before I disabled Xwayland.
 It's a problem of qt5gtk2 and qt6gtk2. Not a problem of Hyprland nor QT. When disabling qt5gtk2 and qt6gtk2, all things works perfectly. I'm closing this issue right now😂.


Auto takeoff settles at wrong altitude

When I do an auto-takeoff in in SITL with QGC, the takeoff altitude ends up being wrong.
The initial waypoint is correct but at some point the target altitude gets shifted and ends up being wrong.
This is a takeoff with altitude set to 3 meters in QGC:

The problem is the reset here which happens when we switch from takeoff to loiter:
https://github.com/PX4/Firmware/blob/master/src/modules/navigator/navigator_main.cpp#L725


Access reference objects in native function

Feature
I'd like to be able to access reference objects in native function with GC proposal (the apis in gc_export.h are great). Currently with signature (r) only if the type is between REF_TYPE_NULLREF and REF_TYPE_FUNCREF (btw I'm not sure if the comparison is correct ). It would be great if anything between REF_TYPE_HT_NULLABLE and REF_TYPE_NULLFUNCREF is supported.
Benefit
We can integrate better with gc proposal in terms of FFI (for example, no need to serialize/deserialize a structure just to modify a field
Implementation
I do not have a plan of implementation yet, and I'm not sure if it possible.
Alternatives
N.A.

@peter-jerry-ye yes, thanks for pointing out. Seems it should be type >= REF_TYPE_HT_NULLABLE && type <= REF_TYPE_FUNCREF.

@peter-jerry-ye yes, thanks for pointing out. Seems it should be type >= REF_TYPE_HT_NULLABLE && type <= REF_TYPE_FUNCREF.

Maybe it should be type >= REF_TYPE_HT_NULLABLE && type <= REF_TYPE_NULLFUNCREF?
By doing so I get segmentation fault with a value of REF_TYPE_HT_NON_NULLABLE. I will try to investigate furthur.

It solves the issue. Thank you.

Welcome.


[QUESTION] Can I delete other information and only retain tweets?

Command Ran
import twint
c.twint.Config()
c.Username="Super8SF"
twint.run.Search()
Description of Issue
runnuing the command above, some more information on tweets of an user including id, date, time are displayed. But I would like to only retain tweets, what should I do next?
Environment Details
Using Windows,
Running this in Anaconda- Jupyter Notebook.

Command Ran
import twint
c.twint.Config()
c.Username="Super8SF"
twint.run.Search()
Description of Issue
runnuing the command above, some more information on tweets of an user including id, date, time are displayed. But I would like to only retain tweets, what should I do next?
Environment Details
Using Windows,
Running this in Anaconda- Jupyter Notebook.

Thanks a lot . I have solved it.


Duplicate Service Name And application id is 0

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion
[x] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?

Bug

Which version of SkyWalking, OS and JRE?

Which company or project?

What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.

when I search in ui service page,I found each service has two record, and the application_id for one record is 0,I think this is a dirty data. such as
for /hello/uvw,the search  result in  index service_name are:
{
    "took": 1,
    "timed_out": false,
    "_shards": {
        "total": 2,
        "successful": 2,
        "skipped": 0,
        "failed": 0
    },
    "hits": {
        "total": 2,
        "max_score": 4.0748634,
        "hits": [
            {
                "_index": "service_name",
                "_type": "type",
                "_id": "29",
                "_score": 4.0748634,
                "_source": {
                    "service_name": "/hello/uvw",
                    "service_id": 29,
                    "src_span_type": 0,
                    "service_name_keyword": "/hello/uvw",
                    "application_id": -4
                }
            },
            {
                "_index": "service_name",
                "_type": "type",
                "_id": "-29",
                "_score": 3.9653742,
                "_source": {
                    "service_name": "/hello/uvw",
                    "service_id": -29,
                    "src_span_type": 0,
                    "service_name_keyword": "/hello/uvw",
                    "application_id": 0
                }
            }
        ]
    }
}

and trace is cross thread,like

the reason I try to pinpoint maybe

In Agent,cross thread  didn't have parentApplicationInstanceId,see code in org.apache.skywalking.apm.agent.core.context.trace.TraceSegmentRef#transform

public TraceSegmentReference transform() {
        TraceSegmentReference.Builder refBuilder = TraceSegmentReference.newBuilder();
        if (SegmentRefType.CROSS_PROCESS.equals(type)) {
            refBuilder.setRefType(RefType.CrossProcess);
            refBuilder.setParentApplicationInstanceId(parentApplicationInstanceId);
            if (peerId == DictionaryUtil.nullValue()) {
                refBuilder.setNetworkAddress(peerHost);
            } else {
                refBuilder.setNetworkAddressId(peerId);
            }
        } else {
            refBuilder.setRefType(RefType.CrossThread);
        }

        refBuilder.setEntryApplicationInstanceId(entryApplicationInstanceId);
        refBuilder.setParentTraceSegmentId(traceSegmentId.transform());
        refBuilder.setParentSpanId(spanId);
        if (entryOperationId == DictionaryUtil.nullValue()) {
            refBuilder.setEntryServiceName(entryOperationName);
        } else {
            refBuilder.setEntryServiceId(entryOperationId);
        }
        if (parentOperationId == DictionaryUtil.nullValue()) {
            refBuilder.setParentServiceName(parentOperationName);
        } else {
            refBuilder.setParentServiceId(parentOperationId);
        }
        return refBuilder.build();
    }

but in collector code, this has been handled by this in org.apache.skywalking.apm.collector.analysis.segment.parser.provider.parser.standardization.ReferenceIdExchanger#exchange
if (standardBuilder.getParentServiceId() == 0) {
            String parentServiceName = StringUtils.isNotEmpty(standardBuilder.getParentServiceName()) ? standardBuilder.getParentServiceName() : Const.DOMAIN_OPERATION_NAME;
            int parentServiceId = serviceNameService.getOrCreate(instanceCacheService.getApplicationId(standardBuilder.getParentApplicationInstanceId()), SpanType.Entry_VALUE, parentServiceName);

            if (parentServiceId == 0) {
                if (logger.isDebugEnabled()) {
                    int parentApplicationId = instanceCacheService.getApplicationId(standardBuilder.getParentApplicationInstanceId());
                    logger.debug("parent service name: {} from application id: {} exchange failed", parentServiceName, parentApplicationId);
                }
                return false;
            } else {
                standardBuilder.toBuilder();
                standardBuilder.setParentServiceId(parentServiceId);
                standardBuilder.setParentServiceName(Const.EMPTY_STRING);
            }
        }

in standardBuilder.getParentApplicationInstanceId() will always be 0 if in cross thread model,this maybe not as our expected.
so this will create a record which application_id is 0.
int parentServiceId = serviceNameService.getOrCreate(instanceCacheService.getApplicationId(standardBuilder.getParentApplicationInstanceId()), SpanType.Entry_VALUE, parentServiceName);

maybe we should set parentApplicationInstanceId in cross thread in Agent.

Requirement or improvement

Please describe about your requirements or improvement suggestions.

@candyleer Thanks for reporting this issue. The reason parentApplicationInstanceId is empty, because there is no need. For across thread, applicationInstanceId of parent is same as the current applicationInstanceId.
Of course, this is a little harm to add this field into CROSS_THREAD REF. Just send one or two more bytes. So I think the easier way is to accept your proposal. Please send the pull request as soon as possible.
We are going to froze codes for preparing the next release.

You only need to change public TraceSegmentRef(ContextSnapshot snapshot), to set the parentApplicationInstanceId as the current instanceId.

Yes,in public TraceSegmentRef(ContextSnapshot snapshot) ,the field is setted,but transform() missed this field ,I fixed in pr #1175

FYI @peng-yongsheng This may be why there is service's applicationId is 0.